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/stevenhoving/libaeon/blob/master/src/midi/include/aeon/midi/midi_output_device.h | Github Open Source | Open Source | MIT | 2,017 | libaeon | stevenhoving | C++ | Code | 275 | 516 | /*
* Copyright (c) 2012-2017 Robin Degen
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge,... | 28,119 |
https://github.com/13554659514/ZhihuDaily/blob/master/src/actions/MainAction.js | Github Open Source | Open Source | MIT | 2,018 | ZhihuDaily | 13554659514 | JavaScript | Code | 285 | 698 | import fetch from 'isomorphic-fetch';
import uris from '../utils/uris';
export const REQUEST_LIST = 'REQUEST_LIST';
export const REQUEST_LIST_SUCCESS = 'REQUEST_LIST_SUCCESS';
export const REQUEST_LIST_FAILURE = 'REQUEST_LIST_FAILURE';
export const SET_POSITION_OFFSET = 'SET_POSITION_OFFSET';
export const SET_OFFSET_F... | 39,817 |
https://github.com/uk-gov-mirror/defra.prsd-weee/blob/master/src/EA.Weee.Web.Maintenance/Views/_ViewStart.cshtml | Github Open Source | Open Source | Unlicense | 2,019 | defra.prsd-weee | uk-gov-mirror | C# | Code | 5 | 32 | @{
Layout = "~/Views/Shared/_Layout.GovUK.Sections.cshtml";
}
| 52,553 |
https://github.com/TelikosDAO/Lockdrop-ui/blob/master/src/App.vue | Github Open Source | Open Source | MIT | null | Lockdrop-ui | TelikosDAO | Vue | Code | 53 | 236 | <template>
<div id="app">
<router-view name="header"></router-view>
<main>
<fade-transition origin="center" mode="out-in" :duration="250">
<router-view/>
</fade-transition>
</main>
<router-view name="footer"></router-view>
</div>
</template... | 11,826 |
https://github.com/caogenwang/tencentcloud-sdk-cpp/blob/master/redis/include/tencentcloud/redis/v20180412/model/RedisCommonInstanceList.h | Github Open Source | Open Source | Apache-2.0 | 2,021 | tencentcloud-sdk-cpp | caogenwang | C++ | Code | 805 | 3,437 | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* 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
... | 7,237 |
https://github.com/beckheng/BBTowerDefense/blob/master/BBTowerDefense_Client/Assets/Scenes/SplashScene.unity.meta | Github Open Source | Open Source | MIT | 2,018 | BBTowerDefense | beckheng | Unity3D Asset | Code | 12 | 64 | fileFormatVersion: 2
guid: b68ecf3476556a647a9e7efd8de87417
timeCreated: 1527139060
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:
| 18,141 |
https://github.com/tamada/9rules/blob/master/src/main/java/com/github/ninerules/parameters/MethodLength.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | 9rules | tamada | Java | Code | 83 | 271 | package com.github.ninerules.parameters;
import com.github.ninerules.entities.LineCount;
/**
* Rule 6-1. すべてのエンティティを小さくすること.1メソッドはn行まで.
* <ul>
* <li>STRICT: n = 3</li>
* <li>GENERAL: n = 5</li>
* <li>ROUGHL: n = 10</li>
* </ul>
*
* @author Haruaki Tamada
*/
public class MethodLength extends IntegerPara... | 12,122 |
https://github.com/aroop/view_components/blob/master/demo/test/components/previews/primer/auto_complete_preview.rb | Github Open Source | Open Source | MIT | 2,021 | view_components | aroop | Ruby | Code | 42 | 157 | module Primer
class AutoCompletePreview < ViewComponent::Preview
def default
render(Primer::AutoComplete.new(id: "test-id", src: "/auto_complete", position: :relative)) do |c|
c.input(type: :text, name: "input")
end
end
def with_icon
render(Primer::AutoComplete.new(id: "test-id"... | 48,004 |
https://github.com/phatblat/macOSPrivateFrameworks/blob/master/PrivateFrameworks/AVConference/VCAudioIOControllerClient.h | Github Open Source | Open Source | MIT | 2,022 | macOSPrivateFrameworks | phatblat | C | Code | 198 | 874 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "NSObject.h"
__attribute__((visibility("hidden")))
@interface VCAudioIOControllerClient : NSObject
{
id _delegate;
struct AudioStreamBasicDescription _format;
i... | 29,341 |
https://github.com/jstrachan/jx-gitops-old/blob/master/pkg/cmd/helm/helm.go | Github Open Source | Open Source | Apache-2.0 | null | jx-gitops-old | jstrachan | Go | Code | 53 | 227 | package helm
import (
"github.com/jenkins-x/jx-gitops/pkg/common"
"github.com/jenkins-x/jx/v2/pkg/log"
"github.com/spf13/cobra"
)
// NewCmdHelm creates the new command
func NewCmdHelm() *cobra.Command {
command := &cobra.Command{
Use: "helm",
Short: "Commands for working with helm charts",
Run: func(comma... | 49,081 |
https://github.com/siruku6/cwl_client/blob/master/setup.py | Github Open Source | Open Source | MIT | 2,020 | cwl_client | siruku6 | Python | Code | 36 | 197 | from setuptools import setup, find_packages
# import sys
# sys.path.append('./cwl_client')
# sys.path.append('./tests')
setup(
name='cwl_client',
url='https://github.com/siruku6/cwl_client',
version='0.0.1',
description='This is the client for AWS CloudWatch Logs',
long_description=read_file('READ... | 22,183 |
https://github.com/soutys/metricol/blob/master/metricol/inputs/nginx.py | Github Open Source | Open Source | MIT | null | metricol | soutys | Python | Code | 204 | 840 | # -*- coding: utf-8 -*-
'''nginx metrics input module
'''
from __future__ import (
absolute_import,
division,
print_function,
unicode_literals,
with_statement,
)
import logging
import re
from requests import codes, RequestException, Session
from metricol.inputs import MetricInput
LOG = loggin... | 48,741 |
https://github.com/sm-g/MvvmCross/blob/master/MvvmCross/Platforms/Wpf/Binding/MvxWindowsPropertyBinding.cs | Github Open Source | Open Source | MS-PL | 2,022 | MvvmCross | sm-g | C# | Code | 64 | 126 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MS-PL license.
// See the LICENSE file in the project root for more information.
namespace MvvmCross.Platforms.Wpf.Binding
{
internal static class MvxWindowsPropertyBinding
{
publ... | 22,565 |
https://github.com/desmith/dotfiles-nix/blob/master/.local/share/fish/generated_completions/ps.fish | Github Open Source | Open Source | MIT | 2,021 | dotfiles-nix | desmith | Fish | Code | 498 | 737 | # ps
# Autogenerated from man page /usr/share/man/man1/ps.1
complete -c ps -s A --description 'Display information about other users\' processes, including those without con…'
complete -c ps -s a --description 'Display information about other users\' processes as well as your own.'
complete -c ps -s C --description 'Ch... | 19,909 |
https://github.com/aliyun/aliyun-ocs-java-sdk/blob/master/src/main/java/com/aliyun/ocs/command/binary/single/MemcachedDeleteCommand.java | Github Open Source | Open Source | Apache-2.0 | 2,015 | aliyun-ocs-java-sdk | aliyun | Java | Code | 183 | 695 | package com.aliyun.ocs.command.binary.single;
import com.aliyun.ocs.OcsException;
import com.aliyun.ocs.protocol.memcached.binary.AbstractBinaryMemcachedMessage;
import com.aliyun.ocs.protocol.memcached.binary.BinaryMemcachedMessage;
import com.aliyun.ocs.protocol.memcached.binary.BinaryMemcachedMessageHeader;
import ... | 14,243 |
https://github.com/KosmoKeLi/hotchocolate/blob/master/src/HotChocolate/Core/src/Validation/Rules/FragmentsVisitor.cs | Github Open Source | Open Source | MIT | 2,020 | hotchocolate | KosmoKeLi | C# | Code | 688 | 2,298 | using HotChocolate.Language;
using HotChocolate.Language.Visitors;
using HotChocolate.Types;
namespace HotChocolate.Validation
{
/// <summary>
/// Fragment definitions are referenced in fragment spreads by name.
/// To avoid ambiguity, each fragment’s name must be unique within a
/// document.
///... | 29,314 |
https://github.com/stackboxcms/stackboxcms/blob/master/alloy/tests/Test/Events.php | Github Open Source | Open Source | BSD-3-Clause | 2,016 | stackboxcms | stackboxcms | PHP | Code | 281 | 1,221 | <?php
/**
* Alloy Event tests
*/
class Test_Events extends \PHPUnit_Framework_TestCase
{
public function setUp()
{
$kernel = \Kernel();
$this->kernel = $kernel;
// Get events container and reset for each test
$this->events = $kernel->events();
$this->events->r... | 14,875 |
https://github.com/garrison/ExactDiag.jl/blob/master/src/entropy.jl | Github Open Source | Open Source | MIT | 2,021 | ExactDiag.jl | garrison | Julia | Code | 1,010 | 3,449 | struct TracerSector{StateType<:AbstractVector,StateTypeA<:AbstractVector,StateTypeB<:AbstractVector}
# The indexed states in each subregion. These define what is
# meant by idx_A and idx_B below.
indexer_A::UniqueVector{StateTypeA}
indexer_B::UniqueVector{StateTypeB}
# Quick lookup of what states ... | 21,165 |
https://github.com/wikimedia/mediawiki-extensions-StructuredNavigation/blob/master/resources/styles/ext.structuredNav.NavigationView.less | Github Open Source | Open Source | MIT | 2,023 | mediawiki-extensions-StructuredNavigation | wikimedia | Less | Code | 140 | 594 | @import 'variables';
.mw-structurednav-navigation-container {
background-color: @mw-structurednav-main-bg;
border: @mw-structurednav-main-border;
font-size: 12px;
padding: .25em;
margin: 1em auto;
.mw-structurednav-groups-container {
margin: 0;
}
}
.mw-structurednav-header {
background: @mw-structurednav-h... | 25,349 |
https://github.com/wesleybeckner/adaptive_learning_salts/blob/master/data/molecular_dynamics/experimental_salts/PAM.FOR.298.comremoved.Cp | Github Open Source | Open Source | MIT | 2,019 | adaptive_learning_salts | wesleybeckner | C++ | Code | 5 | 21 | 300.558
291.71
292.875
290.01
292.809
| 3,982 |
https://github.com/yossakorn/Saharuang/blob/master/css/index.php | Github Open Source | Open Source | MIT | 2,017 | Saharuang | yossakorn | PHP | Code | 68 | 312 | <?php
session_start();
require_once("config.php");
// Create connection
$con = mysqli_connect($host, $user, $pass, $database);
$username = $_POST["txtUsername"];
$password = $_POST["txtPassword"];
$sql = "SELECT * FROM admin WHERE username = '".$username."' AND password = '".$password."'";
$result = m... | 43,065 |
https://github.com/FantasticFiasco/axis-js/blob/master/packages/axis-configuration/src/user-accounts/AccessRights.ts | Github Open Source | Open Source | Apache-2.0 | 2,022 | axis-js | FantasticFiasco | TypeScript | Code | 42 | 86 | /**
* Enum describing access rights for a user account.
*/
export enum AccessRights {
/**
* Viewer access rights.
*/
Viewer,
/**
* Operator and viewer access rights.
*/
Operator,
/**
* Administrator, operator and viewer access rights.
*/
Administrator,
}
| 50,391 |
https://github.com/nico57c/lightdm-webkit-themes/blob/master/service_wallpaper/install.sh | Github Open Source | Open Source | MIT | null | lightdm-webkit-themes | nico57c | Shell | Code | 320 | 932 | #!/bin/bash
CurrentDir=`dirname $0`
InstallDir="$1"
LightdmThemeImages="$2"
WallpaperDir="$3"
FilePrefix="$4"
ServiceUser="$5"
ServiceMountDrive="$6"
SedCharacterSep="+"
echo "--------------"
echo " Parameters "
echo "--------------"
echo " - 1 - installation directory ..................... : $InstallDir"
echo " - ... | 42,400 |
https://github.com/mdr/mash/blob/master/src/main/scala/com/github/mdr/mash/ns/view/ViewClass.scala | Github Open Source | Open Source | MIT | 2,022 | mash | mdr | Scala | Code | 251 | 773 | package com.github.mdr.mash.ns.view
import com.github.mdr.mash.classes.{ AbstractObjectWrapper, Field, MashClass, NewStaticMethod }
import com.github.mdr.mash.inference.Type
import com.github.mdr.mash.ns.core.BooleanClass
import com.github.mdr.mash.runtime.{ MashBoolean, MashObject, MashValue }
import scala.collectio... | 30,729 |
https://github.com/Hoofoo-WHU/163-music-mobile/blob/master/docs/.vuepress/config.js | Github Open Source | Open Source | MIT | 2,021 | 163-music-mobile | Hoofoo-WHU | JavaScript | Code | 42 | 149 | let fs = require('fs')
function sidebarGenerator(ctx) {
return ['/', ...fs.readdirSync(ctx.sourceDir)
.filter(fn => /.md$/.test(fn) && fn !== 'README.md')
.map(fn => fn.slice(0, -3))]
}
module.exports = (ctx) => {
return {
title: '开发文档',
dest: './docs',
base: '/163-music-mobile/docs/',
theme... | 39,001 |
https://github.com/iamtchelo/twitbooks/blob/master/frontend/src/stores/SyncProgressStore.js | Github Open Source | Open Source | MIT | null | twitbooks | iamtchelo | JavaScript | Code | 54 | 170 | import { types, flow, getEnv } from 'mobx-state-tree';
export const SyncProgress = types.model({
totalMessages: types.number,
syncedMessages: types.number,
bookCount: types.number
});
export const SyncProgressStore = types.model({
progress: SyncProgress
}).actions(self => ({
getProgress: flow(func... | 5,458 |
https://github.com/MiltonEBR/fullstackpart11/blob/master/client/App.js | Github Open Source | Open Source | Unlicense | null | fullstackpart11 | MiltonEBR | JavaScript | Code | 460 | 1,433 | import React, { useState, useEffect } from 'react'
import services from './Services'
import './custom.scss'
const Message = ({ msg, err }) => (msg === null ? null : (
<div className="msg" style={err ? { color: 'red' } : { color: 'green' }}>
{msg}
</div>
)
)
const PersonForm = ({ addPerson }) => {
const [new... | 25,586 |
https://github.com/weisisheng/react-dashboard/blob/master/src/utils/colors.js | Github Open Source | Open Source | MIT | 2,018 | react-dashboard | weisisheng | JavaScript | Code | 12 | 54 | /* eslint import/no-webpack-loader-syntax: off */
import colors from '-!style-loader!css-loader!sass-loader!assets/styles/variables/_variables.scss';
export default colors; | 51,611 |
https://github.com/andreastedile/unitn-m-ds2/blob/master/lab/09_superpowered_dht/tests/test_dynamic.py | Github Open Source | Open Source | MIT | 2,022 | unitn-m-ds2 | andreastedile | Python | Code | 198 | 574 | import random
import unittest
from tests import DHTNode
MAX_NODES = 10
class DynamicDHTTest(unittest.TestCase):
def setUp(self):
self.nodes = [DHTNode('name%d' % i) for i in xrange(MAX_NODES)]
map(lambda n: n.start(), self.nodes)
def test_add_and_leave(self):
for n in xrange(1, MAX_NODES):
sel... | 40,340 |
https://github.com/iroot/impress/blob/master/lib/db.pgsql.js | Github Open Source | Open Source | MIT | 2,020 | impress | iroot | JavaScript | Code | 214 | 652 | 'use strict';
// PgSQL database connector for Impress Application Server
const setupConnection = (database, connection, slowTime) => {
const { query } = connection;
connection.query = (sql, values, callback) => {
const startTime = Date.now();
if (typeof values === 'function') {
callback = values;
... | 14,308 |
https://github.com/BlaiseD/Enrollment.XPlatform/blob/master/Enrollment.Forms.Configuration/DataForm/IFormGroupBoxSettings.cs | Github Open Source | Open Source | MIT | null | Enrollment.XPlatform | BlaiseD | C# | Code | 31 | 89 | using System.Collections.Generic;
namespace Enrollment.Forms.Configuration.DataForm
{
public interface IFormGroupBoxSettings
{
string GroupHeader { get; }
List<FormItemSettingsDescriptor> FieldSettings { get; }
MultiBindingDescriptor HeaderBindings { get; }
bool IsHidden { get;... | 5,724 |
https://github.com/myzero1/yii2-theme-layui/blob/master/src/views/doc/bodytab.php | Github Open Source | Open Source | MIT | null | yii2-theme-layui | myzero1 | PHP | Code | 403 | 5,044 | <blockquote class="layui-elem-quote">
bodyTab模块是layuiCMS 2.0的核心,通过简单的配置就能实现左侧导航的输出、点击菜单添加新窗口的功能。同时优化了窗口过多的展示效果和相关操作。<span class="layui-red">打开的窗口超出可视区域的时候不再以下拉的形式展示,而是通过左右拖动来查看被隐藏的窗口。</span>打开的窗口未超出可视区域的情况下则正常显示,没有拖动效果。添加了“刷新当前”,“关闭其他”,“关闭全部”操作,但需要给相应的元素添加"refresh"、"closePageOther"、"closePageAll"类【如class="closePageA... | 17,531 |
https://github.com/roice3/roice/blob/master/R3/R3.Core/Geometry/Circle.cs | Github Open Source | Open Source | MIT | 2,022 | roice | roice3 | C# | Code | 1,853 | 4,859 | namespace R3.Geometry
{
using Math = System.Math;
using R3.Core;
using R3.Math;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.Serialization;
/// <summary>
/// Class for generalized circles (lines are a limiting case).
/// </summary>
[DataContract( Namespace = "" )]
public... | 24,274 |
https://github.com/sten-dev/incede-ai/blob/master/src/pages/services/watson-api.js | Github Open Source | Open Source | MIT | 2,023 | incede-ai | sten-dev | JavaScript | Code | 63 | 181 | import React from "react";
import { Container } from "reactstrap";
import Layout from "../../components/Layout";
import Transition from "../../Transition";
import ServicesHeader from "../../components/services/ServicesHeader";
import WatsonApi from "../../components/services/WatsonApi";
const WatsonApiServices = () =>... | 30,756 |
https://github.com/DefteZ/westra2osm/blob/master/westra2osm_lib.py | Github Open Source | Open Source | MIT | null | westra2osm | DefteZ | Python | Code | 635 | 2,414 | #!/bin/env python3
# -*- coding: utf-8 -*-
'''
Утиліта для полегшення імпорта данних
Written by Andriy Danyleiko and Liudmyla Kislitsyna
Send bugs to andrii.danyleiko@gmail.com
'''
import math
import sys
import urllib.request
import random
import fastkml
import overpy
import lxml.html
def get_pass_from_overpass(lon... | 37,479 |
https://github.com/rjpower/tensorflow-io/blob/master/third_party/azure.patch | Github Open Source | Open Source | Apache-2.0 | null | tensorflow-io | rjpower | null | Spoken | 48 | 174 | new file mode 100644
index 0000000..fd46a0f
--- /dev/null
+++ b/third_party/azure.patch
@@ -0,0 +1,11 @@
+diff -Naur a/include/compare.h b/include/compare.h
+--- a/include/compare.h 2019-06-23 22:12:03.208481680 +0000
++++ b/include/compare.h 2019-06-23 22:12:53.555100409 +0000
+@@ -3,6 +3,7 @@
+ #ifdef _... | 42,822 |
https://github.com/tuskauavproject/TuskaGimbal/blob/master/Arduino/sketches/TGimbal/Sensors.ino | Github Open Source | Open Source | MIT | 2,016 | TuskaGimbal | tuskauavproject | C++ | Code | 1,526 | 5,232 | // Sensor.ino
#define GYRO 1
#define ACC 1
#define ROLL 0
#define PITCH 1
#define YAW 2
static struct {
uint8_t checkNewConf;
int16_t accZero[3];
int16_t angleTrim[2];
#if defined(GYRO_SMOOTHING)
uint8_t Smoothing[3];
#endif
} conf;
#define MPU6050_ADDRESS 0x68 // address pin AD0 ... | 24,931 |
https://github.com/briandconnelly/softermax/blob/master/R/read_softmax6_template.R | Github Open Source | Open Source | BSD-3-Clause, BSD-2-Clause | 2,017 | softermax | briandconnelly | R | Code | 150 | 499 | #' @rdname read_softmax_template
#' @export
read_softmax6_template <- function(file,
include_unspecified = FALSE,
zeropad_wells = FALSE,
wellsAsFactors = TRUE,
groupsAsFactors = TR... | 41,343 |
https://github.com/jandppw/ppwcode/blob/master/javascript/_obsolete/WaveMaker/common/packages/ppwcode/NewLineTextArea.js | Github Open Source | Open Source | Apache-2.0 | null | ppwcode | jandppw | JavaScript | Code | 221 | 663 | dojo.provide("common.packages.ppwcode.NewLineTextArea");
dojo.require("wm.base.widget.Editor");
dojo.require("wm.base.widget.Editors.Text");
wm.editors.push("NewLineTextArea");
dojo.declare("wm._NewLineTextAreaEditor", wm._TextAreaEditor, {
autoScroll: false,
_getReadonlyValue: function() {
console.log("_getRead... | 50,362 |
https://github.com/karwana/penelope/blob/master/Penelope/Types/Url.php | Github Open Source | Open Source | MIT | 2,017 | penelope | karwana | PHP | Code | 87 | 209 | <?php
/**
* LICENSE: This source code is subject to the license that is available
* in the LICENSE file distributed along with this package.
*
* @package Penelope
* @author Matthew Caruana Galizia <mcg@karwana.com>
* @copyright Karwana Ltd
* @since File available since Release 1.0.0
*/
namespace ... | 47,088 |
https://github.com/rapidsai/xgboost/blob/master/tests/cpp/tree/test_param.cc | Github Open Source | Open Source | Apache-2.0 | 2,022 | xgboost | rapidsai | C++ | Code | 249 | 1,162 | // Copyright by Contributors
#include "../../../src/tree/param.h"
#include "../helpers.h"
#include <gtest/gtest.h>
TEST(Param, VectorIOStream) {
std::vector<int> vals = {3, 2, 1};
std::stringstream ss;
std::vector<int> vals_in;
ss << vals;
EXPECT_EQ(ss.str(), "(3,2,1)");
ss >> vals_in;
EXPECT_EQ(vals_i... | 45,633 |
https://github.com/CPQM07/CMS-Codeigniter/blob/master/application/views/Zicaro/QuienesSomos.php | Github Open Source | Open Source | MIT | null | CMS-Codeigniter | CPQM07 | PHP | Code | 182 | 499 | <div class="row">
<div class="col-md-8 col-md-offset-2">
<p style="font-size: 20px">
Nace de la idea de unir dos elementos, por un lado recuperar todo el papel que llega a nuestras manos y segundo dar una
posibilidad de desarrollo a toda persona que necesite trabajar desde su hogar, ya... | 32,161 |
https://github.com/TheGoodPlaceBeyondTheCaves/hcloud-js/blob/master/lib/locations/index.js | Github Open Source | Open Source | MIT | null | hcloud-js | TheGoodPlaceBeyondTheCaves | JavaScript | Code | 112 | 309 | const snakeCase = require('snake-case')
const Location = require('./location')
const LocationList = require('./locationList')
class LocationsEndpoint {
constructor (client) {
this.client = client
}
async list (params) {
const snakeCaseParams = {}
if (params) {
Object.keys(params).forEach(key =... | 18,714 |
https://github.com/SUNRUSE-Junk-Drawer/quiz/blob/master/host/types/instance/index.ts | Github Open Source | Open Source | MIT | 2,021 | quiz | SUNRUSE-Junk-Drawer | TypeScript | Code | 39 | 95 | export type Instance = {
readonly quizKey: string;
readonly players: ReadonlyArray<{
readonly displayName: string;
readonly userId: string;
readonly sessionId: null | string;
readonly answers: ReadonlyArray<{
readonly revealed: boolean;
readonly score: null | number;
readonly answe... | 23,577 |
https://github.com/D-Korobkov/optimiztion-methods/blob/master/Lab2/src/main/java/methods/GradientDescentMethod.java | Github Open Source | Open Source | MIT | null | optimiztion-methods | D-Korobkov | Java | Code | 201 | 574 | package methods;
import interfaces.Function;
import java.io.*;
import static SaZhaK.MatrixUtil.*;
/**
* предоставляет возможность искать минимум квадратичных функций методом градиентного спуска
*/
public class GradientDescentMethod extends AbstractGradientMethod {
/**
* step of Gradient method
*/
... | 16,644 |
https://github.com/QuinntyneBrown/video-collection/blob/master/src/Backend/VideoCollection/Features/VideoArticles/GetVideoArticlesQuery.cs | Github Open Source | Open Source | MIT | 2,021 | video-collection | QuinntyneBrown | C# | Code | 96 | 324 | using MediatR;
using VideoCollection.Data;
using VideoCollection.Utilities;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Linq;
using System.Data.Entity;
namespace VideoCollection.Features.VideoArticles
{
public class GetVideoArticlesQuery
{
public class GetVideoArticlesR... | 12,897 |
https://github.com/Glassstone-Solutions/ekenengige.com/blob/master/public/wp-content/themes/flora/templates/loaders/loader-4.php | Github Open Source | Open Source | Apache-2.0 | null | ekenengige.com | Glassstone-Solutions | PHP | Code | 5 | 32 | <div class="la-square-jelly-box">
<div></div>
<div></div>
</div> | 3,254 |
https://github.com/AftabAnsari10662/angular.io/blob/master/public/404.jade | Github Open Source | Open Source | MIT | 2,022 | angular.io | AftabAnsari10662 | null | Spoken | 14 | 33 | .l-main-section
h2 404
p Whoops. Looks like what you're looking for can't be found.
| 9,117 |
https://github.com/helium/console/blob/master/priv/repo/migrations/20210722215957_set_all_devices_in_xor_filter_true.exs | Github Open Source | Open Source | Apache-2.0 | 2,023 | console | helium | null | Spoken | 32 | 126 | defmodule Console.Repo.Migrations.SetAllDevicesInXORFilterTrue do
use Ecto.Migration
def up do
Ecto.Adapters.SQL.query!(Console.Repo, """
UPDATE devices SET in_xor_filter = true;
""")
end
def down do
Ecto.Adapters.SQL.query!(Console.Repo, """
UPDATE devices SET in_xor_filter = false;
... | 29,701 |
https://github.com/dbaggerman/kombustion/blob/master/pkg/parsers/resources/ApiGateway-Method.go | Github Open Source | Open Source | MIT | 2,018 | kombustion | dbaggerman | Go | Code | 255 | 968 | package resources
// Code generated by go generate; DO NOT EDIT.
// It's generated by "github.com/KablamoOSS/kombustion/generate"
import (
"fmt"
"github.com/KablamoOSS/kombustion/pkg/parsers/properties"
"github.com/KablamoOSS/kombustion/types"
yaml "github.com/KablamoOSS/yaml"
)
// ApiGatewayMethod Documentation... | 28,771 |
https://github.com/ammo888/facerecapi/blob/master/imagebank/clean | Github Open Source | Open Source | Apache-2.0 | 2,020 | facerecapi | ammo888 | Shell | Code | 49 | 111 | #!/bin/bash
# Cleans project for compactness
echo Deleting pycache folders and files
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
echo Deleting migrations
rm -rf api/migrations
echo Deleting server database
rm db.sqlite3
echo Deleting stored images
rm images/*
echo Deleting name and embedding datab... | 14,926 |
https://github.com/IvanJuricic/JamAway/blob/master/Scripts/MainMenu/ReturnTo.cs | Github Open Source | Open Source | Apache-2.0 | null | JamAway | IvanJuricic | C# | Code | 17 | 54 | using UnityEngine;
using UnityEngine.SceneManagement;
public class ReturnTo : MonoBehaviour {
public void Return()
{
SceneManager.LoadScene("MainMenu");
}
}
| 35,333 |
https://github.com/rob-opsi/Moondust/blob/master/Assets/Moon/Prefabs/AntennaThin.prefab.meta | Github Open Source | Open Source | BSD-3-Clause | 2,019 | Moondust | rob-opsi | Unity3D Asset | Code | 14 | 73 | fileFormatVersion: 2
guid: a232b48364dbd1848975134cec2e3229
timeCreated: 1515809386
licenseType: Pro
NativeFormatImporter:
mainObjectFileID: 100100000
userData:
assetBundleName:
assetBundleVariant:
| 31,755 |
https://github.com/byBlurr/dragon6-api/blob/master/DragonFruit.Six.Api/Services/Developer/Auth/DeveloperSessionRequest.cs | Github Open Source | Open Source | Apache-2.0 | null | dragon6-api | byBlurr | C# | Code | 95 | 263 | // Dragon6 API Copyright 2020 DragonFruit Network <inbox@dragonfruit.network>
// Licensed under Apache-2. Please refer to the LICENSE file for more info
using DragonFruit.Common.Data;
using DragonFruit.Common.Data.Parameters;
namespace DragonFruit.Six.Api.Services.Developer.Auth
{
public class DeveloperSessionRe... | 48,880 |
https://github.com/alloc/nebu/blob/master/spec/mutation.test.ts | Github Open Source | Open Source | MIT | 2,023 | nebu | alloc | TypeScript | Code | 406 | 1,110 | import { describe, expect, test } from 'vitest'
import endent from 'endent'
import { nebu } from '../src/nebu'
import util from 'util'
describe('node.set:', () => {
test('node child', () => {
const input = 'let a = 1'
const output = nebu.process(input, {
VariableDeclarator: node => {
node.set('... | 6,928 |
https://github.com/ctbrowser/libpalmsocket/blob/master/Tests/CxxTest/PalmCxxTests/src/util/Creator.h | Github Open Source | Open Source | LicenseRef-scancode-warranty-disclaimer, Apache-2.0 | 2,013 | libpalmsocket | ctbrowser | C++ | Code | 347 | 1,064 | /* @@@LICENSE
*
* Copyright (c) 2009-2013 LG Electronics, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 30,476 |
https://github.com/devtom07/Gymanager/blob/master/database/seeds/HymnalSeeder.php | Github Open Source | Open Source | MIT | 2,020 | Gymanager | devtom07 | PHP | Code | 117 | 418 | <?php
use Illuminate\Database\Seeder;
use App\Models\Hymnal;
class HymnalSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Hymnal::create([
'code' => 'CT001',
'name' => 'ca1',
'start_hour' => '05... | 4,216 |
https://github.com/koalarcoder/workless-v1/blob/master/vendor/library/phpex/Command/AssetCdnCommand.php | Github Open Source | Open Source | MIT | 2,021 | workless-v1 | koalarcoder | PHP | Code | 154 | 606 | <?php
/**
* Created by PhpStorm.
* User: river2liu
* Date: 2017/9/13
* Time: 15:42
*/
namespace phpex\Command;
use phpex\Util\Crypt\Des3;
use phpex\Util\ORG\PHPZip;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface... | 43,078 |
https://github.com/gmb77/Hastlayer-SDK/blob/master/Hast.Abstractions/Hast.Xilinx.Abstractions/ManifestProviders/AzureAlveoU250ManifestProvider.cs | Github Open Source | Open Source | BSD-3-Clause | 2,022 | Hastlayer-SDK | gmb77 | C# | Code | 116 | 380 | using Hast.Common.Constants;
using Hast.Layer;
using Hast.Synthesis.Abstractions;
using Hast.Xilinx.Abstractions.Helpers;
namespace Hast.Xilinx.Abstractions.ManifestProviders
{
public class AzureAlveoU250ManifestProvider : IDeviceManifestProvider
{
public const string DeviceName = "Azure Alveo U250";
... | 22,130 |
https://github.com/zalishchuk/reactstrap/blob/master/docs/lib/Utilities/FlexPage.js | Github Open Source | Open Source | MIT | null | reactstrap | zalishchuk | JavaScript | Code | 87 | 249 | /* eslint react/no-multi-comp: 0, react/prop-types: 0, import/newline-after-import: 0 */
import React from 'react';
import { PrismCode } from 'react-prism';
import PageTitle from '../UI/PageTitle';
import FlexExample from '../examples/Flex';
const FlexExampleSource = require('!!raw!../examples/Flex');
export default ... | 30,012 |
https://github.com/SurfGitHub/BLIZZARD-Replication-Package-ESEC-FSE2018/blob/master/Corpus/ecf/2330.java | Github Open Source | Open Source | MIT | 2,018 | BLIZZARD-Replication-Package-ESEC-FSE2018 | SurfGitHub | Java | Code | 629 | 1,609 | /*******************************************************************************
* Copyright (c) 2006, 2008 Remy Suen, Composent Inc., and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distr... | 24,454 |
https://github.com/jorgandia/rm-wedding/blob/master/src/components/PopUp/index.js | Github Open Source | Open Source | CC-BY-3.0 | 2,020 | rm-wedding | jorgandia | JavaScript | Code | 35 | 121 | import React from 'react'
import './style.scss'
const PopUp = ({ text, closePopUp }) => {
return (
<div className="popup-container">
<div className="popup-background">
<div className="popup-text">{text}</div>
<button className="popup-button" onClick={closePopUp}>
Cerrar
</... | 20,726 |
https://github.com/cloudfoundry/IronFrame/blob/master/IronFrame.Host/Program.cs | Github Open Source | Open Source | Apache-2.0 | 2,018 | IronFrame | cloudfoundry | C# | Code | 252 | 941 | using System;
using System.Diagnostics;
using System.Threading;
using IronFrame.Host.Handlers;
using IronFrame.Messages;
using IronFrame.Messaging;
using IronFrame.Utilities;
namespace IronFrame.Host
{
class Program
{
static ManualResetEvent exitEvent = new ManualResetEvent(false);
static Proc... | 19,559 |
https://github.com/shenyanming95/dubbo/blob/master/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/legacy/ChangeTelnetHandler.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | dubbo | shenyanming95 | Java | Code | 149 | 554 | package org.apache.dubbo.qos.legacy;
import org.apache.dubbo.common.extension.Activate;
import org.apache.dubbo.remoting.Channel;
import org.apache.dubbo.remoting.telnet.TelnetHandler;
import org.apache.dubbo.remoting.telnet.support.Help;
import org.apache.dubbo.rpc.Exporter;
import org.apache.dubbo.rpc.protocol.dubbo... | 27,908 |
https://github.com/thefunkjunky/gs-dotfiles/blob/master/home-config/bin/json-search.py | Github Open Source | Open Source | Unlicense | null | gs-dotfiles | thefunkjunky | Python | Code | 274 | 743 | #!/usr/bin/env python
"""
Command-line tool to search json input (piped from stdin) for keys, and
returns found items grouped together under a shared node
"""
import sys
import json
import re
import argparse
def stdin_to_json():
"""Compiles piped stdin into a json object"""
return json.load(sys.stdin)
def searc... | 11,212 |
https://github.com/sabatcyber/plataforma/blob/master/app/cidade.php | Github Open Source | Open Source | MIT | null | plataforma | sabatcyber | PHP | Code | 27 | 88 | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class cidade extends Model
{
protected $fillable = ['cidade', 'estado_id'];
public $timestamps = false;
public function estado()
{
return $this->belongsTo('App\Estado');
}
}
| 29,465 |
https://github.com/Mistereo/points-player/blob/master/test/reducers/cursor.spec.js | Github Open Source | Open Source | MIT | 2,018 | points-player | Mistereo | JavaScript | Code | 195 | 682 | import expect from 'expect'
import cursor, { initialState } from '../../src/reducers/cursor'
import {
prevMove,
nextMove,
firstMove,
lastMove,
selectMove,
} from '../../src/actions'
const tree = {
0: { id: 0, childs: [1, 2] },
1: { id: 1, parent: 0, childs: [3] },
2: { id: 2, parent: 0, childs: [] },
... | 12,239 |
https://github.com/felkiriinya/Akan-Name-Generator/blob/master/js/index.js | Github Open Source | Open Source | MIT | 2,020 | Akan-Name-Generator | felkiriinya | JavaScript | Code | 489 | 1,014 | function information(){
//getting the value of the year
var year=document.getElementById("yearInput").value;
//getting the value of the month
var month=document.getElementById("monthInput").value;
//getting the value of the day
var day=document.getElementById("dayInput").value;
//if ma... | 14,668 |
https://github.com/avrillavigne00/static_mobile2/blob/master/www/supply/ordermng/orderlistview.js | Github Open Source | Open Source | Apache-2.0 | 2,016 | static_mobile2 | avrillavigne00 | JavaScript | Code | 124 | 689 | define(["zepto",
"underscore",
"backbone",
"baseView",
"vue",
"text!orderlistview.vue.html",
"common",
"css!orderlistview.css"],
function($,_,Backbone,BaseView,Vue,template,Common){
var view = BaseView.extend({
el:$("#main"),
ev... | 5,465 |
https://github.com/sahaniarun/kubes/blob/master/lib/kubes/compiler/layering.rb | Github Open Source | Open Source | Apache-2.0 | 2,020 | kubes | sahaniarun | Ruby | Code | 71 | 300 | class Kubes::Compiler
module Layering
def pre_layers
return [] if Kubes.kustomize?
ext = File.extname(@path)
kind = File.basename(@path).sub(ext,'') # IE: deployment
all = "all"
if @block_form
kind = kind.pluralize
all = all.pluralize
end
layers = [
... | 51,273 |
https://github.com/bm16ton/portenta-tinyusb/blob/master/hw/mcu/nxp/mcux-sdk/components/video/camera/device/ov7725/fsl_ov7725.h | Github Open Source | Open Source | MIT | 2,022 | portenta-tinyusb | bm16ton | C | Code | 1,649 | 4,614 | /*
* Copyright 2017-2018, 2020 NXP
* All rights reserved.
*
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef _FSL_OV7725_H_
#define _FSL_OV7725_H_
#include "fsl_common.h"
#include "fsl_sccb.h"
#include "fsl_camera_device.h"
/*
* Change log:
*
* 1.0.1
* - Fixed MISRA-C 2012 issues.
*
* 1.0.0
... | 50,147 |
https://github.com/AuroraLynne/sansar-script/blob/master/Samples/MessagingScripts.cs | Github Open Source | Open Source | MIT | 2,019 | sansar-script | AuroraLynne | C# | Code | 100 | 331 | // © 2019 Linden Research, Inc.
using Sansar;
using Sansar.Script;
using Sansar.Simulation;
namespace MessagingScripts
{
public class SendMessageScript : SceneObjectScript
{
public override void Init()
{
ObjectPrivate.AddInteractionData addData = (ObjectPrivate.AddInteractionData)W... | 48,019 |
https://github.com/eliceaas/shiro-redis-sso-demo/blob/master/sso-demo-shiro-client2/src/main/java/com/brt360/client2/SsoDemoShiroClient2Application.java | Github Open Source | Open Source | MIT | null | shiro-redis-sso-demo | eliceaas | Java | Code | 27 | 141 | package com.brt360.client2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"com.brt360.client2", "com.brt360.common"})
public clas... | 2,457 |
https://github.com/piraces/gatsby-blog/blob/master/src/assets/scss/_variables.scss | Github Open Source | Open Source | MIT | 2,020 | gatsby-blog | piraces | SCSS | Code | 108 | 635 | /**
* Variables
*/
// Colors
:root {
--color-base: #222;
--color-primary: #025B9A;
--color-secondary: #585858;
--color-bg: #FFF;
--color-base-light: #555555;
--color-base-light-disable: #888888;
--color-base-light-border: #e6e6e6;
--color-base-light-bg: #ebebeb;
--typographic-b... | 39,413 |
https://github.com/mechealeth/scATAC-benchmarking/blob/master/Synthetic_Data/Erythropoiesis_clean/output/clusters/Cicero_pca_clusters.tsv | Github Open Source | Open Source | MIT | 2,020 | scATAC-benchmarking | mechealeth | TSV | Code | 4,803 | 13,501 | louvain kmeans hc
CMP_1 7 5 9
CMP_2 2 7 7
CMP_3 9 5 0
CMP_4 5 10 5
CMP_5 2 7 7
CMP_6 5 10 5
CMP_7 9 5 10
CMP_8 5 10 5
CMP_9 2 7 10
CMP_10 9 5 10
CMP_11 9 5 0
CMP_12 2 7 10
CMP_13 7 0 9
CMP_14 7 0 10
CMP_15 5 10 5
CMP_16 11 0 0
CMP_17 5 10 5
CMP_18 2 7 10
CMP_19 9 5 0
CMP_20 9 5 0
CMP_21 2 7 10
CMP_22 2 7 10
CMP_23 5 0... | 10,431 |
https://github.com/drejkim/reading-quantified-trello/blob/master/books/client.py | Github Open Source | Open Source | MIT | 2,020 | reading-quantified-trello | drejkim | Python | Code | 374 | 1,075 | import requests
class ReadingQuantifiedClient:
"""
The client is responsible for making calls to the Reading Quantified Server APIs.
"""
def __init__(self, base_url, username, password):
self.base_url = base_url
self.username = username
self.password = password
# Reque... | 771 |
https://github.com/akgrant43/Bloc/blob/master/src/Bloc-Extensions/BlHandlerAnnouncerRegistry.extension.st | Github Open Source | Open Source | MIT | null | Bloc | akgrant43 | null | Spoken | 29 | 90 | Extension { #name : #BlHandlerAnnouncerRegistry }
{ #category : #'*Bloc-Extensions' }
BlHandlerAnnouncerRegistry >> gtInspectorSubscriptionsIn: aComposite [
<gtInspectorPresentationOrder: 2>
^ aComposite list
title: 'Subscriptions';
display: [ self subscriptions ]
]
| 12,997 |
https://github.com/Minishlink/DailyScrum/blob/master/src/modules/common/actions.js | Github Open Source | Open Source | MIT | 2,020 | DailyScrum | Minishlink | JavaScript | Code | 38 | 110 | // @flow
export type ActionType =
| {|
type: 'FETCH_BASE_DATA',
|}
| {|
type: 'SUCCESSFUL_SYNC',
|};
export function fetchBaseData(): ActionType {
return { type: 'FETCH_BASE_DATA' };
}
export function syncIsSuccessful(): ActionType {
return { type: 'SUCCESSFUL_SYNC' };
}
| 46,609 |
https://github.com/rcjackson/MiniSemester/blob/master/0.2_Introduction_to_python.ipynb | Github Open Source | Open Source | BSD-3-Clause | 2,020 | MiniSemester | rcjackson | Jupyter Notebook | Code | 1,920 | 5,279 | {
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Introduction to Python\n",
"\n",
"What are the benefits of using Python?\n",
"\n",
" * General-purpose.\n",
" * Interpreted.\n",
" * Focuses on readability.\n",
" * Comprehesive standard library.\n",
... | 33,705 |
https://github.com/Spikeify/spikeify/blob/master/src/test/java/com/spikeify/entity/EntityExpires.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | spikeify | Spikeify | Java | Code | 35 | 143 | package com.spikeify.entity;
import com.spikeify.annotations.Expires;
import com.spikeify.annotations.Generation;
import com.spikeify.annotations.SetName;
import com.spikeify.annotations.UserKey;
@SuppressWarnings("WeakerAccess")
public class EntityExpires {
@UserKey
public Long userId;
@Generation
public int g... | 25,359 |
https://github.com/cfelder/installer/blob/master/vendor/github.com/hashicorp/terraform-provider-kubernetes/kubernetes/resource_kubernetes_deployment.go | Github Open Source | Open Source | Apache-2.0 | 2,022 | installer | cfelder | Go | Code | 1,693 | 5,284 | package kubernetes
import (
"context"
"fmt"
"log"
"regexp"
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/helper/validation"
appsv1 "k8s.io/api/apps/v1"
"k8s.io/apimachinery/pkg/api/erro... | 47,117 |
https://github.com/dalthviz/scrud-nuxt/blob/master/scrud-nuxt/components/Render/String.vue | Github Open Source | Open Source | BSD-3-Clause | null | scrud-nuxt | dalthviz | Vue | Code | 77 | 237 | <template>
<b-container fluid class="col string">
<div class="label">{{ label }}</div>
<div class="data">{{ data }}</div>
</b-container>
</template>
<script>
export default {
name: 'String',
props: {
data: {
type: String
},
label: {
type: String
}
},
data () {
return... | 2,875 |
https://github.com/ClaineLe/SnakeFramework/blob/master/Editor/SnakeEditorUtility.cs | Github Open Source | Open Source | MIT | null | SnakeFramework | ClaineLe | C# | Code | 41 | 139 | using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEngine;
namespace com.snake.framework
{
namespace editor
{
public class SnakeEditorUtility
{
static public string GetPackagesPath()
{
string packa... | 1,762 |
https://github.com/willem810/jea-passmanager/blob/master/bff/src/main/java/service/StartUp.java | Github Open Source | Open Source | MIT | null | jea-passmanager | willem810 | Java | Code | 25 | 94 | package service;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.ejb.Startup;
import javax.inject.Inject;
@Startup
@Singleton
public class StartUp {
@Inject
PasswordService passwordService;
@PostConstruct
public void startup(){
}
}
| 12,780 |
https://github.com/flydrm/easeagent/blob/master/zipkin/src/main/java/com/megaease/easeagent/zipkin/http/ServletHttpLogInterceptor.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | easeagent | flydrm | Java | Code | 319 | 1,074 | /*
* Copyright (c) 2017, MegaEase
* All rights reserved.
*
* 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 ap... | 44,381 |
https://github.com/qyf404/learn/blob/master/learnFrame/learnDubbo/service/src/main/java/com/qyf404/learn/dubbo/impl/HelloWorldImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | learn | qyf404 | Java | Code | 29 | 106 | package com.qyf404.learn.dubbo.impl;
import com.qyf404.learn.dubbo.api.HelloWorld;
public class HelloWorldImpl implements HelloWorld {
public String getString() {
// TODO Auto-generated method stub
System.out.println("server 20882");
return "hi, my name is qyf404!";
}
}
| 29,380 |
https://github.com/cjftya/cjftya.github.io/blob/master/projects/weddingcard/js/scenes/main/objectinitializer.js | Github Open Source | Open Source | MIT | 2,023 | cjftya.github.io | cjftya | JavaScript | Code | 633 | 3,011 | class ObjectInitializer {
constructor() {
this.__textViewMap = null;
this.__imageViewMap = null;
this.__particleMap = null;
this.__mapModule = null;
this.__galleryFrameModule = null;
this.__dynamicTextFrameModule = null;
this.__directionsModule = null;
... | 45,556 |
https://github.com/jeduardocosta/class-property-validator/blob/master/test/StructureComparer.Tests/Fakes/StructureA/FakeCustomer.cs | Github Open Source | Open Source | MIT | 2,021 | class-property-validator | jeduardocosta | C# | Code | 55 | 132 | using System;
using System.Collections.Generic;
namespace StructureComparer.Tests.Fakes.StructureA
{
public class FakeCustomer
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime? UpdatedAt { ge... | 29,464 |
https://github.com/badearobert/range/blob/master/tc/algorithm.h | Github Open Source | Open Source | BSL-1.0 | null | range | badearobert | C | Code | 3,158 | 13,150 |
// think-cell public library
//
// Copyright (C) 2016-2019 think-cell Software GmbH
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
#pragma once
#include "range_defines.h"
#include "meta.h"
#include "container_t... | 27,370 |
https://github.com/tarekwiz/darling-cocotron/blob/master/AppKit/include/AppKit/NSDrawer.h | Github Open Source | Open Source | MIT | 2,021 | darling-cocotron | tarekwiz | C | Code | 378 | 1,333 | /* Copyright (c) 2006-2007 Christopher J. W. Lloyd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish... | 39,626 |
https://github.com/raae7742/android-tutorial/blob/master/src/@rocketseat/gatsby-theme-docs/src/components/Sidebar/InternalLink/index.js | Github Open Source | Open Source | MIT | 2,022 | android-tutorial | raae7742 | JavaScript | Code | 39 | 108 | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'gatsby';
export default function InternalLink({ link, label }) {
return (
<Link to={link} activeClassName="active-link">
{label}
</Link>
);
}
InternalLink.propTypes = {
link: PropTypes.string.isRequired,
label: ... | 48,600 |
https://github.com/Deanplayerljx/MealPat/blob/master/backend/venv/lib/python3.6/sre_parse.py | Github Open Source | Open Source | MIT | 2,018 | MealPat | Deanplayerljx | Python | Code | 1 | 26 | /Users/DeanLin/anaconda3/lib/python3.6/sre_parse.py | 32,241 |
https://github.com/framf0rt/ACCBroadcastingTool-Modified/blob/master/ksBroadcastingNetwork/Structs/CarInfo.cs | Github Open Source | Open Source | MIT | null | ACCBroadcastingTool-Modified | framf0rt | C# | Code | 125 | 320 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ksBroadcastingNetwork.Structs
{
public class CarInfo
{
public ushort CarIndex { get; }
public byte CarModelType { get; internal set; }
public CarClass CarClass ... | 11,541 |
https://github.com/liuwu/MineSweeper/blob/master/MineSweeper/Classes/BaseModule/Views/ChatHistoryTableViewCell.h | Github Open Source | Open Source | MIT | 2,021 | MineSweeper | liuwu | C | Code | 37 | 124 | //
// ChatHistoryTableViewCell.h
// MineSweeper
//
// Created by liuwu on 2018/9/29.
// Copyright © 2018年 liuwu. All rights reserved.
//
#import "BaseTableViewCell.h"
@interface ChatHistoryTableViewCell : BaseTableViewCell
@property (nonatomic, strong) RCMessage *message;
//返回cell的高度
+ (CGFloat)configureWithMes... | 8,889 |
https://github.com/pahacofome/wagtailmedia/blob/master/wagtailmedia/widgets.py | Github Open Source | Open Source | BSD-3-Clause | null | wagtailmedia | pahacofome | Python | Code | 102 | 410 | from __future__ import absolute_import, unicode_literals
import json
from django.template.loader import render_to_string
from django.utils.translation import ugettext_lazy as _
from wagtailmedia.models import get_media_model
try:
from wagtail.admin.widgets import AdminChooser
except ImportError: # fallback for... | 8,423 |
https://github.com/SMe12435/POCS/blob/master/examples/notebooks/Example Collecting Stats.ipynb | Github Open Source | Open Source | MIT | 2,019 | POCS | SMe12435 | Jupyter Notebook | Code | 391 | 1,335 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from csv import DictReader\n",
"\n",
"from astropy.coordinates import SkyCoord\n",
"from astropy import units as u\n",
"\n",
"from pocs.core import POCS"
]
},
{
"c... | 18,283 |
https://github.com/PetrP/Orm/blob/master/tests/cases/Entity/Entity/EntityFragments/ValueEntityFragment/ValueEntityFragment_onLoad_Test.php | Github Open Source | Open Source | BSD-3-Clause | 2,014 | Orm | PetrP | PHP | Code | 114 | 496 | <?php
use Orm\RepositoryContainer;
/**
* @covers Orm\ValueEntityFragment::onLoad
*/
class ValueEntityFragment_onLoad_Test extends TestCase
{
private $r;
protected function setUp()
{
$m = new RepositoryContainer;
$this->r = $m->TestEntityRepository;
}
public function test()
{
$e = $this->r->getById(1);... | 13,721 |
https://github.com/paylogic/ScanwareLitev2/blob/master/src/com/paylogic/scanwarelite/dialogs/events/NoResourcesDialog.java | Github Open Source | Open Source | MIT | null | ScanwareLitev2 | paylogic | Java | Code | 24 | 143 | package com.paylogic.scanwarelite.dialogs.events;
import android.content.Context;
import com.paylogic.scanwarelite.R;
import com.paylogic.scanwarelite.dialogs.CommonAlertDialog;
public class NoResourcesDialog extends CommonAlertDialog {
public NoResourcesDialog(final Context context) {
super(context);
setTitl... | 49,214 |
https://github.com/heristhesiya/OpenJSCAD.org/blob/master/packages/modeling/src/maths/vec2/add.js | Github Open Source | Open Source | MIT | 2,022 | OpenJSCAD.org | heristhesiya | JavaScript | Code | 63 | 142 | /**
* Adds the coordinates of two vectors (A+B).
*
* @param {vec2} out - receiving vector
* @param {vec2} a - first operand
* @param {vec2} b - second operand
* @returns {vec2} out
* @alias module:modeling/maths/vec2.add
*/
const add = (out, a, b) => {
out[0] = a[0] + b[0]
out[1] = a[1] + b[1]
return out
... | 12,431 |
https://github.com/mdelete/kore/blob/master/examples/pgsql/src/init.c | Github Open Source | Open Source | 0BSD | null | kore | mdelete | C | Code | 190 | 427 | /*
* Copyright (c) 2017-2018 Joris Vink <joris@coders.se>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... | 43,174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.