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/YJBeetle/QtAndroidAPI/blob/master/android-32/android/util/MutableLong.hpp
Github Open Source
Open Source
GPL-3.0-only
2,023
QtAndroidAPI
YJBeetle
C++
Code
46
170
#pragma once #include "./MutableLong.def.hpp" namespace android::util { // Fields inline jlong MutableLong::value() { return getField<jlong>( "value" ); } // Constructors inline MutableLong::MutableLong(jlong arg0) : JObject( "android.util.MutableLong", "(J)V", arg0 ) {} // Methods } //...
2,571
https://github.com/mpbarnwell/lightstep-tracer-cpp/blob/master/src/recorder/stream_recorder/span_stream.cpp
Github Open Source
Open Source
MIT
2,022
lightstep-tracer-cpp
mpbarnwell
C++
Code
242
870
#include "recorder/stream_recorder/span_stream.h" namespace lightstep { //-------------------------------------------------------------------------------------------------- // constructor //-------------------------------------------------------------------------------------------------- SpanStream::SpanStream(Circula...
46,082
https://github.com/WeiningLi/imageEditor/blob/master/rotate.h
Github Open Source
Open Source
MIT
null
imageEditor
WeiningLi
C
Code
20
69
#ifndef ROTATE_H #define ROTATE_H #include "decorator.h" class Rotate: public Decorator { public: Rotate(Image *img); void render(PPM &ppm) override; }; #endif
2,293
https://github.com/stanobi/Hymns/blob/master/app/src/main/java/stanlee/project/com/efikhymns/dataTransaction/HymnDatabase.java
Github Open Source
Open Source
Apache-2.0
2,016
Hymns
stanobi
Java
Code
21
74
package stanlee.project.com.efikhymns.dataTransaction; import com.orm.SugarApp; /** * Created by Seamfixer on 6/27/2016. */ public class HymnDatabase extends SugarApp { HymnDatabase(){ } }
19,376
https://github.com/EiichiroIto/Stelo/blob/master/Stelost.package/SBytecodeGeneratorTest.class/instance/testPatchAtXY.st
Github Open Source
Open Source
MIT
null
Stelo
EiichiroIto
null
Spoken
65
154
tests-patch ops testPatchAtXY | w b t | w := self newWorld. w createPatch: 3. b := SBytecodeGenerator new. b patchAtX: 0 y: 0. t := SThread sworld: w. t codes: b code. self assert: (t evaluate: 1) equals: 5. b := SBytecodeGenerator new. b patchAtX: -1 y: 1. t := SThread sworld: w. t codes: b code. self a...
23,375
https://github.com/dzeromsk/zuul2/blob/master/debian/patches/0020-Remove-p-from-info-refs-call.patch
Github Open Source
Open Source
Apache-2.0
null
zuul2
dzeromsk
null
Spoken
101
356
From: Paladox <thomasmulhall410@yahoo.com> Date: Tue, 19 Feb 2019 21:34:32 +0000 Subject: Remove /p/ from /info/refs call In gerrit 2.16, PolyGerrit was made the default ui, but because of this /p/ stopped working. Upstream support calling /info/refs without the /p/ prefix (as /p/ is optional) Bug: T214807 Change-Id:...
6,984
https://github.com/HuyaneMatsu/hata/blob/master/hata/discord/emoji/emoji/tests/test__create_partial_emoji_data.py
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer
2,023
hata
HuyaneMatsu
Python
Code
54
199
import vampytest from ..emoji import Emoji from ..utils import create_partial_emoji_data def test__create_partial_emoji_data(): """ Tests whether ``create_partial_emoji_data`` works as intended. """ emoji_id = 202301010078 name = 'darling' animated = True emoji = Emoji.precreate( ...
16,897
https://github.com/Marcel-Jansen/open-smart-grid-platform/blob/master/integration-tests/cucumber-tests-platform-publiclighting/src/test/java/org/opensmartgridplatform/cucumber/platform/publiclighting/glue/steps/mocks/OslpDeviceSteps.java
Github Open Source
Open Source
Apache-2.0
2,019
open-smart-grid-platform
Marcel-Jansen
Java
Code
3,964
16,014
/** * Copyright 2016 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.cuc...
46,494
https://github.com/JeremyKuhne/terrafx.interop.windows/blob/master/sources/Interop/Windows/WinRT/um/dragdropinterop/IID.cs
Github Open Source
Open Source
MIT
null
terrafx.interop.windows
JeremyKuhne
C#
Code
102
308
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/dragdropinterop.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System...
31,150
https://github.com/trustbloc/fabric-mod/blob/master/core/ledger/kvledger/txmgmt/statedb/statecouchdb/statecouchdb_ext.go
Github Open Source
Open Source
Apache-2.0
2,021
fabric-mod
trustbloc
Go
Code
917
2,795
/* Copyright SecureKey Technologies Inc. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ package statecouchdb import ( "encoding/base64" "strings" "github.com/golang/protobuf/proto" "github.com/hyperledger/fabric-protos-go/ledger/rwset/kvrwset" "github.com/pkg/errors" "github.com/hyperledger/fabr...
10,491
https://github.com/neutronemu/1984bbs/blob/master/extract.py
Github Open Source
Open Source
MIT
2,022
1984bbs
neutronemu
Python
Code
297
1,493
import os import html2text # import jieba.analyse h = html2text.HTML2Text() h.ignore_links = True h.ignore_emphasis = True def extract(input_folder, middle_folder, output_folder, category): path_r = os.path.abspath(input_folder) path_s = os.path.abspath(middle_folder) path_n = os.path.abspath(output_folde...
23,264
https://github.com/akinfermo/elcarro-oracle-operator/blob/master/oracle/controllers/backupcontroller/backup_controller_unit_test.go
Github Open Source
Open Source
Apache-2.0
null
elcarro-oracle-operator
akinfermo
Go
Code
1,426
7,031
package backupcontroller import ( "context" "fmt" "testing" "time" commonv1alpha1 "github.com/GoogleCloudPlatform/elcarro-oracle-operator/common/api/v1alpha1" "github.com/GoogleCloudPlatform/elcarro-oracle-operator/oracle/api/v1alpha1" "github.com/GoogleCloudPlatform/elcarro-oracle-operator/oracle/controllers/...
28,600
https://github.com/harunpehlivan/FieldDB/blob/master/angular_client/modules/core/test/spec/filters/fielddb-short-date.js
Github Open Source
Open Source
Apache-2.0
null
FieldDB
harunpehlivan
JavaScript
Code
120
475
"use strict"; describe("Filter: fielddbShortDate", function() { // load the filter"s module beforeEach(module("fielddbAngularApp")); var expectedDate = new Date("2014-07-14T14:39:10.916Z"); var expectedFormattedDate = expectedDate.toLocaleDateString(); // initialize a new instance of the filter before each...
32,672
https://github.com/johnbonda/assets-super-dapp/blob/master/model/recharge.js
Github Open Source
Open Source
MIT
2,019
assets-super-dapp
johnbonda
JavaScript
Code
59
190
module.exports = { name: 'recharges', fields: [ { name: 'transactionId', type: 'String', length: 255, primary_key: true }, { name: 'dappid', type: 'String', length: 255 }, { name: 'address', type: 'String', ...
45,227
https://github.com/jluttine/haskpy/blob/master/haskpy/tests/test_utils.py
Github Open Source
Open Source
MIT
2,022
haskpy
jluttine
Python
Code
404
1,214
import pytest from haskpy import utils from haskpy.internal import ( class_property, class_function, abstract_property, abstract_function, abstract_class_property, abstract_class_function, ) def test_class_property(): class A(): @class_property def foo(cls): ...
39,492
https://github.com/bramanian/cvs/blob/master/app/models/Notification.php
Github Open Source
Open Source
MIT
2,015
cvs
bramanian
PHP
Code
13
31
<?php class Notification extends \Eloquent { protected $fillable = []; protected $table="notification"; }
11,511
https://github.com/google/private-join-and-compute/blob/master/private_join_and_compute/py/ciphers/ec_cipher_test.py
Github Open Source
Open Source
Apache-2.0
2,023
private-join-and-compute
google
Python
Code
231
1,079
# Copyright 2019 Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
24,732
https://github.com/maximaxcast/wa-toolkit-android/blob/master/library/src/com/windowsazure/samples/internal/mock/MockTableEntity.java
Github Open Source
Open Source
Apache-2.0
2,011
wa-toolkit-android
maximaxcast
Java
Code
28
90
package com.windowsazure.samples.internal.mock; import java.util.Collection; import java.util.Date; import com.windowsazure.samples.Property; public class MockTableEntity { public String authorName; public String id; public Collection<Property<?>> properties; public String title; public Date updated; }
5,809
https://github.com/mulanbay-face/mulanbay-face-server/blob/master/mulanbay-business/src/main/java/cn/mulanbay/business/enums/FunctionType.java
Github Open Source
Open Source
MIT
2,021
mulanbay-face-server
mulanbay-face
Java
Code
81
242
package cn.mulanbay.business.enums; /** * 功能操作类型 * * @author fenghong * @create 2017-07-10 21:44 */ public enum FunctionType { CREATE(0, "新增"), EDIT(1, "修改"), DELETE(2, "删除"), SEARCH(3, "查询"), STAT(4, "统计"), OTHER(5, "其他"); private int value; private String name; FunctionType(int value, String...
3,162
https://github.com/girish17/csw-1/blob/master/csw-network-utils/src/main/scala/csw/network/utils/internal/BlockingUtils.scala
Github Open Source
Open Source
Apache-2.0
2,019
csw-1
girish17
Scala
Code
94
204
package csw.network.utils.internal import scala.annotation.tailrec import scala.concurrent.duration.{Duration, DurationDouble, DurationInt} /** * Allows the caller to wait for a predicate to fulfill in a given time duration. Every 100ms the predicate is tested for fulfillment. * If predicate evaluates or duration el...
45,875
https://github.com/awslabs/aws-data-api/blob/master/chalicelib/parameters.py
Github Open Source
Open Source
Apache-2.0
2,021
aws-data-api
awslabs
Python
Code
370
1,631
ACTION_CREATE = "create" ACTION_DELETE = "delete" ACTION_REMOVE_ATTRIBUTE = "attribute_delete" ACTION_RESTORE = "restore" ACTION_UPDATE = "update" ADD = 'ADD' ALLOW_RUNTIME_DELETE_MODE_CHANGE = "AllowRuntimeDeleteModeChange" APP = 'app' ARN = "arn" ARN_ACCOUNT = 'AccountNumber' ARN_ID = "ID" ARN_REGION = 'Region' ARN_T...
15,478
https://github.com/ValeDelga/CDIN_O2021/blob/master/Modulo3/Data/digits_ANN
Github Open Source
Open Source
MIT
2,021
CDIN_O2021
ValeDelga
Python
Code
150
564
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 6 09:27:56 2020 @author: deloga """ from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_score from sklearn.preprocessing import MinMaxScaler from sklearn import datasets from sklearn.neural_network im...
34,537
https://github.com/Eric-Arellano/rust/blob/master/src/test/ui/pattern/usefulness/guards.rs
Github Open Source
Open Source
ECL-2.0, Apache-2.0, MIT-0, MIT
2,022
rust
Eric-Arellano
Rust
Code
72
164
#![feature(exclusive_range_pattern)] #![deny(unreachable_patterns)] enum Q { R(Option<usize>) } pub fn main() { match Q::R(None) { Q::R(S) if S.is_some() => {} _ => {} } match 0u8 { //~ ERROR non-exhaustive patterns 0 .. 128 => {} 128 ..= 255 if true => {} } match...
338
https://github.com/CesarAVieira/ALP-C-Exercicios/blob/master/Unidade1/Exercicio1.c
Github Open Source
Open Source
MIT
null
ALP-C-Exercicios
CesarAVieira
C
Code
80
173
#include <stdio.h> int main () { //Exercicio 2 do livro /* Escreva um programa que leia o nome de uma pessoa e imprima a seguinte mensagem, na tela: "Bem-vindo(a) a disciplina de Algoritmos e Logica de Programacao II, "<nome>"; onde o campo <nome> deve ser substituido pelo nome informado pelo usuario. */ char nome[30...
750
https://github.com/appzio/action-bootstrap2/blob/master/Components/AppzioUiKit/Forms/uiKitHintedTextField.php
Github Open Source
Open Source
Apache-2.0
2,019
action-bootstrap2
appzio
PHP
Code
287
1,300
<?php namespace Bootstrap\Components\AppzioUiKit\Forms; use Bootstrap\Components\BootstrapComponent; trait uiKitHintedTextField { /** * @param $content string, no support for line feeds * @param array $styles 'margin', 'padding', 'orientation', 'background', 'alignment', 'radius', 'opacity', * 'or...
1,435
https://github.com/iceclown132/client289/blob/master/src/com/jagex/Class32.java
Github Open Source
Open Source
Apache-2.0
null
client289
iceclown132
Java
Code
380
1,350
package com.jagex; import sign.signlink; public class Class32 { public boolean aBoolean556; public byte aByte557; public static int anInt558; public static Class32 aClass32Array559[]; public int anInt560; public int anInt561; public int anInt562; public AnimationSequence aClass26_563; ...
8,636
https://github.com/afaghm/Adafruit_CircuitPython_AS7341/blob/master/examples/as7341_flicker_detection.py
Github Open Source
Open Source
MIT
2,020
Adafruit_CircuitPython_AS7341
afaghm
Python
Code
49
166
# SPDX-FileCopyrightText: 2020 Bryan Siepert, written for Adafruit Industries # SPDX-License-Identifier: MIT from time import sleep import board import busio from adafruit_as7341 import AS7341 i2c = busio.I2C(board.SCL, board.SDA) sensor = AS7341(i2c) sensor.flicker_detection_enabled = True while True: flicker_d...
11,383
https://github.com/rabidaudio/roe/blob/master/roe/src/main/java/audio/rabid/dev/roe/models/rails/RailsServer.java
Github Open Source
Open Source
MIT
null
roe
rabidaudio
Java
Code
733
2,044
package audio.rabid.dev.roe.models.rails; import android.support.annotation.Nullable; import com.j256.ormlite.table.DatabaseTable; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; ...
38,560
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-drs/source/model/SourceNetwork.cpp
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
276
1,730
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/drs/model/SourceNetwork.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace d...
1,590
https://github.com/ckae95/SIRIUS/blob/master/src/SDDK/fft3d.hpp
Github Open Source
Open Source
BSD-2-Clause
null
SIRIUS
ckae95
C++
Code
3,937
14,731
// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, are permitted provided that // the following conditions are met: // // 1. Redistributions of source code must retain the above copyright notice, ...
35,621
https://github.com/hanun2999/Altium-Schematic-Parser/blob/master/tests/altium_crap/Soft Designs/Communication/UART ComError Handling/shiftreg.Vhd
Github Open Source
Open Source
MIT
2,020
Altium-Schematic-Parser
hanun2999
VHDL
Code
207
543
-------------------------------------------------------------------------------- -- SubModule shiftreg -- Created 2010/02/17 12:24:48 -------------------------------------------------------------------------------- library IEEE; use IEEE.Std_Logic_1164.all; entity shiftreg is port ( PARIN : in std_...
44,834
https://github.com/13478168657/swoolelara/blob/master/app/Services/WebSocket/SimpleParser.php
Github Open Source
Open Source
MIT
2,022
swoolelara
13478168657
PHP
Code
128
311
<?php /** * Created by PhpStorm. * User: sunqiang * Date: 2019/10/30 * Time: 10:59 AM */ namespace App\Services\WebSocket; class SimpleParser extends Parser { /** * Strategy classes need to implement handle method. */ protected $strategies = []; /** * Encode output payload for websock...
48,820
https://github.com/zld126126/MyGolang/blob/master/dongo_game_server/src/web/service/manager_path.go
Github Open Source
Open Source
Apache-2.0
null
MyGolang
zld126126
Go
Code
360
1,075
package service import ( "dongo_game_server/src/database" "dongo_game_server/src/global_const" "dongo_game_server/src/model" "errors" ) type ManagerPathService struct { DB *database.DB } func (p *ManagerPathService) ChkExist(optionPath string) (bool, error) { if global_const.IsNormalPath(optionPath) { return...
32,421
https://github.com/MichaeLeroy/rosetta-code/blob/master/julia/completed/find_missing_perm.jl
Github Open Source
Open Source
MIT
null
rosetta-code
MichaeLeroy
Julia
Code
138
440
#! /usr/bin/julia # Rosetta Code, Find the missing permutation function find_missing_permutations{T<:String}(a::Array{T,1}) std = unique(sort(split(a[1], ""))) needsperm = trues(factorial(length(std))) for s in a b = split(s, "") p = map(x->findfirst(std, x), b) isperm(p) || throw(...
34,564
https://github.com/NREL/Radiance/blob/master/src/rt/m_alias.c
Github Open Source
Open Source
BSD-2-Clause
2,021
Radiance
NREL
C
Code
258
685
#ifndef lint static const char RCSid[] = "$Id: m_alias.c,v 2.11 2021/02/01 16:19:49 greg Exp $"; #endif /* * Handler for modifier alias */ #include "copyright.h" #include "ray.h" #include "otypes.h" #include "rtotypes.h" #include "otspecial.h" /* * If the alias has a single string argument, it's the * name of t...
28,596
https://github.com/LeandroTeodoroRJ/ExemplosMicrochipPIC/blob/master/MicrochipPicDetectorErroParidade/Receptor/main.c
Github Open Source
Open Source
MIT
2,021
ExemplosMicrochipPIC
LeandroTeodoroRJ
C
Code
642
2,496
//**************************************************************************** // PLACA RECEPTORA //**************************************************************************** //Compilador CCS PCWH Ver 4.104 #include <16F877.h> #include <string.h> #include <16f8x_registradores....
49,934
https://github.com/ManneDE/Week10-main/blob/master/Week10/Assets/Scripts/SimpleNavMeshController.cs
Github Open Source
Open Source
MIT
null
Week10-main
ManneDE
C#
Code
86
286
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; using UnityStandardAssets.Characters.ThirdPerson; public class SimpleNavMeshController : MonoBehaviour { [SerializeField] private NavMeshAgent _agent; [SerializeField] private Camera _camera; publ...
28,819
https://github.com/wincubate/kamstrup-cs/blob/master/2019-05-03 CS 7.x/01 - An Introduction to CS 7/Examples/13 - Ref Locals/Program.cs
Github Open Source
Open Source
MIT
2,022
kamstrup-cs
wincubate
C#
Code
39
108
using System; using static System.Console; namespace Wincubate.CS7.Slide13 { class Program { static void Main(string[] args) { // ... #region Simple example //int x = 42; //ref int y = ref x; //x = 87; //WriteLine(y); ...
9,329
https://github.com/KhaiNQ-K/fe-duantotnghiep/blob/master/src/utils/toastify.js
Github Open Source
Open Source
MIT
2,022
fe-duantotnghiep
KhaiNQ-K
JavaScript
Code
71
266
import { toast } from 'react-toastify'; const toastifyAlert = { success(data){ toast.success(data, { position: "bottom-right", autoClose: 5000, hideProgressBar: false, closeOnClick: true, pauseOnHover: true, draggable: true, ...
41,205
https://github.com/zzsoszz/MyPaper/blob/master/database/oracle/plsql-utils-v170/ora/xml_builder_pkg.pks
Github Open Source
Open Source
Apache-2.0
2,017
MyPaper
zzsoszz
SQL
Code
111
299
CREATE OR REPLACE package xml_builder_pkg as /* Purpose: Package handles building XML documents Remarks: Who Date Description ------ ---------- -------------------------------- MBR 16.08.2004 Created */ -- create new document in memory procedure new_document; ...
41,698
https://github.com/rkaraujo/rkablog-scala/blob/master/app/controllers/admin/AdminAuthenticationController.scala
Github Open Source
Open Source
Apache-2.0
null
rkablog-scala
rkaraujo
Scala
Code
120
454
package controllers.admin import java.util.UUID import javax.inject.{Inject, Singleton} import play.api.mvc._ import play.api.data._ import play.api.data.Forms._ import play.api.i18n.I18nSupport import play.api.i18n.MessagesApi import play.api.cache._ import scala.concurrent.duration._ import util.CheckUsersFile /**...
2,473
https://github.com/zhangbaitong/spacemacs.d/blob/master/layers/zhangbaitong-org/packages.el
Github Open Source
Open Source
BSD-2-Clause
null
spacemacs.d
zhangbaitong
null
Spoken
122
569
;;; packages.el --- %LAYER_NAME% layer packages file for Spacemacs. ;; ;; Copyright (c) 2012-2016 Sylvain Benner & Contributors ;; ;; Author: %USER_FULL_NAME% <%USER_MAIL_ADDRESS%> ;; URL: https://github.com/syl20bnr/spacemacs ;; ;; This file is not part of GNU Emacs. ;; ;;; License: GPLv3 ;;定义package依赖 (defconst zhan...
35,225
https://github.com/Stitch07/pieces/blob/master/src/lib/strategies/loaders/ILoader.ts
Github Open Source
Open Source
MIT
2,020
pieces
Stitch07
TypeScript
Code
108
226
import type { Piece } from '../../Piece'; import type { Store } from '../../Store'; import type { Ctor } from '../Shared'; /** * Represents an entry from [[ILoaderResult]]. */ export type ILoaderResultEntry<T extends Piece> = Ctor<ConstructorParameters<typeof Piece>, T>; /** * Represents the return data from [[ILo...
45,270
https://github.com/BlizD/Tasks/blob/master/src/cf/ChartsOfCharacteristicTypes/ДополнительныеРеквизитыИСведения/Ext/ManagerModule.bsl
Github Open Source
Open Source
Apache-2.0
2,023
Tasks
BlizD
null
Spoken
1,613
12,039
/////////////////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2019, ООО 1С-Софт // Все права защищены. Эта программа и сопроводительные материалы предоставляются // в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0) // Текст лицензи...
31,118
https://github.com/EmpireMUD/EmpireMUD-2.0-Beta/blob/master/src/db.player.c
Github Open Source
Open Source
DOC, Unlicense
2,021
EmpireMUD-2.0-Beta
EmpireMUD
C
Code
14,217
48,980
/* ************************************************************************ * File: db.player.c EmpireMUD 2.0b5 * * Usage: Database functions related to players and the player table * * * * EmpireMUD cod...
8,473
https://github.com/mveselov/CodeWars/blob/master/tests/kyu_7_tests/test_power_of_two.py
Github Open Source
Open Source
MIT
2,017
CodeWars
mveselov
Python
Code
44
373
import unittest from katas.kyu_7.power_of_two import power_of_two class PowerOfTwoTestCase(unittest.TestCase): def test_true(self): self.assertTrue(power_of_two(1)) def test_true_2(self): self.assertTrue(power_of_two(2)) def test_true_3(self): self.assertTrue(power_of_two(4096))...
13,648
https://github.com/XiaoSuiFeng/JT808/blob/master/src/JT808.Protocol/MessageBody/JT808_0x8700.cs
Github Open Source
Open Source
MIT
2,020
JT808
XiaoSuiFeng
C#
Code
92
321
using JT808.Protocol.Formatters; using JT808.Protocol.Interfaces; using JT808.Protocol.MessagePack; using System; using System.Collections.Generic; using System.Text; using System.Text.Json; namespace JT808.Protocol.MessageBody { public class JT808_0x8700 : JT808Bodies, IJT808MessagePackFormatter<JT808_0x8700>, I...
7,774
https://github.com/platinummonkey/slack-rs-api/blob/master/src/mod_types/calls/participants_types.rs
Github Open Source
Open Source
Apache-2.0
2,021
slack-rs-api
platinummonkey
Rust
Code
525
1,411
//============================================================================= // // WARNING: This file is AUTO-GENERATED // // Do not make changes directly to this file. // // If you would like to make a change to the library, please update the schema // definitions at https://github.com/slack-rs/s...
43,675
https://github.com/pH14/police/blob/master/test/dummy/app/controllers/high_scores_controller.rb
Github Open Source
Open Source
MIT
null
police
pH14
Ruby
Code
143
448
class HighScoresController < ApplicationController before_action :set_high_score, only: [:show, :edit, :update, :destroy] authenticates_using_session # GET /high_scores def index puts "Current user #{@current_user}" puts "Current user attempt 2 #{Authpwh::current_user}" @high_scores = HighScore.all...
34,793
https://github.com/zhangkn/iOS14Header/blob/master/usr/libexec/containermanagerd/MCMContainerClassStagingPath.h
Github Open Source
Open Source
MIT
2,020
iOS14Header
zhangkn
C
Code
58
234
// // Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20). // // Copyright (C) 1997-2019 Steve Nygard. // #import "MCMContainerClassPath.h" @interface MCMContainerClassStagingPath : MCMContainerClassPath { } + (id)_stagingComponent; // IMP=0x000000010...
13,227
https://github.com/desiyonan/OpenJDK8/blob/master/test/jdk/sun/security/tools/keytool/autotest.sh
Github Open Source
Open Source
MIT
2,018
OpenJDK8
desiyonan
Shell
Code
481
1,386
# # Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Softwar...
34,905
https://github.com/teustice/went-to-bali-mwahaha/blob/master/db/seeds.rb
Github Open Source
Open Source
MIT
2,017
went-to-bali-mwahaha
teustice
Ruby
Code
65
590
class Seed def self.begin seed = Seed.new seed.generate_products seed.generate_admin end def generate_products Product.destroy_all User.destroy_all product_images = [ "https://codepo8.github.io/canvas-images-and-pixels/img/horse.png", "https://www.dhresource.com/0x0s/f2-albu-...
34,291
https://github.com/SeanCaruthers/Small-Shell/blob/master/src/paths.c
Github Open Source
Open Source
MIT
2,021
Small-Shell
SeanCaruthers
C
Code
525
1,106
/* - - a file for path functions - */ #include "libraries.h" #define BUFFSIZE 2048 // a function for merging a path prefix and relative suffix char* mergePaths(char* prefix, char* suffix) { // slash for use in checks char* slash = "/"; // allocate a char* that will point to a string prefix/suffix directory fil...
7,417
https://github.com/andreylipattsev/almanac.httparchive.org/blob/master/sql/2021/markup/adoption.sql
Github Open Source
Open Source
Apache-2.0
2,020
almanac.httparchive.org
andreylipattsev
SQL
Code
433
1,337
#standardSQL # pages almanac metrics grouped by device # real run estimated at $4.08 and took 48 seconds # to speed things up there is only one js function per custom metric property. It returns a STRUCT with all the data needed # current test gathers 3 bits of incormation from the custom petric properties # I tried ...
5,549
https://github.com/sukhpalsingh/ebiller/blob/master/app/BillCategory.php
Github Open Source
Open Source
Apache-2.0
null
ebiller
sukhpalsingh
PHP
Code
67
164
<?php namespace App; use Illuminate\Database\Eloquent\Model; class BillCategory extends Model { /** * The table associated with the model. * * @var string */ protected $table = 'bill_categories'; /** * The attributes that are mass assignable. * * @var array */ ...
7,556
https://github.com/fathan21/testDynEd/blob/master/resources/sass/app.scss
Github Open Source
Open Source
MIT
null
testDynEd
fathan21
SCSS
Code
41
182
// Fonts @import url('https://fonts.googleapis.com/css?family=Nunito'); // Variables @import 'variables'; // Bootstrap // @import '~bootstrap/scss/bootstrap'; // @import 'bootstrap.min.css'; @import 'offcanvas.min.css'; @import 'owl.carousel.css'; @import 'style.css'; .carousel-inner>.item>a>img, .carousel-inner>....
43,128
https://github.com/Boyquotes/Body-Builder/blob/master/.import/brain.png-271941cc429380311663f60bc6c1f0b7.md5
Github Open Source
Open Source
MIT
2,021
Body-Builder
Boyquotes
null
Spoken
2
53
source_md5="9b977ac74b7bcf03583a4ee5a491bd44" dest_md5="af1f06bf334990bd39e2c3463ade456c"
5,617
https://github.com/cloudsmith-io/cloudsmith-examples/blob/master/examples/rpm-cli/prepare.sh
Github Open Source
Open Source
Apache-2.0
2,021
cloudsmith-examples
cloudsmith-io
Shell
Code
39
79
#!/bin/bash set -eou pipefail # install Python, pip and rpm sudo apt-get update sudo apt-get install -y python python-pip rpm # install the cloudsmith CLI pip install --user cloudsmith-cli # install fpm for building RPM packages gem install fpm
26,822
https://github.com/sstenz/mint-vernetzt/blob/master/libs/react-components/src/lib/EventFeed/index.stories.tsx
Github Open Source
Open Source
MIT
2,021
mint-vernetzt
sstenz
TSX
Code
97
298
import { Meta, Story } from "@storybook/react"; import faker from "faker"; import { EventFeed, EventFeedProps } from "./EventFeed"; import { EventFeedItem, EventFeedItemProps } from "./EventFeedItem"; import { getEventFeedItemProps } from "./utils"; export default { component: EventFeed, title: "Components/EventFe...
7,118
https://github.com/yangshengchaoios/FootPrints/blob/master/Footprints/O2O/Managers/UserManager.h
Github Open Source
Open Source
MIT
null
FootPrints
yangshengchaoios
C
Code
49
179
// // UserManager.h // Footprints // // Created by tt on 14-10-15. // Copyright (c) 2014年 JiaJun. All rights reserved. // #import <Foundation/Foundation.h> @class JJMemberModel; @interface UserManager : NSObject @property (nonatomic,strong) JJMemberModel *loginUser; + (BOOL)isLogin; + (id)sharedManager; + (voi...
35,632
https://github.com/Xeis-Studio/Thragon/blob/master/Thragon/Assets/Prefabs/Food/Objects/tortilla2.obj
Github Open Source
Open Source
Apache-2.0
2,014
Thragon
Xeis-Studio
Wavefront Object
Code
815
3,412
# This file uses centimeters as units for non-parametric coordinates. mtllib tortilla2.mtl v 225.636642 -3.071303 -13.606096 v 172.602966 -3.071303 -66.639910 v 100.157425 -3.071303 -86.051531 v 27.712042 -3.071303 -66.639910 v -25.321716 -3.071303 -13.606096 v -44.733421 -3.071303 58.839338 v -25.321716 -3.071303 131...
42,593
https://github.com/rhamlin/sperf/blob/master/tests/test_schema.py
Github Open Source
Open Source
Apache-2.0
2,021
sperf
rhamlin
Python
Code
338
794
# Copyright 2020 DataStax, 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,...
47,378
https://github.com/Lineeeeee/js-shopping/blob/master/data/product/list.php
Github Open Source
Open Source
MIT
2,018
js-shopping
Lineeeeee
PHP
Code
153
663
<?php /** * 分页显示所有的商品 */ header('Content-Type: application/json;charset=UTF-8'); require_once('../init.php'); @$kw = $_REQUEST['kw']; @$pno = $_REQUEST['pno']; if(!$pno){ $pno = 1; }else { $pno = intval($pno); } $output = [ 'recordCount' => 0, //满足条件的总记录数 'pageSize' => 9, //每页大小,即每页最多可以显示的记录数量 'p...
34,036
https://github.com/mostly-magic/2019-21-day-code-challenge/blob/master/day-2/simple.js
Github Open Source
Open Source
MIT
null
2019-21-day-code-challenge
mostly-magic
JavaScript
Code
51
104
const interviewAnswer = (topic) => { if (topic === "arts funding") { return "We'll have to get creative!"; } if (topic === "economy") { return "Time is money."; } if (topic === "transportation") { return "It's going to be a long road, so we better get moving."; } retu...
29,144
https://github.com/adish13/IITB-Database-Systems/blob/master/Assignment 6B/submission/160050064_160050090/src/AllConversations.java
Github Open Source
Open Source
MIT
2,020
IITB-Database-Systems
adish13
Java
Code
255
756
import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; /** * Se...
18,108
https://github.com/janesunflower/gddw_track3/blob/master/code/train.sh
Github Open Source
Open Source
Apache-2.0
2,021
gddw_track3
janesunflower
Shell
Code
15
76
#!/usr/bin/env bash # create train json python data_process/2json_train.py CUDA_VISIBLE_DEVICES=0 PORT=1111 ./tools/dist_train.sh configs/detectoRS_r101.py 1 python data_process/model_dist.py
1,152
https://github.com/yuxal/nivo/blob/master/packages/waffle/src/enhance.js
Github Open Source
Open Source
MIT
2,021
nivo
yuxal
JavaScript
Code
307
924
/* * This file is part of the nivo project. * * Copyright 2016-present, Raphaël Benitte. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import compose from 'recompose/compose' import defaultProps from 'recompose/defaultProps' impo...
46,205
https://github.com/ovidiubute/leetcode-js/blob/master/solutions/0131.palindrome-partitioning.js
Github Open Source
Open Source
Unlicense
2,022
leetcode-js
ovidiubute
JavaScript
Code
97
244
/** * @param {string} s * @return {string[][]} */ var partition = function (s) { const results = []; dfs(s, 0, [], results); return results; }; var dfs = function (s, start, set, results) { if (start >= s.length) { results.push(Array.from(set)); return; } for (let end = start; end < s.length; e...
48,807
https://github.com/huxoll/TopStackCore/blob/master/src/com/msi/tough/model/AvailabilityZoneBean.java
Github Open Source
Open Source
Apache-2.0
2,013
TopStackCore
huxoll
Java
Code
137
468
package com.msi.tough.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; /** * RdsAvailabilityZone generated by hbm2java */ @Entity @Table(name = "availability_zone") public class AvailabilityZoneBean { @Id @Column(name = "availab...
36,893
https://github.com/WorkplaceX/Framework/blob/master/Framework/UtilDoc.cs
Github Open Source
Open Source
MIT
2,022
Framework
WorkplaceX
C#
Code
10,910
32,535
namespace Framework.Doc { using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization; using System.Text; using System.Text.Json; using System.Text.Json.Serialization; /// <summary> /// Component serialization, deserial...
6,615
https://github.com/squareben1/algorithm_timer/blob/master/tests/test_timer.py
Github Open Source
Open Source
MIT
2,020
algorithm_timer
squareben1
Python
Code
62
215
import pytest # from time import sleep import time from algorithm_timer.timer import AlgoTimer subject = AlgoTimer() input_arr = [1, 2, 3] def return_after_point_one_sec(arr): time.sleep(0.1) return arr @pytest.mark.skip("Slow test") def test_basic_timer(): output = subject.basic_timer(return_after_po...
40,654
https://github.com/carlkid1499/ECE-240/blob/master/Lab_8/Lab_8_crazy_counter_mealy_machine.sch
Github Open Source
Open Source
MIT
null
ECE-240
carlkid1499
Eagle
Code
2,328
5,435
VERSION 6 BEGIN SCHEMATIC BEGIN ATTR DeviceFamilyName "spartan3e" DELETE all:0 EDITNAME all:0 EDITTRAIT all:0 END ATTR BEGIN NETLIST SIGNAL XLXN_23 SIGNAL XLXN_60 SIGNAL XLXN_85 SIGNAL XLXN_59 SIGNAL XLXN_61 SIGNAL XLXN_101 SIGN...
11,996
https://github.com/mhbeals/sap_reprints/blob/master/Outputs/titles/pagepercentage/Examiner/1811_12.tsv
Github Open Source
Open Source
CC-BY-4.0
2,017
sap_reprints
mhbeals
TSV
Code
12
114
1811.12.08_Examiner_0006 0.109103 1811.12.22_Examiner_0005 0.174626 1811.12.22_Examiner_0006 0.819771 1811.12.22_Examiner_0014 0.104942 1811.12.22_Examiner_0016 0.147727 1811.12.29_Examiner_0012 0.102610
34,113
https://github.com/verasls/impactr/blob/master/tests/testthat/test-predict.R
Github Open Source
Open Source
MIT
2,022
impactr
verasls
R
Code
312
1,182
test_that("error handling works", { data <- read_acc(impactr_example("hip-raw.csv")) data <- specify_parameters(data, acc_placement = "hip", subj_body_mass = 78) data <- find_peaks(data, vector = "vertical") expect_error( predict_loading( data, outcome = "force", vector = "resultant", model = "walkin...
7,825
https://github.com/PuddletownDesign/puddletown-javascript-snippets/blob/master/snippets/toFixed.cson
Github Open Source
Open Source
MIT
2,020
puddletown-javascript-snippets
PuddletownDesign
CoffeeScript
Code
6
34
".source.js": 'toFixed()': 'prefix': 'tofixed' 'body': 'toFixed($1)'
16,873
https://github.com/Team303/Java-Robot-Project-2022/blob/master/diesel/src/main/java/com/team303/diesel/autonomous/actions/serializable/Jsonable.java
Github Open Source
Open Source
BSD-3-Clause
null
Java-Robot-Project-2022
Team303
Java
Code
11
49
package com.team303.diesel.autonomous.actions.serializable; import com.google.gson.JsonElement; public interface Jsonable { JsonElement serialize(); }
36,836
https://github.com/horsewan/exchange_framework/blob/master/exchange-core/src/main/java/com/zwan/bitrade/dao/ExchangeOrderRepository.java
Github Open Source
Open Source
MIT
null
exchange_framework
horsewan
Java
Code
205
829
package com.zwan.bitrade.dao; import com.zwan.bitrade.entity.ExchangeOrder; import com.zwan.bitrade.entity.ExchangeOrderStatus; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying...
28,275
https://github.com/paweldolecinski/leetcode/blob/master/src/main/java/pl/dolecinski/leetcode/FindMinimumRotatedSortedArray.java
Github Open Source
Open Source
MIT
null
leetcode
paweldolecinski
Java
Code
128
430
package pl.dolecinski.leetcode; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; import java.util.stream.Stream; import static org.junit.jupiter.api.Assertions.assertEquals; /** * https://leetcode.com/probl...
32,210
https://github.com/lsst-camera-dh/eTraveler-backend/blob/master/dbMaint/migrate/revert0_14_1-0_14_0.sql
Github Open Source
Open Source
BSD-3-Clause-LBNL
null
eTraveler-backend
lsst-camera-dh
SQL
Code
213
487
alter table FloatResultHarnessed modify column value float after name; alter table FloatResultManual modify column value float after name; alter table Hardware drop remarks; alter table Process add hardwareTypeId int DEFAULT NULL COMMENT 'deprecated field'; alter table Process add key fk40 (hardwareTypeId); alter tab...
46,140
https://github.com/crazyvalse/algorithms/blob/master/src/gof/02-装饰者/08.js
Github Open Source
Open Source
MIT
2,021
algorithms
crazyvalse
JavaScript
Code
83
232
class Foo { fib(n) { const f = Array(n + 1).fill(0) f[0] = 0 f[1] = 1 f[2] = 2 for (let i = 3; i <= n; i++) { f[i] = f[i - 1] + f[i - 2] } return f[n] } } const a = new Foo() console.info(a.fib(40)) function upgrade(target, FnName) { const proto = target.prototype const oldF...
12,033
https://github.com/coord-e/ccc/blob/master/src/ops.h
Github Open Source
Open Source
MIT
2,021
ccc
coord-e
C
Code
136
666
#ifndef CCC_OPS_H #define CCC_OPS_H #include <stdbool.h> #include <stdio.h> typedef enum { OP_ARITH, OP_COMPARE, } BinaryOpKind; typedef enum { BINOP_ADD, BINOP_SUB, BINOP_MUL, BINOP_DIV, BINOP_REM, BINOP_EQ, BINOP_NE, BINOP_GT, BINOP_GE, BINOP_LT, BINOP_LE, BINOP_OR, BINOP_XOR, BINOP...
44,330
https://github.com/ArcadiusGFN/SourceEngine2007/blob/master/src_main/gameui/LoadCommentaryDialog.cpp
Github Open Source
Open Source
bzip2-1.0.6
2,021
SourceEngine2007
ArcadiusGFN
C++
Code
880
3,582
// Copyright © 1996-2018, Valve Corporation, All rights reserved. #include "LoadCommentaryDialog.h" #include <cstdio> #include <cstdlib> #include "BasePanel.h" #include "EngineInterface.h" #include "FileSystem.h" #include "GameUI_Interface.h" #include "MouseMessageForwardingPanel.h" #include "TGAImagePanel.h" #includ...
26,149
https://github.com/melanz/chrono/blob/master/src/unit_FEM/ChNodeFEMxyz.h
Github Open Source
Open Source
BSD-3-Clause
2,013
chrono
melanz
C++
Code
351
1,040
// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2013 Project Chrono // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono.txt. // #ifnd...
15,990
https://github.com/anu2kool/Competitive-Programming/blob/master/Codeforces/beautifulregionalcontest.py
Github Open Source
Open Source
MIT
2,020
Competitive-Programming
anu2kool
Python
Code
111
273
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Dec 21 12:00:00 2019 @author: divyanshvinayak """ T = int(input()) for X in range(T): N = int(input()) P = list(map(int, input().split())) D = {} G = S = B = A = 0 for I in range(len(P)): if P[I] in D: D[P[I]]+=1...
42,060
https://github.com/TeaganBriggs/Cryptobot-1/blob/master/src/arbitrage/index.js
Github Open Source
Open Source
MIT
2,018
Cryptobot-1
TeaganBriggs
JavaScript
Code
651
1,948
const PromiseTool = require('promise-tool') const colors = require('colors') const Trade = require('trade') const ArbitragePosition = require('./position') class Arbitrage { constructor({ amount, exchanges, isLive, product }) { this.amount = amount this.exchanges = exchanges this.exchangesD...
40,438
https://github.com/workofart/smartfolio/blob/master/app_server/views/layout.jade
Github Open Source
Open Source
MIT
2,018
smartfolio
workofart
null
Spoken
31
263
doctype html html head title= title link(rel='stylesheet', href='/stylesheets/bootstrap.min.css') link(rel='stylesheet', href='/stylesheets/datatables.min.css') link(rel='stylesheet', href='/stylesheets/select2.min.css') link(rel="stylesheet", href="/stylesheets/font/NewsCycle-Regular.ttf") link(rel='style...
40,434
https://github.com/ivanjrju/frontend/blob/master/src/components/Logout/fortuneCookies.jsx
Github Open Source
Open Source
MIT
2,022
frontend
ivanjrju
null
Spoken
821
1,587
const fortuneCookies = [ "A vida trará coisas boas se tiveres paciência.", "Demonstre amor e alegria em todas as oportunidades e verás que a paz nasce dentro de você.", "Não compense na ira o que lhe falta na razão.", "Defeitos e virtudes são apenas dois lados da mesma moeda.", "A maior de todas as torres começa n...
27,223
https://github.com/DOAJ/doaj/blob/master/portality/static/widget/fixed_query.js
Github Open Source
Open Source
Apache-2.0
2,022
doaj
DOAJ
JavaScript
Code
219
775
"use strict"; let script = document.querySelector("script[src$='/static/widget/fixed_query.js']"); let parser = document.createElement('a'); parser.href = script.attributes.src.value; var doaj_url = parser.protocol + '//' + parser.host; (function(){ /******** Load jQuery if not present *********/ if (window.jQ...
17,354
https://github.com/MouafakMohamed/codeigniter_test/blob/master/application/views/Marque.php
Github Open Source
Open Source
MIT
2,021
codeigniter_test
MouafakMohamed
PHP
Code
673
3,098
<!DOCTYPE html> <html class="loading" lang="en" data-textdirection="ltr"> <!-- BEGIN: Head--> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=...
20,526
https://github.com/nsdumont/jDirichletMixtureModels/blob/master/man/dmm.BaseModel.Rd
Github Open Source
Open Source
MIT
2,018
jDirichletMixtureModels
nsdumont
R
Code
166
377
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dmm_model.R \name{dmm.BaseModel} \alias{dmm.BaseModel} \title{Create a model using bulit-in conjugate models} \usage{ model <- dmm.BaseModel(typename, params) } \arguments{ \item{typename}{A string. The name of the predefined conjugate prior ...
29,217
https://github.com/tonysulfaro/CSE-232/blob/master/Example Programs/18.x/18.4-template.cpp
Github Open Source
Open Source
MIT
2,018
CSE-232
tonysulfaro
C++
Code
83
248
#include<iostream> using std::cout; using std::endl; // let template deduce size, we don't have to say!! template<typename Type, size_t Size> long squares(const Type (&ary)[Size]){ Type result=0; cout << "sizeof array (template size):"<<sizeof(ary)<<endl; for(auto element : ary) result = result + (element * ...
32,606
https://github.com/daryailyushina/vue-template/blob/master/app/setup/plugins.js
Github Open Source
Open Source
MIT
2,018
vue-template
daryailyushina
JavaScript
Code
62
223
import Vue from 'vue'; import VueAxios from '@/setup/plugins/axios'; import VueBemCn from 'vue-bem-cn'; import Vuedals from 'vuedals'; // Polyfills and self executing import cssVars from 'css-vars-ponyfill'; import 'intersection-observer'; import 'picturefill'; import 'lazysizes'; import './lib/ls.attrchange'; // Lazy...
44,145
https://github.com/breezyx28/mall/blob/master/app/Http/Requests/ProductSizesRequest.php
Github Open Source
Open Source
MIT
2,021
mall
breezyx28
PHP
Code
173
565
<?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Contracts\Validation\Validator; use Illuminate\Http\Exceptions\HttpResponseException; class ProductSizesRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @r...
34,518
https://github.com/umeye/ump2p-ios-demo/blob/master/LocalPods/UMP2PAccount/Views/UMP2PRegisterView.h
Github Open Source
Open Source
MIT
2,019
ump2p-ios-demo
umeye
C
Code
45
166
// // UMP2PRegisterView.h // UMP2PAccount // // Created by fred on 2019/12/23. // #import <UIKit/UIKit.h> @interface UMP2PRegisterView : UIView<UMViewProtocol> @property (nonatomic, strong) UITextField *userIdTextField; @property (nonatomic, strong) UITextField *passwordTextField; @property (nonatomic, strong) UIT...
42,170
https://github.com/drobotik/http-status/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,023
http-status
drobotik
Ignore List
Code
5
31
/.idea .phpunit.cache .phpunit.result.cache .php-cs-fixer.cache /vendor
31,892
https://github.com/soundyogi/echojs/blob/master/ejs-llvm/structtype.cpp
Github Open Source
Open Source
MIT
2,016
echojs
soundyogi
C++
Code
188
1,017
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99 ft=cpp: */ #include "ejs-llvm.h" #include "ejs-function.h" #include "ejs-object.h" #include "ejs-array.h" #include "ejs-string.h" #include "type.h" namespace ejsllvm { typedef struct { /* object...
24,525
https://github.com/himanshu31shr/resume-template/blob/master/assets/__uncompiled/app/pages/Curations.js
Github Open Source
Open Source
MIT
null
resume-template
himanshu31shr
JavaScript
Code
254
1,114
import React,{ Component } from 'react' import Banner from '../components/Banner'; import {Link} from 'react-router-dom' import Modal from 'react-modal'; import SlidingPane from 'react-sliding-pane'; import 'react-sliding-pane/dist/react-sliding-pane.css'; import CurationsContent from '../services/curations'; import Li...
21,620
https://github.com/themost-framework/ejs/blob/master/spec/engine.spec.js
Github Open Source
Open Source
BSD-3-Clause
null
ejs
themost-framework
JavaScript
Code
111
400
import app from './app'; import request from 'supertest'; import {ViewEngine} from '../src'; describe('engine', () => { it('should use default ejs', async () => { const response = await request(app).get('/page1'); expect(response.status).toEqual(200); const body = response.text; exp...
16,352
https://github.com/marc-mrt/Eniverse-Showcase/blob/master/src/components/atoms/FooterContent.jsx
Github Open Source
Open Source
MIT
2,018
Eniverse-Showcase
marc-mrt
JavaScript
Code
16
47
// @flow import styled from 'styled-components'; const FooterContent = styled.div` margin-top: 2em; `; export default FooterContent;
52,558
https://github.com/GridProtectionAlliance/openXDA/blob/master/Source/Libraries/FaultData/DataReaders/COMTRADEReader.cs
Github Open Source
Open Source
MIT
2,021
openXDA
GridProtectionAlliance
C#
Code
941
3,054
//****************************************************************************************************** // COMTRADEReader.cs - Gbtc // // Copyright © 2014, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // ...
28,853