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/SonarSource/slang-test-sources/blob/master/kotlin/kotlin/compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/lower/BridgeLowering.kt
Github Open Source
Open Source
Apache-2.0
2,023
slang-test-sources
SonarSource
Kotlin
Code
912
4,090
/* * Copyright 2010-2016 JetBrains s.r.o. * * 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 agre...
49,710
https://github.com/erokhins/kotlin/blob/master/idea/idea-analysis/src/org/jetbrains/kotlin/idea/stubindex/JetFilePartClassIndex.kt
Github Open Source
Open Source
Apache-2.0
null
kotlin
erokhins
Kotlin
Code
160
412
/* * Copyright 2010-2015 JetBrains s.r.o. * * 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 agre...
5,044
https://github.com/Nesnomis90/Project-workFLOW/blob/master/admin/credits/form.html.php
Github Open Source
Open Source
MIT
2,017
Project-workFLOW
Nesnomis90
PHP
Code
400
1,775
<!-- This is the HTML form used for EDITING or ADDING CREDITS information--> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="stylesheet" type="text/css" href="/CSS/myCSS.css"> <script src="/scripts/myFunctions.js"></script> <title><?php htmlout($pageTitle); ?></title> <style> lab...
54,552
https://github.com/ivyquito/BahayPalitan-1/blob/master/application/controllers/user_page_swap_home.php
Github Open Source
Open Source
MIT
2,016
BahayPalitan-1
ivyquito
PHP
Code
234
1,353
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class user_page_swap_home extends CI_Controller { public function __construct() { parent::__construct(); if($this->session->userdata('sub')!=''){ redirect(base_url().'user_page_renew'); exit(); } $this->load->library("M...
26,528
https://github.com/dlo9/zfsbootmenu/blob/master/Makefile
Github Open Source
Open Source
MIT
null
zfsbootmenu
dlo9
Makefile
Code
33
164
.PHONY: install zfsbootmenu install: zfsbootmenu install -m 0644 -t $(DESTDIR)/etc/zfsbootmenu/ -D etc/zfsbootmenu/config.ini install -m 0644 -t $(DESTDIR)/etc/zfsbootmenu/dracut.conf.d/ -D etc/zfsbootmenu/dracut.conf.d/* install -m 0755 -t $(DESTDIR)/usr/lib/dracut/modules.d/90zfsbootmenu -D 90zfsbootmenu/* insta...
24,236
https://github.com/jrforrest/proclib/blob/master/proclib.gemspec
Github Open Source
Open Source
MIT
2,018
proclib
jrforrest
Ruby
Code
116
432
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'proclib/version' Gem::Specification.new do |spec| spec.name = "proclib" spec.version = Proclib::VERSION spec.authors = ["Jack Forrest"] spec.email = ["jack@jr...
7,575
https://github.com/zhemao/websh/blob/master/map.c
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,011
websh
zhemao
C
Code
255
1,054
#include "map.h" #include <string.h> map* create_map(){ map* m = (map*)malloc(sizeof(map)); int i; m->size=0; m->buckets = (item**)malloc(sizeof(item*)*NUM_BUCKETS); for(i=0;i<NUM_BUCKETS;++i) m->buckets[i] = NULL; m->keys = create_vector(); return m; } void* map_get(map* m, char * key){ if(key==NULL){ re...
32,003
https://github.com/fossabot/nginx-wrapper/blob/master/app/initapp/entrypoint.go
Github Open Source
Open Source
Apache-2.0
2,022
nginx-wrapper
fossabot
Go
Code
202
382
/* * Copyright 2020 F5 Networks * * 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 agre...
35,290
https://github.com/jonathannewman/pcore-java/blob/master/src/main/java/com/puppet/pcore/parser/model/TypeDefinition.java
Github Open Source
Open Source
Apache-2.0
2,021
pcore-java
jonathannewman
Java
Code
84
290
package com.puppet.pcore.parser.model; import com.puppet.pcore.PN; import com.puppet.pcore.impl.pn.CallPN; import com.puppet.pcore.impl.pn.LiteralPN; import com.puppet.pcore.parser.Expression; import java.util.Objects; public class TypeDefinition extends QRefDefinition { public final String parent; public final E...
5,306
https://github.com/StefanS/copper-engine/blob/master/projects/copper-monitoring/copper-monitoring-client/src/main/java/de/scoopgmbh/copper/monitoring/client/form/FormGroup.java
Github Open Source
Open Source
Apache-2.0
2,013
copper-engine
StefanS
Java
Code
234
724
/* * Copyright 2002-2013 SCOOP Software GmbH * * 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...
50,634
https://github.com/cspannos/Beyond-Blockchain-Relay/blob/master/DeFi/gossamer/code/client/src/components/Explainers/HowGetUsdcPage.js
Github Open Source
Open Source
MIT
2,019
Beyond-Blockchain-Relay
cspannos
JavaScript
Code
508
1,675
import React from 'react'; import ScrollAnimation from 'react-animate-on-scroll'; import { Link } from 'react-router-dom'; import ExternalLinkIcon from '../widgets/ExternalLinkIcon'; const HowGetUsdcPage = props => <div> {props.renderNavbar('howto')} <div className="copy-page-wrapper"> <ScrollAnimation ani...
4,741
https://github.com/MicahGale/mgale/blob/master/src/package-info.java
Github Open Source
Open Source
MIT
null
mgale
MicahGale
Java
Code
18
27
/** * Mgale is a package of personal libraries used in this and other projects. */ package mgale;
27,649
https://github.com/svenssonjoel/Obsidian-ReductionTutorial/blob/master/ReductionTutorial/ReduceExec.hs
Github Open Source
Open Source
BSD-3-Clause
null
Obsidian-ReductionTutorial
svenssonjoel
Haskell
Code
477
1,106
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Reduce import Prelude hiding (replicate) import Prelude as P import Obsidian import Obsidian.Run.CUDA.Exec -- import Obsidian.Run.CUDA.SC import qualified Data.Vector.Storable as V import Control.Monad.State import Data.Int import Data.Word performS...
33,015
https://github.com/damienbouyeure/API-REST-DEVOIR/blob/master/src/Controller/SubscriptionController.php
Github Open Source
Open Source
WTFPL
null
API-REST-DEVOIR
damienbouyeure
PHP
Code
92
429
<?php namespace App\Controller; use App\Entity\Subscription; use App\Repository\SubscriptionRepository; use Doctrine\ORM\EntityManagerInterface; use FOS\RestBundle\Controller\AbstractFOSRestController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Routing\Annotation\Route; us...
21,080
https://github.com/330808349/spring-security/blob/master/samples/javaconfig/hellowebflux-method/src/main/java/sample/HelloWebfluxMethodApplication.java
Github Open Source
Open Source
Apache-2.0
2,018
spring-security
330808349
Java
Code
185
520
/* * Copyright 2002-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
3,071
https://github.com/KoffieLabs/python-bigquery/blob/master/samples/magics/conftest.py
Github Open Source
Open Source
Apache-2.0
2,022
python-bigquery
KoffieLabs
Python
Code
155
395
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
10,144
https://github.com/rockola/bagisto/blob/master/packages/Webkul/BookingProduct/src/Repositories/BookingProductRepository.php
Github Open Source
Open Source
MIT
2,021
bagisto
rockola
PHP
Code
429
1,793
<?php namespace Webkul\BookingProduct\Repositories; use Illuminate\Container\Container as App; use Carbon\Carbon; use Webkul\Core\Eloquent\Repository; class BookingProductRepository extends Repository { /** * @return array */ protected $typeRepositories = []; /** * Create a new repository...
6,291
https://github.com/khandy21yo/aplus/blob/master/CMC030/mo/source/mo_spec_locationlook.bas
Github Open Source
Open Source
MIT
2,018
aplus
khandy21yo
Visual Basic
Code
147
417
1 ! Quick and dirty for LL to look up the MO orders that ! have the wrong location stuck on them. option size = (integer long, real gfloat) on error goto 19000 100 %include "source:[oe.open]oe_regheader.hb" map (oe_regheader) oe_regheader_cdd oe_regheader %include "source:[mo.open]mo_regline.hb" map (mo_regli...
46,739
https://github.com/wandiaz92/bengkelfyp/blob/master/resources/views/task/show.blade.php
Github Open Source
Open Source
MIT
null
bengkelfyp
wandiaz92
PHP
Code
19
77
@extends('layouts.default') @section('content') <h1>Task ID: {{ $id }}</h1> @stop @section('scripts') <script type="text/javascript"> alert('hellow ' + {{ $id }}); </script> @stop
48,775
https://github.com/masslight/react-native-navigation/blob/master/lib/android/app/src/main/java/com/reactnativenavigation/parse/params/Text.java
Github Open Source
Open Source
MIT
2,020
react-native-navigation
masslight
Java
Code
28
75
package com.reactnativenavigation.parse.params; public class Text extends Param<String> { public Text(String value) { super(value); } @Override public String toString() { return hasValue() ? value : "No Value"; } }
54,104
https://github.com/thomas-jimmy-chen/caesar-cipher-c/blob/master/caesar_cipher.c
Github Open Source
Open Source
MIT
2,020
caesar-cipher-c
thomas-jimmy-chen
C
Code
279
1,126
#include <stdio.h> #include <stdlib.h> #include <string.h> int encode(char text_to_cript[], int shift); int decode(char text_to_decrip[], int shift); int bruteforce(char text_to_decrip[]); char text[51],text_encoded[51],text_decoded[51]; char alfabeto[]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p'...
46,802
https://github.com/cchange12345/serviced/blob/master/health/check_test.go
Github Open Source
Open Source
Apache-2.0
2,022
serviced
cchange12345
Go
Code
1,264
4,122
// Copyright 2016-2018 The Serviced Authors. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
49,888
https://github.com/joeschlick/photo-repo-app/blob/master/client/src/router/AppRouter.js
Github Open Source
Open Source
MIT
2,021
photo-repo-app
joeschlick
JavaScript
Code
61
182
import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import Header from '../components/Header'; import HomePage from '../components/HomePage'; import Gallary from '../components/Gallary'; import NotFoundPage from '../components/NotFoundPage'; const AppRouter = () => ( <BrowserR...
56,326
https://github.com/bradparks/android-tv-openfl-example/blob/master/src/Main.hx
Github Open Source
Open Source
MIT
2,015
android-tv-openfl-example
bradparks
Haxe
Code
339
1,079
package; import openfl.Lib; import openfl.Assets; import openfl.display.Bitmap; import openfl.display.Sprite; import openfl.events.Event; import openfl.text.TextField; import openfl.text.TextFormat; import openfl.text.TextFormatAlign; /** * Android TV OpenFL Example to demonstrate specific settings/functions for And...
53,298
https://github.com/tirvaxx/ProjetRapide/blob/master/laravel/resources/views/layouts/rapportsLayout.blade.php
Github Open Source
Open Source
MIT
2,017
ProjetRapide
tirvaxx
Blade
Code
245
1,281
<!DOCTYPE html> <html lang="{{ app()->getLocale() }}"> <header> <meta charset="utf-8"> <meta http-equiv="X-UA-compatible" content="IE-edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="csrf-token" content="{{ Session::token() }}"> <title>...
24,888
https://github.com/liambaloh/elysium/blob/master/bukkit/elysium-banks-bukkit/src/main/kotlin/com/seventh_root/elysium/banks/bukkit/listener/SignChangeListener.kt
Github Open Source
Open Source
Apache-2.0
2,016
elysium
liambaloh
Kotlin
Code
210
752
/* * Copyright 2016 Ross Binden * * 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 ...
22,511
https://github.com/GiantRobots/paste/blob/master/packages/paste-customization/src/types.ts
Github Open Source
Open Source
MIT
null
paste
GiantRobots
TypeScript
Code
9
31
import {GenericThemeShape} from '@twilio-paste/theme'; export type CustomTheme = Partial<GenericThemeShape>;
50,975
https://github.com/nguillaumin/nabaztag-server/blob/master/net.violet.platform/src/main/java/net/violet/platform/voice/server/TTSEngine.java
Github Open Source
Open Source
MIT
2,018
nabaztag-server
nguillaumin
Java
Code
884
2,966
package net.violet.platform.voice.server; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.PriorityBlockingQueue; import net.violet.platform.voice.server.TTSJob.TTSJobPrioritized; impo...
3,258
https://github.com/mike442144/FBS/blob/master/FBS.Web.Web/Admin/Pages/NeedsPages/NeedsList.aspx.cs
Github Open Source
Open Source
AFL-2.1, BSD-3-Clause
2,013
FBS
mike442144
C#
Code
128
585
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using FBS.Service; namespace FBS.Web....
35,867
https://github.com/guoke24/test_zizhuyou/blob/master/src/guoke/activity/HotelRoomReserveActivity.java
Github Open Source
Open Source
Apache-2.0
null
test_zizhuyou
guoke24
Java
Code
572
3,442
package guoke.activity; import guoke.bean.HotelBean; import guoke.bean.RoomBean; import guoke.home.HomeActivity; import guoke.model.HotelItem; import guoke.model.InfoCom; import guoke.model.MDate; import guoke.model.MyUser; import guoke.model.RoomItem; import guoke.model.RoomOrder; import cn.bmob.v3.BmobUser; import ...
46,164
https://github.com/shangsharon/NanUI/blob/master/src/Demo/FormiumClientFrontends/formium-client-ui/src/pages/about-page/chs.js
Github Open Source
Open Source
MIT
2,022
NanUI
shangsharon
JavaScript
Code
195
1,555
import "./Page.scss"; import React from "react"; import qrcode_img from "./images/qrcode.png"; import paypal_img from "./images/paypal.png"; const Page = () => ( <article> <h2>项目简介</h2> <div className="section-block"> <p> NanUI 界面组件是一个开放源代码的 .NET / .NET Core 窗体应用程序(WinForms)框架。它适用于希望使用 HTML5/CS...
54,420
https://github.com/cjburkey01/ClaimChunk/blob/master/src/main/java/com/cjburkey/claimchunk/config/access/Accesses.java
Github Open Source
Open Source
MIT
2,022
ClaimChunk
cjburkey01
Java
Code
120
522
package com.cjburkey.claimchunk.config.access; import com.cjburkey.claimchunk.Utils; import org.bukkit.Material; import org.bukkit.entity.EntityType; import java.util.HashMap; public class Accesses { // Entity access tracking public final HashMap<EntityType, EntityAccess> entityAccesses; public final H...
8,872
https://github.com/kagel/yup/blob/master/code/lib/Movable.pm
Github Open Source
Open Source
Artistic-1.0-Perl
2,013
yup
kagel
Perl
Code
173
421
package Movable; use strict; use warnings; use 5.010; use Mouse; #new attribute has move_dt => ( is => 'rw', isa => 'Num', default => Time::HiRes::time ); #new attribute has look_sprites => ( is => 'rw', isa => 'ArrayRef[ArrayRef[Num]]', default => sub {[ [0, 32*2, 32, 32], [0, 32, 32, 32], ...
14,879
https://github.com/sylveon/Project-Reunion-Samples/blob/master/DWriteCore/DWriteCoreGallery/DWriteCoreGallery/Scenarios.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,020
Project-Reunion-Samples
sylveon
C++
Code
59
211
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #pragma once #include "ChildWindow.h" // // Factory functions for each type of scenario. // These are defined in their respective source files. // std::unique_ptr<ChildWindow> CreateScenario_BasicTextLayout(HWND parentWindow, TextRenderer* te...
7,269
https://github.com/olekon/bcshop.io/blob/master/contracts/Something.sol
Github Open Source
Open Source
MIT
null
bcshop.io
olekon
Solidity
Code
381
974
pragma solidity ^0.4.0; import './helpers/FakeTime.sol'; contract Something { function Something() {} } contract FakeTimeExample is FakeTime { uint256 public startTime; function changeStartTime(uint256 newStartTime) { startTime = newStartTime; } function startTimePassed() constant retu...
39,446
https://github.com/libpfasst/LibPFASST/blob/master/pf/setup.py
Github Open Source
Open Source
BSD-3-Clause-LBNL
2,021
LibPFASST
libpfasst
Python
Code
16
53
#! /usr/bin/env python import sys import os pythonpath = os.path.append('../pf') if pythonpath not in sys.path: sys.path.append(pythonpath)
50,038
https://github.com/swigger/mxe/blob/master/src/libgee.mk
Github Open Source
Open Source
RSA-MD
2,017
mxe
swigger
Makefile
Code
109
559
# This file is part of MXE. See LICENSE.md for licensing information. PKG := libgee $(PKG)_WEBSITE := https://wiki.gnome.org/Projects/Libgee $(PKG)_IGNORE := $(PKG)_VERSION := 0.20.1 $(PKG)_CHECKSUM := bb2802d29a518e8c6d2992884691f06ccfcc25792a5686178575c7111fea4630 $(PKG)_SUBDIR := libgee-$($(PKG)_V...
38,764
https://github.com/wy1iu/sphereface/blob/master/tools/caffe-sphereface/src/caffe/layers/lstm_unit_layer.cpp
Github Open Source
Open Source
MIT, LicenseRef-scancode-public-domain, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-generic-cla
2,022
sphereface
wy1iu
C++
Code
553
1,663
#include <algorithm> #include <cmath> #include <vector> #include "caffe/layer.hpp" #include "caffe/layers/lstm_layer.hpp" namespace caffe { template <typename Dtype> inline Dtype sigmoid(Dtype x) { return 1. / (1. + exp(-x)); } template <typename Dtype> inline Dtype tanh(Dtype x) { return 2. * sigmoid(2. * x) -...
16,514
https://github.com/Foca87/GitC/blob/master/MVC/MVCProject/MVCProject/View/FormsAdicionar/frmAddUsuario.cs
Github Open Source
Open Source
MIT
null
GitC
Foca87
C#
Code
67
232
using MVCProject.Model; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MVCProject.View.FormsAdicionar { public partial class frmAddUsuari...
25,701
https://github.com/KDE/knotes/blob/master/noteshared/src/akonadi/noteschangerecorder.cpp
Github Open Source
Open Source
BSD-3-Clause, CC0-1.0
2,023
knotes
KDE
C++
Code
73
441
/* SPDX-FileCopyrightText: 2013-2023 Laurent Montel <montel@kde.org> SPDX-License-Identifier: GPL-2.0-or-later */ #include "noteschangerecorder.h" #include <Akonadi/ChangeRecorder> #include <Akonadi/CollectionFetchScope> #include <Akonadi/ItemFetchScope> #include <Akonadi/NoteUtils> #include "attributes/noteal...
6,155
https://github.com/matt360/ModernCpp/blob/master/CppQuiz/Q29/Main.cpp
Github Open Source
Open Source
MIT
null
ModernCpp
matt360
C++
Code
57
134
#include <iostream> #include <string> #include <vector> struct A { A() { foo(); } virtual ~A() { foo(); } virtual void foo() { std::cout << "1"; } void bar() { foo(); } }; struct B : public A { virtual void foo() { std::cout << "2"; } }; int main() { { B b; b.bar(); } std::cin.get(); }
35,475
https://github.com/jacks0n/dotfiles/blob/master/.curlrc
Github Open Source
Open Source
MIT
2,023
dotfiles
jacks0n
null
Spoken
70
162
# cURL configuration options # http://curl.haxx.se/docs/manpage.html # Limit the connection time (in seconds). connect-timeout = 60 # Follow HTTP redirects. location # Display progress as a simple progress bar. progress-bar # When following a redirect, automatically set the previous URL as referer. referer = ";auto...
3,635
https://github.com/NinZine/ios/blob/master/Mobius/Resources/directcanvassupport/impactplugins/dc/animation.js
Github Open Source
Open Source
MIT
2,011
ios
NinZine
JavaScript
Code
138
530
ig.module( 'plugins.dc.animation' ) .requires( 'impact.animation' ) .defines(function(){ ig.Animation.inject({ update: function() { var frameTotal = (this.timer.delta() / this.frameTime).floor(); this.loopCount = (frameTotal / this.sequence.length).floor(); if( this.stop && this.loopCount > 0 ) { this.fra...
31,957
https://github.com/puntodev/payables/blob/master/src/Contracts/PaymentOrder.php
Github Open Source
Open Source
MIT
null
payables
puntodev
PHP
Code
47
126
<?php namespace Puntodev\Payables\Contracts; use DateTime; interface PaymentOrder { public function items(): array; public function email(): string; public function firstName(): string; public function lastName(): string; public function excludedPaymentMethods(): array; public function...
46,099
https://github.com/Yurunsoft/PaySDK/blob/master/test/AlipayApp/notify.php
Github Open Source
Open Source
MIT
2,023
PaySDK
Yurunsoft
PHP
Code
44
224
<?php /** * 支付宝即时到账异步通知Demo. */ require __DIR__ . '/common.php'; // 公共配置 $params = new \Yurun\PaySDK\AlipayApp\Params\PublicParams(); $params->appPublicKey = $GLOBALS['PAY_CONFIG']['publicKey']; $params->appPrivateKey = $GLOBALS['PAY_CONFIG']['privateKey']; // SDK实例化,传入公共配置 $pay = new \Yurun\PaySDK\AlipayApp\SDK($p...
39,456
https://github.com/NuttyJamie/acmicpc/blob/master/1110.c
Github Open Source
Open Source
MIT
null
acmicpc
NuttyJamie
C
Code
24
119
#include <stdio.h> int main() { int N, x=0, count=0; scanf("%d", &N); x=N; do { x=(x%10*10)+((x/10+x%10)%10); //printf("x is %d\n", x); count++; }while(x!=N); printf("%d\n", count); }
43,289
https://github.com/alisterburt/tiler/blob/master/tiler/_windows.py
Github Open Source
Open Source
MIT
2,022
tiler
alisterburt
Python
Code
807
2,109
# Heavily based on scipy code # For more information please refer to scipy/signal/windows/windows.py from typing import Union, List import numpy as np def _len_guards(m: int): """Handle small or incorrect window lengths""" if int(m) != m or m < 0: raise ValueError("Window length m must be a non-negati...
9,376
https://github.com/IMMAX-TECH/Backend/blob/master/views/ventas/rutas.js
Github Open Source
Open Source
MIT
null
Backend
IMMAX-TECH
JavaScript
Code
92
386
import Express from 'express'; import { queryAllSales, crearVenta, editarVenta, eliminarVenta, consultarVenta, } from '../../controllers/ventas/controller.js'; const rutasVenta = Express.Router(); const genercCallback = (res) => (err, result) => { if (err) { res.status(500).send('Error consultando los...
13,764
https://github.com/erikaheidi/streamwidgets/blob/master/chatbot/AutoReplier.php
Github Open Source
Open Source
MIT
2,021
streamwidgets
erikaheidi
PHP
Code
53
182
<?php namespace Chatbot; use StreamWidgets\Chatbot\ChatbotCommandInterface; use StreamWidgets\Chatbot\ChatbotService; abstract class AutoReplier implements ChatbotCommandInterface { public function handle(ChatbotService $chatbot, array $args = []) { $author = $args['author']; $channel = $args...
32,598
https://github.com/alexandrule/event-sourcing-rails-todo-app-demo/blob/master/app/models/events/todo_list/base_event.rb
Github Open Source
Open Source
MIT
2,022
event-sourcing-rails-todo-app-demo
alexandrule
Ruby
Code
14
62
class Events::TodoList::BaseEvent < Lib::BaseEvent self.table_name = "todo_list_events" belongs_to :todo_list, class_name: "::TodoList", autosave: false end
56,116
https://github.com/bopopescu/boltmq/blob/master/store/persistent/mapped_byte_buffer_test.go
Github Open Source
Open Source
Apache-2.0
2,021
boltmq
bopopescu
Go
Code
171
407
// Copyright 2017 luoji // 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, soft...
7,352
https://github.com/welingtonfidelis/coqui_front/blob/master/enums/role.ts
Github Open Source
Open Source
MIT
null
coqui_front
welingtonfidelis
TypeScript
Code
28
81
export enum ROLES_ENUM { USER = 'user', MANAGER = 'manager', ADMIN = 'admin' } export enum ROLES_ENUM_PTBR { USUÁRIO = 'user', GERENTE = 'manager', ADMINISTRADOR = 'admin' }
38,607
https://github.com/muczy/ShareToEmail/blob/master/ShareToEmailTest/src/org/sharetomail/test/CompatibilityTest.java
Github Open Source
Open Source
Apache-2.0
null
ShareToEmail
muczy
Java
Code
146
703
/** * */ package org.sharetomail.test; import org.sharetomail.MainActivity; import org.sharetomail.util.Constants; import android.app.KeyguardManager; import android.content.Context; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.test.ActivityInstrumentati...
10,559
https://github.com/Mthandazo42/validating-binary-decompilation/blob/master/tests/single_instruction_translation_validation/mcsema/memory-variants/packusdw_xmm_m128/test.c
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, NCSA
2,020
validating-binary-decompilation
Mthandazo42
C
Code
7
26
void main() { __asm__("packusdw -32(%rbp), %xmm1"); }
39,825
https://github.com/steleman/flang9/blob/master/tools/flang/include/flang/ArgParser/debug_action.h
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,020
flang9
steleman
C
Code
366
632
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
45,065
https://github.com/manggoguy/parsec-modified/blob/master/pkgs/libs/uptcpip/src/include/sys/bsd_buf_ring.h
Github Open Source
Open Source
BSD-3-Clause
2,022
parsec-modified
manggoguy
C
Code
885
2,669
/************************************************************************** * * Copyright (c) 2007-2009 Kip Macy kmacy@freebsd.org * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Re...
19,882
https://github.com/Team-SangSang/store/blob/master/public/javascripts/executer.js
Github Open Source
Open Source
MIT
2,015
store
Team-SangSang
JavaScript
Code
376
1,341
$(function () { "use strict"; var Executer = function () { var $socket = io('http://localhost:8000'), $commandModel = function () { this.type = ''; this.value = ''; }, _command = { analogWrite: function ($pin, $val, $done) { var $callback = function (...
37,153
https://github.com/rubykit/kit/blob/master/libraries/kit-doc/lib/kit/doc/services/sidebar.rb
Github Open Source
Open Source
MIT
2,021
kit
rubykit
Ruby
Code
399
1,154
# Data transformation logic for the documentation `Sidebar` content. module Kit::Doc::Services::Sidebar # Generate the group container needed in `sidebar_items`. # # This maintain the group order defined in the initial config. def self.get_ordered_groups_container(groups:) result = {} if groups.dig(0,...
31,768
https://github.com/felipevaladares/norris/blob/master/persistance/src/test/java/io/dotanuki/norris/persistance/tests/SearchHistoryInfrastructureTests.kt
Github Open Source
Open Source
MIT
2,019
norris
felipevaladares
Kotlin
Code
127
476
package io.dotanuki.norris.persistance.tests import io.dotanuki.norris.domain.errors.SearchHistoryError import io.dotanuki.norris.domain.services.SearchesHistoryService import io.dotanuki.norris.persistance.SearchHistoryInfrastructure import kotlinx.coroutines.runBlocking import org.assertj.core.api.Assertions.assertT...
16,466
https://github.com/BrankoVukmirovic/audio_factory/blob/master/Assets/Scripts/Rooms/GearRoom.meta
Github Open Source
Open Source
Apache-2.0
2,017
audio_factory
BrankoVukmirovic
Unity3D Asset
Code
14
68
fileFormatVersion: 2 guid: db68ff47cf210427598aad3c47c2296c folderAsset: yes timeCreated: 1484955859 licenseType: Pro DefaultImporter: userData: assetBundleName: assetBundleVariant:
42,949
https://github.com/caianfa/zarm/blob/master/components/mask/__tests__/__snapshots__/index.native.test.jsx.snap
Github Open Source
Open Source
MIT
2,020
zarm
caianfa
null
Spoken
28
102
// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Mask renders correctly 1`] = ` <react-native-mock> <react-native-mock /> </react-native-mock> `; exports[`Mask type is transparent 1`] = ` <react-native-mock> <react-native-mock /> </react-native-mock> `;
23,574
https://github.com/windse7en/terra-core/blob/master/packages/terra-list/tests/nightwatch/list-item/SelectableListItem.jsx
Github Open Source
Open Source
Apache-2.0
2,017
terra-core
windse7en
JavaScript
Code
15
35
import React from 'react'; import ListItem from '../../../lib/ListItem'; export default () => <ListItem isSelectable />;
34,086
https://github.com/MiguelPazo/horses/blob/master/app/Http/Controllers/Operator/AgentController.php
Github Open Source
Open Source
MIT
2,017
horses
MiguelPazo
PHP
Code
199
510
<?php namespace Horses\Http\Controllers\Operator; use Horses\Agent; use Horses\Http\Requests; use Horses\Http\Controllers\Controller; use Illuminate\Http\Request; class AgentController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function i...
24,599
https://github.com/eep60b/etlexamples/blob/master/data-preparation/data-implementation/src/test/java/com/etlsolutions/examples/data/factory/SimpleBookFactoryConstructorTest.java
Github Open Source
Open Source
Apache-2.0
2,019
etlexamples
eep60b
Java
Code
111
320
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.etlsolutions.examples.data.factory; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetExcepti...
42,144
https://github.com/sho25/hive/blob/master/common/src/java/org/apache/hadoop/hive/common/BlobStorageUtils.java
Github Open Source
Open Source
Apache-2.0
null
hive
sho25
Java
Code
413
1,534
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses...
45,477
https://github.com/f0rx/amatrider/blob/master/lib/generated/intl/messages_fr-FR.dart
Github Open Source
Open Source
BSD-3-Clause
null
amatrider
f0rx
Dart
Code
396
1,997
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart // This is a library that provides messages for a fr_FR locale. All the // messages from the main program should be duplicated here with the same // function name. // Ignore issues from commonly used lints in this file. // ignore_for_file:...
46,542
https://github.com/Mogball/bullet-ui/blob/master/tests/integration/components/cells/schema-type-entry-test.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,017
bullet-ui
Mogball
JavaScript
Code
74
177
/* * Copyright 2016, Yahoo Inc. * Licensed under the terms of the Apache License, Version 2.0. * See the LICENSE file associated with the project for terms. */ import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('schema-type-entry', 'Integrati...
39,054
https://github.com/apphud/ApphudSDK-React-Native/blob/master/android/src/main/java/com/reactnativeapphudsdk/ApphudListenerHandler.kt
Github Open Source
Open Source
MIT
2,023
ApphudSDK-React-Native
apphud
Kotlin
Code
100
430
package com.reactnativeapphudsdk import com.android.billingclient.api.SkuDetails import com.apphud.sdk.ApphudListener import com.apphud.sdk.domain.ApphudPaywall import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.bridge.ReactContextBaseJavaModule import com.facebook.react.modules.core.De...
22,584
https://github.com/luksa/fuse-fabric8/blob/master/fabric/fabric-zookeeper-commands/src/main/java/io/fabric8/zookeeper/commands/ListAction.java
Github Open Source
Open Source
ECL-2.0, Apache-2.0
null
fuse-fabric8
luksa
Java
Code
311
788
/** * Copyright 2005-2015 Red Hat, Inc. * * Red Hat licenses this file to you 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 r...
16,986
https://github.com/Aishubante/JavaTrainings/blob/master/projects/springbegin/src/main/webapp/WEB-INF/views/welcome.jsp
Github Open Source
Open Source
Apache-2.0
2,016
JavaTrainings
Aishubante
null
Spoken
38
170
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <html> <head> <title>Hello World Spring MVC</title> </head> <body> Добро пожаловать ${name} <form method="post"> <p>id</p> <input type="text" name="id" /> <p>name</p> <input type="text" name="name"/> <p>password</p> <input type="password" ...
6,482
https://github.com/SimplyCodedSoftware/integration-messaging/blob/master/tests/Messaging/Fixture/Behat/Calculating/CalculateChannel.php
Github Open Source
Open Source
MIT
2,019
integration-messaging
SimplyCodedSoftware
PHP
Code
46
188
<?php namespace Test\SimplyCodedSoftware\Messaging\Fixture\Behat\Calculating; use SimplyCodedSoftware\Messaging\Annotation\ApplicationContext; use SimplyCodedSoftware\Messaging\Annotation\Extension; use SimplyCodedSoftware\Messaging\Channel\SimpleMessageChannelBuilder; /** * Class CalculateChannel * @package Fixt...
42,459
https://github.com/jortiz-el/PhP/blob/master/vinil_shirt/resources/views/usuario/index.blade.php
Github Open Source
Open Source
MIT
2,016
PhP
jortiz-el
Blade
Code
42
271
@extends('layout.layout') @section('content') <div class="form"> <h1>Iniciar sesion de Usuario </h1> {!!Form::open(['route'=>'usuario.index','method'=>'POST'])!!} <div class="form-group"> {!!Form::label('Correo:')!!} {!!Form::text('email',null,['placeholder'=>'Ingresa el correo del Usuario'])!!} </...
29,815
https://github.com/lknufi/SOPRA_FS20_Group19_Server/blob/master/src/main/java/ch/uzh/ifi/seal/soprafs20/rest/dto/MessagePostDTO.java
Github Open Source
Open Source
Apache-2.0
2,020
SOPRA_FS20_Group19_Server
lknufi
Java
Code
45
136
package ch.uzh.ifi.seal.soprafs20.rest.dto; public class MessagePostDTO { private int senderId; private String content; public int getSenderId() { return senderId; } public void setSenderId(int senderId) { this.senderId = senderId; } public String getContent() { ...
54,875
https://github.com/optimistex/expression/blob/master/Makefile
Github Open Source
Open Source
BSD-3-Clause
2,019
expression
optimistex
Makefile
Code
17
86
all: test test: phpunit.phar ./phpunit.phar --bootstrap expression.php tests/* phpunit.phar: wget --no-check-certificate https://phar.phpunit.de/phpunit.phar -O phpunit.phar chmod +x phpunit.phar
45,600
https://github.com/opencollective/ff4j/blob/master/ff4j-store-elastic/src/main/java/org/ff4j/elastic/store/EventRepositoryElastic.java
Github Open Source
Open Source
Apache-2.0
2,017
ff4j
opencollective
Java
Code
667
2,397
package org.ff4j.elastic.store; /* * #%L * ff4j-store-elastic * %% * Copyright (C) 2013 - 2016 FF4J * %% * 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.o...
24,116
https://github.com/rizki2610ramdhani/pengaduan/blob/master/storage/framework/views/d4fa6a677191dc4293d16d52e17580af679ab8af.php
Github Open Source
Open Source
MIT
null
pengaduan
rizki2610ramdhani
PHP
Code
142
756
<?php $__env->startSection('title', 'Dashbard Petugas'); ?> <?php $__env->startSection('judul', 'Dashboard'); ?> <?php $__env->startSection('subjudul', 'Daftar Aduan Ditanggapi'); ?> <?php $__env->startSection('content'); ?> <table class="table table-bordered"> <thead> <tr> <th style="width: 10px">No<...
52,142
https://github.com/phtri/eCert/blob/master/eCert/Daos/AdminDAO.cs
Github Open Source
Open Source
ISC
2,021
eCert
phtri
C#
Code
1,722
7,021
using eCert.Models.Entity; using eCert.Services; using eCert.Utilities; using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.Data.SqlClient; using System.Linq; using System.Text.RegularExpressions; using System.Web; using System.Web.Configuration; using static eCert....
36,508
https://github.com/avishal/vptail/blob/master/common/models/Worker.php
Github Open Source
Open Source
BSD-3-Clause
null
vptail
avishal
PHP
Code
190
561
<?php namespace common\models; use Yii; /** * This is the model class for table "worker". * * @property integer $id * @property string $firstname * @property string $lastname * @property string $email * @property string $mobile * @property integer $status * @property string $created * @property string $upd...
25,435
https://github.com/tsdicloud/python-opentelekom-sdk/blob/master/opentelekom/tests/functional/css/v1/test_flavors.py
Github Open Source
Open Source
Apache-2.0
null
python-opentelekom-sdk
tsdicloud
Python
Code
123
299
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
34,369
https://github.com/cryst-al/novoline/blob/master/src/viaversion/viaversion/protocols/protocol1_13to1_12_2/packets/EntityPackets.java
Github Open Source
Open Source
Unlicense
2,022
novoline
cryst-al
Java
Code
47
358
package viaversion.viaversion.protocols.protocol1_13to1_12_2.packets; import net.aEY; import net.aTW; import net.aWW; import net.azW; import viaversion.viaversion.api.type.types.version.Types1_12; import viaversion.viaversion.protocols.protocol1_13to1_12_2.Protocol1_13To1_12_2; import viaversion.viaversion.protocols.p...
43,359
https://github.com/WeizhouRen/FoodDeliveryWebsite/blob/master/application/views/home.php
Github Open Source
Open Source
MIT
2,021
FoodDeliveryWebsite
WeizhouRen
PHP
Code
168
579
<main> <!-- *** BACKGROUND *** --> <section id="fixed-background"> <div id="order-now"> <a href="<?php echo base_url()?>restaurants"><label>To Discover Your Food</label></a> </div> </section> <!-- *** RECOMMONDATION *** --> <section id=...
49,386
https://github.com/honestbiscuits/honestbiscuits/blob/master/src/utils/fontawesome.js
Github Open Source
Open Source
MIT
2,020
honestbiscuits
honestbiscuits
JavaScript
Code
64
378
import fontawesome from '@fortawesome/fontawesome' import faRss from '@fortawesome/fontawesome-free-solid/faRss' import faLocationArrow from '@fortawesome/fontawesome-free-solid/faLocationArrow' import faPhoneSquare from '@fortawesome/fontawesome-free-solid/faPhoneSquare' import faEnvelopeOpen from '@fortawesome/fontaw...
29,252
https://github.com/johnwheeler1/Quest-System-Pro/blob/master/Assets/Devdog/QuestSystemPro/Scripts/Integrations/EasySave2/Types.meta
Github Open Source
Open Source
MIT
2,021
Quest-System-Pro
johnwheeler1
Unity3D Asset
Code
14
71
fileFormatVersion: 2 guid: b337da0ea5ee7774f9c3a22a4930948a folderAsset: yes timeCreated: 1464867092 licenseType: Free DefaultImporter: userData: assetBundleName: assetBundleVariant:
8,022
https://github.com/utahstreetlabs/brooklyn/blob/master/spec/jobs/listings/after_activation_job_spec.rb
Github Open Source
Open Source
Apache-2.0
2,013
brooklyn
utahstreetlabs
Ruby
Code
226
1,055
require 'spec_helper' describe Listings::AfterActivationJob do let(:listing) { FactoryGirl.create(:active_listing) } subject { Listings::AfterActivationJob } describe "#email_activated" do it "enqueues the job" do EmailListingActivated.expects(:enqueue).with(listing.id) subject.email_activated(...
3,022
https://github.com/psy-q/flagellant/blob/master/app/models/flag_layer.rb
Github Open Source
Open Source
MIT
null
flagellant
psy-q
Ruby
Code
50
149
class FlagLayer < ActiveRecord::Base belongs_to :flag before_create :populate_sortorder validates :width, :height, :numericality => { :only_integer => true } scope :template, -> { where(:is_base_layer => false, :is_template => true) } scope :base, -> { where(:is_base_layer => true) } private def popula...
33,195
https://github.com/getsentry/sentry-native/blob/master/src/sentry_database.c
Github Open Source
Open Source
MIT
2,023
sentry-native
getsentry
C
Code
720
3,031
#include "sentry_database.h" #include "sentry_alloc.h" #include "sentry_envelope.h" #include "sentry_json.h" #include "sentry_options.h" #include "sentry_session.h" #include <errno.h> #include <string.h> sentry_run_t * sentry__run_new(const sentry_path_t *database_path) { sentry_uuid_t uuid = sentry_uuid_new_v4();...
26,681
https://github.com/nyaxt/honeytypes/blob/master/honeytypes/types/int.h
Github Open Source
Open Source
MIT
2,013
honeytypes
nyaxt
C++
Code
128
432
#ifndef _ht_types_int_h_ #define _ht_types_int_h_ #include "types.h" namespace ht { class IntV { public: constexpr static impltype_t IMPLTYPE = impltype_t::T_IntV; typedef int INT_T; IntV(INT_T n = 0) : m_impl(n) { /* NOP */ } bool operator==(const IntV& o) const { return m_impl == o.m_impl; } boo...
26,772
https://github.com/NoamDev/TON-Compiler/blob/master/llvm/test/CodeGen/TVM/deep_blkdrop.ll
Github Open Source
Open Source
Apache-2.0
2,022
TON-Compiler
NoamDev
LLVM
Code
102
363
; RUN: llc < %s -march=tvm | FileCheck %s target datalayout = "E-S257-i1:257:257-i8:257:257-i16:257:257-i32:257:257-i64:257:257-i257:257:257-p:257:257-a:257:257" target triple = "tvm" define dso_local i257 @deep_blkdrop(i257 %v0, i257 %v1, i257 %v2, i257 %v3, i257 %v4, i257 %v5, i257 %v6, i257 %v7, i257 %a0, i257 %a...
39,045
https://github.com/ldapts/ldapts/blob/master/src/messages/ModifyDNRequest.ts
Github Open Source
Open Source
MIT
2,023
ldapts
ldapts
TypeScript
Code
159
518
import type { BerReader, BerWriter } from 'asn1'; import type { ProtocolOperationValues } from '../ProtocolOperation'; import { ProtocolOperation } from '../ProtocolOperation'; import type { MessageOptions } from './Message'; import { Message } from './Message'; export interface ModifyDNRequestMessageOptions extends...
3,634
https://github.com/kafudev/react-native-txplayer/blob/master/android/src/main/java/com/tencent/liteav/demo/play/utils/TCUrlUtil.java
Github Open Source
Open Source
MIT
null
react-native-txplayer
kafudev
Java
Code
59
227
package com.tencent.liteav.demo.play.utils; import android.text.TextUtils; /** * 直播协议判断工具 */ public class TCUrlUtil { /** * 是否是RTMP协议 * * @param videoURL * @return */ public static boolean isRTMPPlay(String videoURL) { return !TextUtils.isEmpty(videoURL) && videoURL.startsWi...
29,783
https://github.com/mariusl/step2mach/blob/master/SDK/Galil PlugIn/Dmccom.h
Github Open Source
Open Source
MIT
2,019
step2mach
mariusl
C
Code
7,806
16,027
// Note: Include this file afer WINDOWS.H // WINDOWS.H must be included in your project #ifndef DMCCOM_H #define DMCCOM_H #ifdef __cplusplus extern "C" { #endif // Common datatypes (see WINDOWS.H) #ifndef FAR #define FAR #endif #ifndef NEAR #define NEAR #endif typedef short int SHORT; typedef short int NEAR* PSH...
1,944
https://github.com/RaiIsNotYourGuy/Azores/blob/master/public/javascripts/searchBar.js
Github Open Source
Open Source
MIT
null
Azores
RaiIsNotYourGuy
JavaScript
Code
57
176
const searchBar = document.getElementById('searchBar'); searchBar.addEventListener("keyup", function(e) { // need to use two if statements. e.code === "Enter" || "NumpadEnter" makes the script submit immediately after inputting a key. if (e.code === "Enter") { if (document.getElementById("searchBar").v...
37,095
https://github.com/hi-dhl/DebugApkSmali/blob/master/ApkSampleSmali/app/src/main/java/com/miui/support/reflect/Field.smali
Github Open Source
Open Source
Apache-2.0
2,021
DebugApkSmali
hi-dhl
Smali
Code
473
2,798
.class public Lcom/miui/support/reflect/Field; .super Ljava/lang/Object; # static fields .field public static final BOOLEAN_SIGNATURE_PRIMITIVE:Ljava/lang/String; = "Z" .field public static final BYTE_SIGNATURE_PRIMITIVE:Ljava/lang/String; = "B" .field public static final CHAR_SIGNATURE_PRIMITIVE:Ljava/lang/String;...
50,768
https://github.com/wanbok/yok-server/blob/master/app/views/teams/show.json.jbuilder
Github Open Source
Open Source
MIT
2,013
yok-server
wanbok
Ruby
Code
38
163
json.extract! @team, :group_id, :name json.teacher do json.(@team.teacher, :name, :role) end json.students do json.array!(@team.students) do |student| json.(student, :name, :role) if student.avatar.present? json.avatar do json.(student.avatar, :head, :head_back, :head_front, :torso, :torso_bac...
26,241
https://github.com/prafull11/console/blob/master/frontend/packages/kubevirt-plugin/src/components/create-vm-wizard/redux/initial-state/vm-settings-tab-initial-state.ts
Github Open Source
Open Source
Apache-2.0
2,020
console
prafull11
TypeScript
Code
281
1,153
import { OrderedSet } from 'immutable'; import { CommonData, VMSettingsField, VMWizardProps } from '../../types'; import { asDisabled, asHidden, asRequired } from '../../utils/utils'; import { ProvisionSource } from '../../../../constants/vm/provision-source'; import { getProviders } from '../../provider-definitions'; ...
13,798
https://github.com/manuelgentile/pxlab/blob/master/pxlab/src/main/java/de/pxlab/util/MathExt.java
Github Open Source
Open Source
MIT, Unlicense
2,019
pxlab
manuelgentile
Java
Code
166
420
package de.pxlab.util; /** Some useful math functions. */ public class MathExt { public static int ggT(int x, int y) { if (x > y) { return ggT(x - y, y); } else if (y > x) { return ggT(y - x, x); } else return x; } public static int kgV(int x, int y) { return x / ggT(x, y) * y; } /** * Comput...
33,536
https://github.com/TheShadowGamer/Password-System/blob/master/components/folder/managePassword.jsx
Github Open Source
Open Source
MIT
2,021
Password-System
TheShadowGamer
null
Spoken
414
1,962
const { React, i18n: { Messages } } = require("powercord/webpack"); const { FormTitle, Button } = require("powercord/components"); const TextInputWithButton = require("../TextInputWithButton") const { Modal } = require("powercord/components/modal"); const { close: closeModal } = require("powercord/modal"); module.expo...
10,315
https://github.com/ogmedina/Eat-Da-Burger/blob/master/db/seeds.sql
Github Open Source
Open Source
MIT
2,021
Eat-Da-Burger
ogmedina
SQL
Code
36
102
INSERT INTO burgers (burger_name, devoured) VALUES ("Bacon Blue Cheese", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Vegan-Bean", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Cheese Burger", false); INSERT INTO burgers (burger_name, devoured) VALUES ("Avocado Burger", true);
7,838
https://github.com/refugeetech/CompetencyDataMining/blob/master/build.sh
Github Open Source
Open Source
MIT
2,016
CompetencyDataMining
refugeetech
Shell
Code
14
62
#!/bin/sh docker build -t competency-data-mining . docker tag -f competency-data-mining iteamoperations/competency-data-mining docker push iteamoperations/competency-data-mining
56,255
https://github.com/Netacom-NetAlo/NetAloSDK-Flutter-Demo/blob/master/lib/main.dart
Github Open Source
Open Source
MIT
null
NetAloSDK-Flutter-Demo
Netacom-NetAlo
Dart
Code
277
1,119
import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_sdk/net_alo_user.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context)...
32,191