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/sancssss/Business-Information-Management-System/blob/master/views/city-admin/index.php
Github Open Source
Open Source
BSD-3-Clause
null
Business-Information-Management-System
sancssss
PHP
Code
86
502
<?php use yii\helpers\Html; use yii\widgets\DetailView; /* @var $this yii\web\View */ /* @var $model app\models\YiiUser */ $this->title = "市级管理员中心"; $this->params['breadcrumbs'][] = $this->title; ?> <div class="county-admin-view"> <div class="row"> <div class="col-lg-3 col-md-3"> <?= $this->render('@app...
39,249
https://github.com/taylorm7/HeaviNet/blob/master/batch_generate.sh
Github Open Source
Open Source
MIT
null
HeaviNet
taylorm7
Shell
Code
90
351
#!/bin/bash # At most XX minute of time #PBS -l walltime=80:00:00 # One core on any number of nodes #PBS -l procs=1,gpus=2 #newriver cluster #PBS -W group_list=newriver # queue #PBS -q p100_normal_q #PBS -A CASLAB_18_A # write output and error to the same file #PBS -j oe # Email when your job starts, completes...
5,089
https://github.com/DavidBoddu1/sql-soccer-database-Examples/blob/master/Basic Queries Qustions/5.sql
Github Open Source
Open Source
Unlicense
null
sql-soccer-database-Examples
DavidBoddu1
SQL
Code
30
65
USE SOCCER_DB GO -- 5. Write a query in SQL to find the number of matches -- ended with draws. -- (match_mast) SELECT COUNT(results) FROM match_mast WHERE results = 'DRAW';
20,838
https://github.com/jpsingleton/reactube/blob/master/src/Reactube.NET/Views/Home/Index.cshtml
Github Open Source
Open Source
MIT
null
reactube
jpsingleton
C#
Code
19
167
@section scripts{ @Html.React("TubeStatus", new { initialData = Model }) <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.1/react.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.4.1/react-dom.min.js"></script> <script src="@Url.Content("~/js/moment.min.js")"...
18,904
https://github.com/JLLeitschuh/vid/blob/master/vid-app-common/src/main/java/org/onap/vid/aai/model/AaiGetNetworkCollectionDetails/AaiGetRelatedInstanceGroupsByVnfId.java
Github Open Source
Open Source
Apache-2.0
2,021
vid
JLLeitschuh
Java
Code
435
1,606
/*- * ============LICENSE_START======================================================= * VID * ================================================================================ * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved. * ============================================================...
27,504
https://github.com/Geant-RnD/geant/blob/master/physics/electromagnetic/models/src/ELossTableRegister.cc
Github Open Source
Open Source
ECL-2.0, Apache-2.0
2,018
geant
Geant-RnD
C++
Code
60
257
#include "Geant/ELossTableRegister.h" namespace geantphysics { ELossTableRegister &ELossTableRegister::Instance() { static ELossTableRegister instance; return instance; } void ELossTableRegister::RegisterEnergyLossProcessForParticle(int internalpartindx, EMPhysicsProcess *elossprocess) { unsigned long ipartin...
1,944
https://github.com/andang72/architecture-community-core/blob/master/src/main/java/architecture/community/streams/DefaultStreamThread.java
Github Open Source
Open Source
Apache-2.0
2,021
architecture-community-core
andang72
Java
Code
388
1,536
package architecture.community.streams; import java.util.Date; import java.util.concurrent.atomic.AtomicInteger; import org.apache.commons.lang3.StringUtils; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import com.fasterxml.jackson.databin...
23,566
https://github.com/Roboy/ss18_xylophone_recording/blob/master/Assets/ROSBridge/Scripts/Wrapper/ROSObject.cs
Github Open Source
Open Source
BSD-3-Clause
2,018
ss18_xylophone_recording
Roboy
C#
Code
82
193
using ROSBridge; using System.Collections; using System.Collections.Generic; using UnityEngine; namespace ROSBridge { /// <summary> /// All ROSObjects tell the ROSBridge to add them when they are enabled and to remove them when they are disabled from the connection. /// </summary> public class ROSObje...
18,534
https://github.com/ndueber/quiz_maker/blob/master/src/components/Repos/__tests__/Repos.spec.js
Github Open Source
Open Source
MIT
null
quiz_maker
ndueber
JavaScript
Code
186
720
/* eslint-disable no-unused-expressions, react/prop-types */ import { expect } from 'chai'; import React from 'react'; import { shallow } from 'enzyme'; import Repos from '../Repos'; import DisplayInfosPanel from '../../common/DisplayInfosPanel'; import DisplayStars from '../../common/DisplayStars'; function noop() {...
15,709
https://github.com/ronsaldo/sysmel-beta/blob/master/include/sysmel/Environment/ASTTrapNode.hpp
Github Open Source
Open Source
MIT
2,021
sysmel-beta
ronsaldo
C++
Code
93
275
#ifndef SYSMEL_ENVIRONMENT_AST_TRAP_NODE_HPP #define SYSMEL_ENVIRONMENT_AST_TRAP_NODE_HPP #pragma once #include "ASTNode.hpp" #include "TrapReason.hpp" namespace Sysmel { namespace Environment { /** * I am used for generating a runtime error. I might be compiled to throwing an exception, or aborting the program exe...
33,091
https://github.com/JetBrains/intellij-community/blob/master/python/testData/quickdoc/NumPyOnesDoc/numpy/core/numeric.py
Github Open Source
Open Source
Apache-2.0
2,023
intellij-community
JetBrains
Python
Code
143
385
from . import multiarray __all__ = ['ndarray', 'ones'] ndarray = multiarray.ndarray def ones(shape, dtype=None, order='C'): """ **Test docstring** Return a new array of given shape and type, filled with ones. Parameters ---------- shape : int or sequence of ints Shape of the new arr...
31,798
https://github.com/ParthMmm/albus/blob/master/components/Artist/TrendingArtists.js
Github Open Source
Open Source
MIT
2,021
albus
ParthMmm
JavaScript
Code
127
427
import React from "react"; import useSWR from "swr"; import { chartTopArtists } from "../../utils/fetch"; import Artist from "./Artist"; import { Box, Grid, Skeleton, Heading, Text } from "@chakra-ui/react"; import fetcher from "../../utils/fetcher"; import { useQuery } from "react-query"; import { fetchTopArtists } fr...
35,074
https://github.com/DamianKursa/Remote-Norey/blob/master/src/styles/variables/breakpoints.sass
Github Open Source
Open Source
MIT
null
Remote-Norey
DamianKursa
Sass
Code
8
27
$small: 567px $medium: 768px $big: 992px $large: 1200px
40,323
https://github.com/ardamavi/labirent-oyunu/blob/master/Assets/Bölümler/Oyun/LightingData.asset.meta
Github Open Source
Open Source
Apache-2.0
2,016
labirent-oyunu
ardamavi
Unity3D Asset
Code
12
63
fileFormatVersion: 2 guid: 79b64dbec123c491092ae248d76e450b timeCreated: 1460994384 licenseType: Free NativeFormatImporter: userData: assetBundleName: assetBundleVariant:
47,296
https://github.com/wxiaofei/Li-MVPArms/blob/master/arms/src/main/java/com/jess/arms/utils/DateUtil.java
Github Open Source
Open Source
Apache-2.0
2,017
Li-MVPArms
wxiaofei
Java
Code
700
2,349
package com.jess.arms.utils; import android.content.Context; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class DateUtil { // yyyy-MM-dd hh:mm:ss 12小时制 // yyyy-MM-dd HH:mm:ss 24小时制 public static final String TYPE_01 = "yyyy-MM-dd...
4,601
https://github.com/MelvinG24/dust3d/blob/master/thirdparty/cgal/CGAL-5.1/include/CGAL/Alpha_shape_3.h
Github Open Source
Open Source
GPL-3.0-only, LGPL-2.1-or-later, LicenseRef-scancode-proprietary-license, GPL-1.0-or-later, LGPL-2.0-or-later, MIT, LicenseRef-scancode-free-unknown, LicenseRef-scancode-unknown-license-reference, MIT-0, LGPL-3.0-only, LGPL-3.0-or-later
2,021
dust3d
MelvinG24
C++
Code
5,837
19,805
// Copyright (c) 1997, 2012 INRIA Sophia-Antipolis (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Alpha_shapes_3/include/CGAL/Alpha_shape_3.h $ // $Id: Alpha_shape_3.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot // SPDX-Licens...
32,905
https://github.com/eytb2/Ticket-Analysis/blob/master/androidutils/src/main/java/momo/cn/edu/fjnu/androidutils/utils/DeviceInfoUtils.java
Github Open Source
Open Source
MIT
null
Ticket-Analysis
eytb2
Java
Code
270
1,381
package momo.cn.edu.fjnu.androidutils.utils; import android.app.Activity; import android.content.Context; import android.graphics.Rect; import android.telephony.TelephonyManager; import android.util.DisplayMetrics; import android.view.WindowManager; import java.lang.reflect.Field; import momo.cn.edu.fjnu.androidutil...
36,041
https://github.com/natefaubion/slamdata/blob/master/src/SlamData/Dialog/License.purs
Github Open Source
Open Source
Apache-2.0
2,020
slamdata
natefaubion
PureScript
Code
486
1,189
{- Copyright 2017 SlamData, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
49,345
https://github.com/coltrida/andirivieni/blob/master/app/Models/Order.php
Github Open Source
Open Source
MIT
null
andirivieni
coltrida
PHP
Code
55
213
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Order extends Model { protected $table = 'orders'; protected $appends = ['orario', 'cameriere']; public function foods() { return $this->belongsToMany(Food::class, 'foods_orders', 'order_id', 'food_id') ->w...
36,958
https://github.com/facebook/react-native/blob/master/packages/react-native/Libraries/Inspector/ElementProperties.js
Github Open Source
Open Source
MIT, CC-BY-4.0, CC-BY-NC-SA-4.0, CC-BY-SA-4.0
2,023
react-native
facebook
JavaScript
Code
360
1,205
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; import type {ViewStyleProp} from '../StyleSheet/StyleSheet'; const TouchableHighlight = r...
16,748
https://github.com/thaliproject/Thali_Codovaplugin/blob/master/test/www/jxcore/lib/sinonTest.js
Github Open Source
Open Source
MIT
2,022
Thali_Codovaplugin
thaliproject
JavaScript
Code
70
234
'use strict'; var sinon = require('sinon'); function sinonTest (callback) { return function (t) { var config = sinon.getConfig(sinon.config); config.injectInto = config.injectIntoThis && this || config.injectInto; var sandbox = sinon.sandbox.create(config); var args = Array.prototype.slice.call(ar...
38,110
https://github.com/oracle/weblogic-kubernetes-operator/blob/master/kubernetes/samples/scripts/create-kubernetes-secrets/create-azure-storage-credentials-secret.sh
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-free-unknown, UPL-1.0, bzip2-1.0.6, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference, Plexus, EPL-2.0, CDDL-1.0, MIT, GPL-2.0-only, Apache-2.0, LicenseRef-scancode-public-domain, CDDL-1.1, LicenseRef-scancode-generic-export-compliance, CC0-1.0, GPL-2.0-...
2,023
weblogic-kubernetes-operator
oracle
Shell
Code
375
907
#!/usr/bin/env bash # Copyright (c) 2018, 2022, Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # # Description # This sample script creates a Kubernetes secret for Azure Storage to use Azure file share on AKS. # # The following pr...
10,207
https://github.com/Dorllen/eso/blob/master/src/main/java/com/zhidian/utils/Mybatis.java
Github Open Source
Open Source
Apache-2.0
null
eso
Dorllen
Java
Code
102
389
/** * @Title: Mybatis.java * @Package com.zhidian.utils * @Description: TODO(用一句话描述该文件做什么) * @author dongneng * @date 2017-3-18 下午9:14:26 * @version V1.0 */ package com.zhidian.utils; import java.io.IOException; import java.io.InputStream; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session...
50,420
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/d/docusign-esign/src/main/scala/typingsSlinky/docusignEsign/mod/BillingPlanUpdateResponse.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
398
1,269
package typingsSlinky.docusignEsign.mod import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait BillingPlanUpdateResponse extends StObject { /** * The type of...
31,806
https://github.com/andes/turnos_online/blob/master/src/app/pages/turnos/buscar/turnos-buscar.ts
Github Open Source
Open Source
MIT
2,018
turnos_online
andes
TypeScript
Code
288
1,063
import { Component, OnDestroy, OnInit } from '@angular/core'; import { Platform } from '@ionic/angular'; import { Subscription } from 'rxjs'; import { GeoProvider } from 'src/providers/geo-provider'; // src/providers import { AgendasProvider } from 'src/providers/agendas'; import { TurnosProvider } from 'src/providers/...
7,873
https://github.com/sleyzerzon/soar/blob/master/Domains/SoarQnA/src/main/java/edu/umich/soar/qna/dice/ComputeProbabilityQueryState.java
Github Open Source
Open Source
Unlicense
2,016
soar
sleyzerzon
Java
Code
198
835
package edu.umich.soar.qna.dice; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import edu.umich.dice.LiarsDice.Predicate; import edu.umich.soar.qna.ComputationalQueryState; public class ComputeProbabilityQueryState extends ComputationalQueryState { private sta...
24,863
https://github.com/Thitthitmon/msphpsql/blob/master/test/functional/pdo_sqlsrv/pdo_033_binary_unicode.phpt
Github Open Source
Open Source
MIT
2,017
msphpsql
Thitthitmon
PHP
Code
125
399
--TEST-- Insert binary HEX data then fetch it back as string --DESCRIPTION-- Insert binary HEX data into an nvarchar field then read it back as UTF-8 string --SKIPIF-- <?php require('skipif.inc'); ?> --FILE-- <?php try { require_once("MsSetup.inc"); // Connect $conn = new PDO("sqlsrv:server=$server; datab...
8,425
https://github.com/aic-develop/vietmaps-navigation-android/blob/master/examples/src/main/java/com/mapbox/navigation/examples/activity/OffboardRouterActivityJava.java
Github Open Source
Open Source
Apache-2.0, BSD-2-Clause
null
vietmaps-navigation-android
aic-develop
Java
Code
435
2,009
package com.mapbox.navigation.examples.activity; import android.annotation.SuppressLint; import android.os.Bundle; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import com.google.android.material.snackbar.Snackbar; import com.mapbox.api.directions.v...
31,877
https://github.com/darot-chen/flutter-crisp/blob/master/lib/crisp.dart
Github Open Source
Open Source
MIT
2,021
flutter-crisp
darot-chen
Dart
Code
6
44
export 'package:crisp/models/main.dart'; export 'package:crisp/models/user.dart'; export 'package:crisp/crisp_view.dart';
15,907
https://github.com/slim627/meggi/blob/master/src/Meggi/IndexBundle/Resources/views/Basket/basket.html.twig
Github Open Source
Open Source
MIT
null
meggi
slim627
Twig
Code
387
1,715
{% extends 'MeggiIndexBundle::layout.html.twig' %} {% block content %} <div class="h_block h_news"> <div class="wrap"> <h2 class="back">Редактирование заявки</h2> </div> </div> <div class="wrap bc"><span>Редактирование заявки</span> <i></i> Подтверждение заявки</div> <div cl...
21,294
https://github.com/rbqren000/ZXHookUtil/blob/master/ZXHookUtil/UIKit/UIButton/UIButton+ZXAddAction.h
Github Open Source
Open Source
MIT
2,023
ZXHookUtil
rbqren000
Objective-C
Code
31
131
// // UIButton+ZXAddAction.h // ZXHookUtilDemoDylib // // Created by 李兆祥 on 2019/3/10. // Copyright © 2019 李兆祥. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^ZXActionBlock)(UIButton *button); @interface UIButton (ZXAddAction) -(void)addClickAction:(ZXActionBlock)callBack; @end
22,002
https://github.com/gritwyplay/Storm/blob/master/src/lib/support/shouldRepeat.spec.js
Github Open Source
Open Source
Apache-2.0
2,019
Storm
gritwyplay
JavaScript
Code
435
894
import test from 'tape' import shouldRepeat from './shouldRepeat' test('shouldRepeat - Type', assert => { const expected = 'function' const actual = typeof shouldRepeat assert.equal(actual, expected, 'shouldRepeat should be a function') assert.end() }) // signature context, repeat, index, start test('shoul...
12,957
https://github.com/Felind/QRS/blob/master/app/src/main/java/com/felind/qrs/DatabaseHelper.java
Github Open Source
Open Source
Apache-2.0
2,019
QRS
Felind
Java
Code
124
324
package com.felind.qrs; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import static nl.qbusict.cupboard.CupboardFactory.cupboard; public class DatabaseHelper extends SQLiteOpenHelper{ private static final String DATABASE_NAME = "cup...
13,747
https://github.com/jomaleda/typescript-express-rest-template/blob/master/src/app/interfaces/logger.ts
Github Open Source
Open Source
MIT
null
typescript-express-rest-template
jomaleda
TypeScript
Code
36
89
export default interface Logger { Error: (newLog: string) => void; Warn: (newLog: string) => void; Info: (newLog: string) => void; Verbose: (newLog: string) => void; Debug: (newLog: string) => void; Silly: (newLog: string) => void; }
39,739
https://github.com/valery-shinkevich/http4s-poc-api/blob/master/src/main/scala/external/TeamOneHttpApi.scala
Github Open Source
Open Source
MIT
2,021
http4s-poc-api
valery-shinkevich
Scala
Code
51
134
package external import model.DomainModel._ import scala.concurrent.Future trait TeamOneHttpApi { def usersPreferences: UserId => Future[UserPreferences] def productPrice: Product => UserPreferences => Future[Price] } object TeamOneHttpApi { @inline def apply(): TeamOneHttpApi = new TeamOneHttpApi { ...
25,604
https://github.com/mindaffect/javamindaffectBCI/blob/master/matrixSpellerGdx/core/src/nl/ma/utopia/matrix_speller/screens/ElectrodeQualityScreen.java
Github Open Source
Open Source
MIT
null
javamindaffectBCI
mindaffect
Java
Code
471
1,698
package nl.ma.utopia.matrix_speller.screens; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g...
10,000
https://github.com/Aman2244-hub/ducss-site-old/blob/master/project/events/migrations/0001_initial.py
Github Open Source
Open Source
MIT
2,020
ducss-site-old
Aman2244-hub
Python
Code
101
550
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Event' db.create_table('events_event', ( ('id', self.gf('django.db.models.fields...
32,123
https://github.com/PlexPt/summingbird/blob/master/summingbird-scalding/src/main/scala/com/twitter/summingbird/scalding/batch/BatchedStore.scala
Github Open Source
Open Source
Apache-2.0
null
summingbird
PlexPt
Scala
Code
1,986
4,946
/* Copyright 2013 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
34,605
https://github.com/exabrial/speakeasy/blob/master/src/main/java/com/github/exabrial/speakeasy/primitives/PasswordHasher.java
Github Open Source
Open Source
Apache-2.0
2,018
speakeasy
exabrial
Java
Code
265
440
/** * Copyright [2018] [Jonathan S. Fisher] * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
6,708
https://github.com/aifa-gov-it/invoices-processor/blob/master/src/main/java/it/gov/aifa/invoice_processor/entity/invoice/Attachment.java
Github Open Source
Open Source
MIT
null
invoices-processor
aifa-gov-it
Java
Code
170
628
package it.gov.aifa.invoice_processor.entity.invoice; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.persistence.Entity; import javax.persistence.Lob; import javax.persistence.Table; import javax.persistence.Transient; import org.apache.commons.lang3.StringUtils; import...
21,119
https://github.com/kervinck/gigatron-rom/blob/master/Contrib/psr/multiply/src/half-square.asm.py
Github Open Source
Open Source
BSD-2-Clause
2,023
gigatron-rom
kervinck
Python
Code
894
3,692
"""Implementation of multiplication that uses the following identity: a * b = (a² + b² - (a-b)²)/2 We use this to implement multiplication of nibbles, and from that multiplication of bytes. We make use of a lookup table of ⌊n²/2⌋ for n in the range [-15,15], and calculate (⌊a²/2⌋ + ⌊b²/2⌋ - ⌊(a-b)²/2⌋ + (a & b & 1))...
26,936
https://github.com/jpfreitasalvi/Exercicios-Pascal-Cap03/blob/master/cap3_ex24.pas
Github Open Source
Open Source
MIT
2,020
Exercicios-Pascal-Cap03
jpfreitasalvi
Pascal
Code
98
270
Program qtd_dinheiro; {Faça um programa que receba a quantidade de dinheiro em reais que uma pessoa que vai viajar possui. Ela vai passar por vários países e precisa converter seu dinheiro em dólares, marco alemão e libra esterlina. Sabe-se que a cotação do dólar é de R$ 1,80; do marco alemão, de R$ 2,00; e da libra ...
20,020
https://github.com/Veratics/Maternity-Tracker/blob/master/Dashboard/va.gov.artemis.ui.data/Brokers/NonVACare/NonVACareRepository.cs
Github Open Source
Open Source
Apache-2.0
2,021
Maternity-Tracker
Veratics
C#
Code
651
2,104
// Originally submitted to OSEHRA 2/21/2017 by DSS, Inc. // Authored by DSS, Inc. 2014-2017 using VA.Gov.Artemis.Commands.Dsio.Base; using VA.Gov.Artemis.Commands.Dsio.NonVA; using VA.Gov.Artemis.UI.Data.Brokers.Common; using VA.Gov.Artemis.UI.Data.Models.NonVACare; using VA.Gov.Artemis.Vista.Broker; namespace VA.G...
5,165
https://github.com/Anamon/basic-games/blob/master/games/Color Computer Magazine/1984-02/Bone Race/game.bas
Github Open Source
Open Source
CC0-1.0
2,021
basic-games
Anamon
Visual Basic
Code
317
820
100 REM * BONE RACE * TRS-80 COLOR BASIC 4K 110 REM * SORCERER'S PUZZLES #5 * RICHARD RAMELLA 120 CLS(0) 130 FOR X=0 TO 60 140 SET(X,Y,5) 150 SET(X,Y+4,5) 160 IF X/4=INT(X/4) THEN FOR Z=Y TO Y+4: SET(X,Z,5): NEXT Z 170 NEXT X 180 FOR A=1 TO 32 190 Z$=Z$+CHR$(143) 200 NEXT A 210 GOSUB 520 220 PRINT Z$ 230 X=2 240 L=0 2...
26,845
https://github.com/Codechef-SRM-NCR-Chapter/30-DaysOfCode-March-2021/blob/master/answers/Archita/Day 7/Q2.cpp
Github Open Source
Open Source
MIT
2,021
30-DaysOfCode-March-2021
Codechef-SRM-NCR-Chapter
C++
Code
63
280
#include <iostream> using namespace std; int main() { int a,b,c,arr[10],n,gt=0; cout<<"Enter the no. of elements in array\n"; cin>>n; cout<<"Enter the elements of array\n"; for(int m=0;m<n;m++) { cin>>arr[m]; } cout<<"enter the values of a,b and c"; cin>>a>>b>>c; for(in...
1,436
https://github.com/tjaktor/shopping/blob/master/src/main/java/com/tjaktor/shopping/service/UserService.java
Github Open Source
Open Source
Apache-2.0
2,017
shopping
tjaktor
Java
Code
29
81
package com.tjaktor.shopping.service; import com.tjaktor.shopping.entity.User; public interface UserService { /** * Find a user by username. * * @param username String * @return User */ public User findByUsername(String username); }
19,093
https://github.com/aserg-ufmg/jmove/blob/master/src/src/br/ufmg/dcc/labsoft/java/jmove/methods/AllMethods.java
Github Open Source
Open Source
MIT
2,019
jmove
aserg-ufmg
Java
Code
1,126
5,141
package br.ufmg.dcc.labsoft.java.jmove.methods; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse...
12,928
https://github.com/ahxm/cloud/blob/master/cloud-api/src/main/java/com/ans/cloud/model/QUserAccessKey.java
Github Open Source
Open Source
Apache-2.0
null
cloud
ahxm
Java
Code
20
61
package com.ans.cloud.model; import com.ans.cloud.data.model.Query; /** * @author anzhen * @since 2016-03-08 15:07 */ public class QUserAccessKey implements Query { }
43,840
https://github.com/mattbragaw/mqb/blob/master/Mqb.Data/Descriptors/Services/ISpaceService.cs
Github Open Source
Open Source
MIT
null
mqb
mattbragaw
C#
Code
50
243
using Mqb.Descriptors.Models; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace Mqb.Descriptors.Services { public interface ISpaceService : ICrudService<ISpace> { Task<IEnumerable<ISpace>> GetByParentOrgIdAsync(string parentOrgId); Task<...
27,958
https://github.com/seL4/isabelle/blob/master/src/HOL/ex/Perm_Fragments.thy
Github Open Source
Open Source
BSD-3-Clause
2,023
isabelle
seL4
Isabelle
Code
1,391
3,909
(* Author: Florian Haftmann, TU Muenchen *) section \<open>Fragments on permuations\<close> theory Perm_Fragments imports "HOL-Library.Dlist" "HOL-Combinatorics.Perm" begin text \<open>On cycles\<close> context includes permutation_syntax begin lemma cycle_prod_list: "\<langle>a # as\<rangle> = prod_list (map ...
1,520
https://github.com/PNNL-Comp-Mass-Spec/DBSchema_PgSQL_DMS/blob/master/dms/sw/sw.add_update_transfer_paths_in_params_using_data_pkg.sql
Github Open Source
Open Source
Apache-2.0
2,023
DBSchema_PgSQL_DMS
PNNL-Comp-Mass-Spec
PLpgSQL
Code
617
1,757
-- -- Name: add_update_transfer_paths_in_params_using_data_pkg(integer, boolean, text, text); Type: PROCEDURE; Schema: sw; Owner: d3l243 -- CREATE OR REPLACE PROCEDURE sw.add_update_transfer_paths_in_params_using_data_pkg(IN _datapackageid integer, INOUT _paramsupdated boolean DEFAULT false, INOUT _message text DEFAUL...
6,781
https://github.com/lshift/bletchley/blob/master/src/test/java/net/lshift/spki/suiteb/demo/ServerWithEncryption.java
Github Open Source
Open Source
Apache-2.0
2,016
bletchley
lshift
Java
Code
83
390
package net.lshift.spki.suiteb.demo; import static net.lshift.spki.suiteb.SequenceUtils.sequence; import static net.lshift.spki.suiteb.demo.Utilities.emptyByteOpenable; import static net.lshift.spki.suiteb.demo.Utilities.read; import java.io.IOException; import net.lshift.spki.InvalidInputException; import net.lshif...
41,365
https://github.com/reactive-stack-js/reactive-stack-js-rest-frontend-react/blob/master/src/app/pages/header/User.js
Github Open Source
Open Source
Unlicense
2,021
reactive-stack-js-rest-frontend-react
reactive-stack-js
JavaScript
Code
115
464
import _ from "lodash"; import React, {Component} from "react"; import {Link, withRouter} from "react-router-dom"; import {Button, Icon} from "semantic-ui-react"; import "./User.css"; import AuthService from "../../../_reactivestack/auth.service"; class User extends Component { facebook = () => this.props.history.p...
6,346
https://github.com/andrii-sky/analytics-react-native/blob/master/lib/typescript/src/analytics.d.ts
Github Open Source
Open Source
MIT
null
analytics-react-native
andrii-sky
TypeScript
Code
742
1,595
import type { Logger } from './logger'; import type { DestinationPlugin, PlatformPlugin, Plugin } from './plugin'; import type { Settable, Watchable } from './storage'; import { Config, Context, DeepPartial, GroupTraits, JsonMap, PluginType, SegmentAPIIntegrations, SegmentAPISettings, SegmentEvent, UserInfoState, UserT...
32,390
https://github.com/zhytang/angular-admin/blob/master/src/app/services/saHttpLoading/saHttpLoading.service.ts
Github Open Source
Open Source
MIT
2,020
angular-admin
zhytang
TypeScript
Code
169
567
/** * @file Http loading service * @desc app/http-loading * @author Surmon <https://github.com/surmon-china> */ import { Injectable } from '@angular/core'; function replaceMethod(replacer) { return (target, propertyKey, descriptor) => { descriptor.value = replacer(descriptor.value); return descriptor; ...
38,746
https://github.com/jimbi-o/illuminate/blob/master/src/d3d12/render_pass/d3d12_render_pass_cs_dispatch.h
Github Open Source
Open Source
MIT
null
illuminate
jimbi-o
C
Code
33
167
#ifndef ILLUMINATE_D3D12_RENDER_PASS_CS_DISPATCH_H #define ILLUMINATE_D3D12_RENDER_PASS_CS_DISPATCH_H #include "d3d12_render_pass_common.h" namespace illuminate { class RenderPassCsDispatch { public: static void* Init(RenderPassFuncArgsInit* args, const uint32_t render_pass_index); static void Render(RenderPassFun...
46,718
https://github.com/ORORRR/numero-number-one/blob/master/app/Resources/views/oeuvres/oeuvre_ajout.html.twig
Github Open Source
Open Source
MIT
null
numero-number-one
ORORRR
Twig
Code
220
981
{% extends 'pageSite.html.twig' %} {% form_theme form 'form/errors.html.twig' %} {% block main %} <div class="container"> <div id="form-ajout-oeuvre" class="text-center border border-light p-5 m-5"> <p class="h3 mb-4"><strong>Ajouter une oeuvre</strong></p> {{ form_start(form) }} ...
21,917
https://github.com/thinhlv02/lazum3_dalcheeni/blob/master/application/controllers/admin/Phieuluong.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,018
lazum3_dalcheeni
thinhlv02
PHP
Code
863
4,858
<?php require APPPATH . "libraries/PHPExcel.php"; Class Phieuluong extends MY_Controller { function __construct() { parent::__construct(); $this->load->model('phieuluong_model'); $this->load->model('employee_model'); $this->load->model('level_model'); $this->load->model(...
19,429
https://github.com/tlk-emb/PhoenixCMS/blob/master/home_page_local/rel/home_page/lib/timex-3.5.0/priv/translations/ja/LC_MESSAGES/relative_time.po
Github Open Source
Open Source
Apache-2.0
2,020
PhoenixCMS
tlk-emb
Gettext Catalog
Code
494
2,177
# # `msgid`s in this file come from POT (.pot) files. # # # # Do not add, change, or remove `msgid`s manually here as # # they're tied to the ones in the corresponding POT file # # (with the same domain). # # # # Use `mix gettext.extract --merge` or `mix gettext.merge` # # to merge POT files into PO files. msgid "" msg...
1,352
https://github.com/shaojiankui/iOS10-Runtime-Headers/blob/master/protocols/UISearchDisplayDelegate.h
Github Open Source
Open Source
MIT
2,018
iOS10-Runtime-Headers
shaojiankui
C
Code
62
368
/* Generated by RuntimeBrowser. */ @protocol UISearchDisplayDelegate <NSObject> @optional - (void)searchDisplayController:(UISearchDisplayController *)arg1 didHideSearchResultsTableView:(UITableView *)arg2; - (void)searchDisplayController:(UISearchDisplayController *)arg1 didLoadSearchResultsTableView:(UITableView ...
34,397
https://github.com/Scottx86-64/dotfiles-1/blob/master/source/pkgsrc/lang/mozjs78/patches/patch-js_src_threading_posix_PosixThread.cpp
Github Open Source
Open Source
Unlicense
2,021
dotfiles-1
Scottx86-64
C++
Code
50
218
$NetBSD: patch-js_src_threading_posix_PosixThread.cpp,v 1.1 2020/12/06 10:50:03 nia Exp $ illumos pthreads don't have pthread_setname_np. --- js/src/threading/posix/PosixThread.cpp.orig 2020-11-04 10:52:03.000000000 +0000 +++ js/src/threading/posix/PosixThread.cpp @@ -103,6 +103,8 @@ void ThisThread::SetName(const ch...
26,340
https://github.com/ValtoFrameworks/bsf/blob/master/Source/Scripting/bsfScript/Serialization/BsManagedSerializableField.h
Github Open Source
Open Source
MIT
2,019
bsf
ValtoFrameworks
C
Code
2,359
8,720
//********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once #include "BsScriptEnginePrerequisites.h" #include "Refle...
48,789
https://github.com/yashkundu/ToDo-Web-App/blob/master/src/tasks/api/serializers.py
Github Open Source
Open Source
bzip2-1.0.6
null
ToDo-Web-App
yashkundu
Python
Code
74
226
from rest_framework import serializers from tasks.models import Task from accounts.api.serializers import UserPublicSerializer class TaskSerializer(serializers.ModelSerializer): user = UserPublicSerializer(read_only=True) class Meta: model = Task fields = [ 'user', 'ta...
16,549
https://github.com/BryanMendoza0309/ProyectoFinal/blob/master/app/Http/Controllers/ProveedorController.php
Github Open Source
Open Source
MIT
null
ProyectoFinal
BryanMendoza0309
PHP
Code
264
1,155
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Producto; use App\Stock; use App\Provedor; class ProveedorController extends Controller { public function load(Request $request) { $ListaProvedor=Provedor::all(); if ($request->ajax()) { return respon...
13,458
https://github.com/ropensci/webchem/blob/master/man/get_chebiid.Rd
Github Open Source
Open Source
MIT
2,023
webchem
ropensci
R
Code
485
1,324
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/chebi.R \name{get_chebiid} \alias{get_chebiid} \title{Retrieve Lite Entity (identifiers) from ChEBI} \usage{ get_chebiid( query, from = c("all", "chebi id", "chebi name", "definition", "name", "iupac name", "citations", "registry numb...
4,630
https://github.com/rasp30024/roll20-api-scripts/blob/master/Vector Math/1.0/VecMath.js
Github Open Source
Open Source
MIT
2,022
roll20-api-scripts
rasp30024
JavaScript
Code
1,545
4,682
/** * This is a small library for (mostly 2D) vector mathematics. * Internally, the vectors used by this library are simple arrays of numbers. * The functions provided by this library do not alter the input vectors, * treating each vector as an immutable object. */ var VecMath = (function() { /** * ...
50,782
https://github.com/hileamlakB/GBK/blob/master/utils/str_util_adv2.c
Github Open Source
Open Source
MIT
null
GBK
hileamlakB
C
Code
221
558
#include "../gbk.h" /** *findd - finds the number occurance of tof in str *@str: string to be searched *@tof: string to fid *Return: the number of times teh delimeter ocures */ int findd(char *str, char *tof) { char *tokenized = NULL, *new = NULL; int i = 0; if (_strlen(tof) > _strlen(str)) return (0); new ...
3,960
https://github.com/microg/GmsCore/blob/master/play-services-core/src/main/kotlin/org/microg/gms/auth/AuthPrefs.kt
Github Open Source
Open Source
Apache-2.0
2,023
GmsCore
microg
Kotlin
Code
48
202
package org.microg.gms.auth import android.content.Context import org.microg.gms.settings.SettingsContract import org.microg.gms.settings.SettingsContract.Auth object AuthPrefs { @JvmStatic fun isTrustGooglePermitted(context: Context): Boolean { return SettingsContract.getSettings(context, Auth.getCo...
17,247
https://github.com/RumbleFrog/Source-Map-Thumbnails/blob/master/meta/meta.go
Github Open Source
Open Source
MIT
2,018
Source-Map-Thumbnails
RumbleFrog
Go
Code
82
255
package meta type Angle_t struct { Pitch float64 Yaw float64 } type Coordinate_t [3]float64 type Position_t struct { Coordinate Coordinate_t Angle Angle_t } type Map_t struct { Name string Count int Positions []Position_t } func (a Angle_t) IsEqual(oa Angle_t) bool { return (a.Pitch == oa.P...
23,057
https://github.com/alizarion/java-design-patterns/blob/master/command/src/main/java/com/iluwatar/App.java
Github Open Source
Open Source
MIT
2,021
java-design-patterns
alizarion
Java
Code
70
203
package com.iluwatar; /** * * In Command pattern actions are objects that can * be executed and undone. The commands in this example * are spells cast by the wizard on the goblin. * */ public class App { public static void main( String[] args ) { Wizard wizard = new Wizard(); Goblin goblin = ...
14,149
https://github.com/Aaron120413/tools/blob/master/watermark/watermark_image.py
Github Open Source
Open Source
MIT
2,021
tools
Aaron120413
Python
Code
109
348
# coding=utf-8 import os import sys import fitz ''' pip install pymupdf ''' if len(sys.argv) < 2: print("use watermark.py filename.pdf") exit(0) if not os.path.exists(sys.argv[1]): print("file not exists") exit(0) dirname = os.path.dirname(__file__) if not os.path.exists("output"): os.makedi...
35,376
https://github.com/Personalhomeman/VFSForGit/blob/master/ProjFS.Linux/PrjFSLib.Linux.Managed/Interop/ProjFS.cs
Github Open Source
Open Source
MIT
2,022
VFSForGit
Personalhomeman
C#
Code
581
1,968
using System; using System.Runtime.InteropServices; namespace PrjFSLib.Linux.Interop { internal partial class ProjFS { private const string PrjFSLibPath = "libprojfs.so"; private const string ProviderIdAttrName = "vfsforgit.providerid"; private const string ContentIdAttrName = "vfsforg...
35,486
https://github.com/isabella232/dart-sdk/blob/master/lib/src/configcat_cache.dart
Github Open Source
Open Source
MIT
null
dart-sdk
isabella232
Dart
Code
122
236
/// A cache API used to make custom cache implementations. abstract class ConfigCatCache { /// Child classes has to implement this method, the [ConfigCatClient] is /// using it to get the actual value from the cache. /// /// [key] is the key of the cache entry. Future<String> read(String key); /// Child cl...
11,130
https://github.com/maksis/airdcpp-webui/blob/master/src/types/ui/widgets.ts
Github Open Source
Open Source
MIT
2,015
airdcpp-webui
maksis
TypeScript
Code
86
253
import { FormFieldDefinition } from './form'; import { ModuleActions } from './actions'; import { ModuleTranslator } from './modules'; export interface WidgetSettings<SettingsT = object> { widget: SettingsT; name?: string; } export interface WidgetProps<SettingsT = object> { componentId: string; settings: Se...
9,098
https://github.com/maiome/malibu/blob/master/src/malibu/util/args.py
Github Open Source
Open Source
Unlicense
null
malibu
maiome
Python
Code
980
2,735
# -*- coding: utf-8 -*- import sys class ArgumentParser(object): OPTION_SINGLE = 1 OPTION_PARAMETERIZED = 2 PARAM_SHORT = 1 PARAM_LONG = 2 @classmethod def from_argv(cls): """ Creates an ArgumentParser engine with args from sys.argv[]. """ ret...
45,429
https://github.com/thedestiny/spring-framework/blob/master/src/docs/asciidoc/web/webflux-webclient.adoc
Github Open Source
Open Source
Apache-2.0
null
spring-framework
thedestiny
AsciiDoc
Code
1,446
4,303
[[webflux-client]] = WebClient Spring WebFlux includes a reactive, non-blocking `WebClient` for performing HTTP requests using a functional-style API that exposes Reactor `Flux` and `Mono` types, see <<web-reactive.adoc#webflux-reactive-libraries>>. The client relies on the same <<web-reactive.adoc#webflux-codecs,code...
8,576
https://github.com/waldyrious/cosmopolitan/blob/master/libc/nt/ws2_32/WahCloseHandleHelper.s
Github Open Source
Open Source
0BSD
2,021
cosmopolitan
waldyrious
GAS
Code
4
42
.include "o/libc/nt/codegen.inc" .imp ws2_32,__imp_WahCloseHandleHelper,WahCloseHandleHelper,167
24,885
https://github.com/tu95ctv/28022017/blob/master/static/js/rnoc_js.js
Github Open Source
Open Source
MIT
2,017
28022017
tu95ctv
JavaScript
Code
4,948
19,888
var modelClassDict = { "su_co": "SuCo", "trang_thai": "TrangThai", "nguyen_nhan": "NguyenNhan", "thiet_bi": "ThietBi", "thao_tac_lien_quan": "ThaoTacLienQuan", "doi_tac": "DoiTac", "du_an": "DuAn", "component_lien_quan": "Component", "lenh_lien_quan": 'Lenh', }; var last_add_item SLA...
10,564
https://github.com/nagyist/marketcetera/blob/master/trunk/modules/strategy/src/test/sample_data/inputs/send_other.rb
Github Open Source
Open Source
Apache-2.0
2,023
marketcetera
nagyist
Ruby
Code
43
169
require 'java' java_import org.marketcetera.strategy.ruby.Strategy java_import org.marketcetera.trade.Equity java_import java.math.BigDecimal java_import java.lang.System java_import java.lang.Boolean class SendOther < Strategy def on_ask(ask) if(get_property("sendNull") != nil) send nil ...
34,012
https://github.com/dongzm/yyg/blob/master/system/modules/vote/tpl/vote.list.tpl.php
Github Open Source
Open Source
MIT
2,017
yyg
dongzm
PHP
Code
142
864
<?php defined('G_IN_ADMIN')or exit('No permission resources.'); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>后台首页</title> <link rel="stylesheet" href="<?php echo G_GLOBAL_STYLE; ?>/global/css/global.css" type="text/css...
50,386
https://github.com/Zooll8/nightlife-coordinator/blob/master/src/store/initialState.js
Github Open Source
Open Source
MIT
2,017
nightlife-coordinator
Zooll8
JavaScript
Code
22
55
const initialState = { auth: { value: false, user: {} }, search: { data: [], isLoading: false } }; export default initialState;
35,308
https://github.com/Thraka/QuickPak-Pro-DOS/blob/master/source/DEMOPULL.MAK
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,018
QuickPak-Pro-DOS
Thraka
Makefile
Code
2
15
DEMOPULL.BAS PULLDOWN.BAS
38,450
https://github.com/BasLee/textrepo/blob/master/textrepo-app/src/main/java/nl/knaw/huc/api/ResultType.java
Github Open Source
Open Source
Apache-2.0
null
textrepo
BasLee
Java
Code
61
199
package nl.knaw.huc.api; import com.fasterxml.jackson.annotation.JsonProperty; import nl.knaw.huc.core.Type; public class ResultType { private final short id; private final String name; private final String mimetype; public ResultType(Type type) { this.id = type.getId(); this.name = type.getName(); ...
22,355
https://github.com/dotnetcore/Util/blob/master/test/Util.Generators.Razor.Tests.Integration/RazorTemplateTest.cs
Github Open Source
Open Source
MIT
2,023
Util
dotnetcore
C#
Code
135
412
using System.IO; using System.Threading.Tasks; using Util.Generators.Contexts; using Util.Helpers; using Util.Templates; using Xunit; namespace Util.Generators.Razor.Tests.Integration { /// <summary> /// Razor模板测试 /// </summary> public class RazorTemplateTest { /// <summary> /// 模板引擎 ...
3,594
https://github.com/zuwome/kongxia/blob/master/kongxia/Views/Home/home/view/ZZHomeStatusView.h
Github Open Source
Open Source
MIT
null
kongxia
zuwome
C
Code
53
177
// // ZZHomeStatusView.h // zuwome // // Created by angBiu on 16/9/13. // Copyright © 2016年 zz. All rights reserved. // #import <UIKit/UIKit.h> /** 首页 -- 飞机 新人标志 */ @interface ZZHomeStatusView : UIView @property (nonatomic, strong) UIImageView *bgImgView; @property (nonatomic, strong) UILabel *statusLabel; @pr...
9,258
https://github.com/mvangoor/pzs-ng/blob/master/scripts/logtrimmer/logtrimmer.sh
Github Open Source
Open Source
BSD-3-Clause
2,020
pzs-ng
mvangoor
Shell
Code
94
275
#!/bin/bash # config # ########## # Where do I find your logs? logdir=/glftpd/ftp-data/logs # Enter here the names of the logs you wish trimmed. # The format is: <logname>:<# of lines to keep> logfiles="error.log:500 glftpd.log:1000 login.log:100 request.log:100 xferlog:1000" today="`date +"%a %b %d %H:%M:%S %Y"`" ...
48,454
https://github.com/geek/vidi-dashboard/blob/master/server/vidi.js
Github Open Source
Open Source
MIT
2,016
vidi-dashboard
geek
JavaScript
Code
252
709
'use strict' var Path = require('path') var Boom = require('boom') var Package = require('../package.json') var ClientRoutes = require('./routes/client') var UserRoutes = require('./routes/user') module.exports = function (server, options, next) { // Set our realitive path (for our routes) var relativePath = Pat...
31,968
https://github.com/zlikun/zlikun-algorithm-python/blob/master/sort/shell/ShellSort2.py
Github Open Source
Open Source
Apache-2.0
null
zlikun-algorithm-python
zlikun
Python
Code
128
400
#!/usr/bin/env python # -- coding: utf-8 -- """ @AUTHOR : zlikun <zlikun-dev@hotmail.com> @DATE : 2019/03/12 19:23:03 @DESC : 希尔排序,就换种写法而已 """ numbers = [8, 231, 244, 32, 221, 248, 8, 153, 142, 235] def shell_sort(lst: "list"): for gap in gap_generator(len(lst)): for i in range(gap, len(lst), gap): ...
13,397
https://github.com/mdclyburn/tock/blob/master/chips/rp2040/src/pio.rs
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT-0, MIT
null
tock
mdclyburn
Rust
Code
2,032
6,933
//! Programmable I/O peripheral. use core::cell::Cell; use core::default::Default; use kernel::errorcode::ErrorCode; use kernel::utilities::cells::OptionalCell; use kernel::utilities::registers::interfaces::{ ReadWriteable, Writeable }; use kernel::utilities::registers::{ register_bitfields, register_...
46,631
https://github.com/dreamonegit/payonehub/blob/master/app/Http/Controllers/AdminController.php
Github Open Source
Open Source
MIT
null
payonehub
dreamonegit
PHP
Code
172
710
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Intervention\Image\ImageManagerStatic as Image; use Storage; use Auth, Validator; use App\User; use DB; class AdminController extends Controller { public function __construct() { $this->user = new User(); } public function...
46,022
https://github.com/reakain/ClimberSpider/blob/master/ClimberSpider/Assets/Scripts/UI/QuitHandler.cs
Github Open Source
Open Source
MIT
null
ClimberSpider
reakain
C#
Code
243
800
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace UIControls { public class QuitHandler : MonoBehaviour { public CanvasGroup uiCanvasGroup; public CanvasGroup confirmQuitCanvasGroup; public CanvasGroup splashCanvasGroup; bool splashMenuV...
4,204
https://github.com/zuoxiaobai/zuo-statistics/blob/master/peach-fe/src/components/LeftMenu.vue
Github Open Source
Open Source
MIT
2,022
zuo-statistics
zuoxiaobai
Vue
Code
308
1,224
<template> <div class="app-left" :class="{ 'expand-menu': !menuCollapse }"> <div class="app-left-top"> <div class="alt-left"> <img class="cursor-pointer" src="@/assets/peach.png" :title="title" @click="gotoHome" /> <h1>{{ title }}</h1> </...
31,297
https://github.com/cjango/mall-order/blob/master/src/Order/Models/OrderLog.php
Github Open Source
Open Source
MIT
null
mall-order
cjango
PHP
Code
106
381
<?php namespace Jason\Order\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\MorphTo; class OrderLog extends Model { const UPDATED_AT = null; protected $guarded = []; /** * Notes: 设置用户 * @Author: ...
34,022
https://github.com/joelong01/Catan/blob/master/MainPage/Settlements and Roads/SettlementCtrl.xaml.cs
Github Open Source
Open Source
MIT
null
Catan
joelong01
C#
Code
111
375
using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; // The User Control item template is documented at http://go.microsoft.com/fwlink/?LinkId=234236 namespace Catan10 { public sealed partial class SettlementCtrl : UserControl { public SettlementCtrl() { this.I...
39,171
https://github.com/juicycleff/node-eventstore-client/blob/master/src/systemData/inspectionResult.js
Github Open Source
Open Source
MIT
2,020
node-eventstore-client
juicycleff
JavaScript
Code
26
83
function InspectionResult(decision, description, tcpEndPoint, secureTcpEndPoint) { this.decision = decision; this.description = description; this.tcpEndPoint = tcpEndPoint || null; this.secureTcpEndPoint = secureTcpEndPoint || null; } module.exports = InspectionResult;
37,031
https://github.com/qch-china/my-php7/blob/master/my_test/example.php
Github Open Source
Open Source
PHP-3.01
null
my-php7
qch-china
PHP
Code
4
12
<?php echo "hello world\n";
47,504
https://github.com/daniel-007/molly_wallet/blob/master/frontend/src/pages/Login/KeyStoreMigrate.vue
Github Open Source
Open Source
MIT
2,020
molly_wallet
daniel-007
Vue
Code
542
2,225
<template> <div class="container"> <div class="row"> <div class="col-12"> <form ref="textareaform" @submit.prevent="form" class="container"> <div class="row"> <div class="col mx-auto login-box"> <div class="input-box"> <div> <labe...
47,562
https://github.com/JkzsJk/Sample-DotNet/blob/master/samples/aspnet/WebApi/Todo/Todo.WindowsStore/AppSettings.cs
Github Open Source
Open Source
Apache-2.0
2,022
Sample-DotNet
JkzsJk
C#
Code
136
492
using Account.Client; using System.Collections.Generic; using System.Linq; using Windows.Security.Credentials; using Windows.Storage; namespace Todo.WindowsStore { public class AppSettings : IAccessTokenStore { const string AccessTokenKey = "TodoAccessToken"; const string TodoResource = "Todo"...
50,535
https://github.com/DataBiosphere/jade-data-repo/blob/master/datarepo-clienttests/src/main/java/scripts/testscripts/BillingProfileOwnerHandoffTest.java
Github Open Source
Open Source
BSD-3-Clause
2,022
jade-data-repo
DataBiosphere
Java
Code
192
670
package scripts.testscripts; import bio.terra.datarepo.model.BillingProfileModel; import java.util.List; import java.util.UUID; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import runner.config.TestUserSpecification; import scripts.testscripts.baseclasses.BillingProfileUsers; import scripts.utils.tdrwrappe...
9,807
https://github.com/thomashanahan/app-nestjs/blob/master/src/gamingConsoles/dto/findManyGamingConsole.dto.ts
Github Open Source
Open Source
MIT
null
app-nestjs
thomashanahan
TypeScript
Code
80
225
import { ValidateNested, IsOptional } from 'class-validator'; import { Type } from 'class-transformer'; import { ApiModelProperty } from '@nestjs/swagger'; import { QueryFilterDto } from '../../shared/dto/queryFilter.dto'; import { FindGamingConsoleDto } from './findGamingConsole.dto'; export class FindManyGamingConso...
22,813