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/trustex/fearless-iOS/blob/master/fearless/Common/Extension/FearlessUtils/StorageKeyFactory+Implicit.swift
Github Open Source
Open Source
Apache-2.0
2,021
fearless-iOS
trustex
Swift
Code
86
283
import Foundation import FearlessUtils extension StorageKeyFactoryProtocol { func updatedTripleRefCount() throws -> Data { try createStorageKey(moduleName: "System", serviceName: "UpgradedToTripleRefCount") } func accountInfoKeyForId(_ identifier: Data) throws -> Data ...
2,317
https://github.com/yxlao/webrtc-cpp-sample/blob/master/webrtc/include/third_party/blink/public/common/fetch/fetch_api_request_body_mojom_traits.h
Github Open Source
Open Source
MIT
2,022
webrtc-cpp-sample
yxlao
C
Code
119
596
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_PUBLIC_COMMON_FETCH_FETCH_API_REQUEST_BODY_MOJOM_TRAITS_H_ #define THIRD_PARTY_BLINK_PUBLIC_COMMON_FETCH_FETCH_API_REQUEST_BODY_...
11,893
https://github.com/alexshpilkin/xmeye/blob/master/dvrip/cmd/discover.py
Github Open Source
Open Source
CC0-1.0
2,021
xmeye
alexshpilkin
Python
Code
135
401
from getopt import GetoptError, getopt from socket import gethostbyname from sys import stderr from typing import List, NoReturn from ..io import DVRIPClient from . import EX_USAGE, EX_NOHOST, guard, osexit, prog def usage() -> NoReturn: print('Usage: {} discover'.format(prog()), file=stderr) exit(EX_USAGE) def r...
22,023
https://github.com/grafana/snap-plugin-collector-kubestate/blob/master/kubestate/node.go
Github Open Source
Open Source
Apache-2.0
2,017
snap-plugin-collector-kubestate
grafana
Go
Code
327
1,025
package kubestate import ( "time" "github.com/intelsdi-x/snap-plugin-lib-go/v1/plugin" "k8s.io/client-go/pkg/api/v1" ) type nodeCollector struct { } const ( minNodeNamespaceSize = 6 ) func (*nodeCollector) Collect(mts []plugin.Metric, node v1.Node) ([]plugin.Metric, error) { metrics := make([]plugin.Metric, 0...
8,257
https://github.com/safe-space-lambda/Front-end-Lenna/blob/master/safespace/src/views/SignUpView.js
Github Open Source
Open Source
MIT
null
Front-end-Lenna
safe-space-lambda
JavaScript
Code
21
49
import React from 'react'; import SignUpForm from '../components/SignUpForm'; const SignUpView = () => { return <SignUpForm />; } export default SignUpView;
11,351
https://github.com/chrisng93/batcher/blob/master/app/src/components/Songs.jsx
Github Open Source
Open Source
MIT
2,017
batcher
chrisng93
null
Spoken
209
813
import React, { Component, PropTypes as T } from 'react'; const propTypes = { songs: T.array, isDownloading: T.bool, downloadSuccess: T.bool, downloadError: T.bool, downloadSongs: T.func, }; export default class Songs extends Component { constructor(props) { super(props); this.state = { son...
23,276
https://github.com/ChrisCummins/chriscummins.cc/blob/master/www/lib/template.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,013
chriscummins.cc
ChrisCummins
PHP
Code
313
828
<?php /* * Content templating. * * Provides an API for creating and rendering templates. */ class Pip_Template { private $name; private $template; public function __construct( $name, $engine = null ) { $this->name = $name; if ( null == $engine ) $engine = new Pip_Template_Engine(); $this->template...
2,151
https://github.com/gotman-t/PicDrivers/blob/master/src/Config/Dio_Cfg.h
Github Open Source
Open Source
MIT
null
PicDrivers
gotman-t
C
Code
24
84
#ifndef DIO_CFG_H #define DIO_CFG_H typedef enum { DIO_RA2, DIO_RA4, NUM_DIO, } DioType; // NOTE : NEED UPDATE DEFINITION OF "NUM_DIO" #endif /* DIO_CFG_H */
44,867
https://github.com/dangw37/ant-design-icons/blob/master/packages/icons-vue/src/icons/RightSquareTwoTone.jsx
Github Open Source
Open Source
MIT
2,020
ant-design-icons
dangw37
JavaScript
Code
38
135
// GENERATE BY ./scripts/generate.js // DON NOT EDIT IT MANUALLY import Icon from '../components/AntdIcon'; import RightSquareTwoToneSvg from '@ant-design/icons-svg/lib/asn/RightSquareTwoTone'; const RightSquareTwoTone = (_, { attrs }) => { return <Icon {...attrs} icon={RightSquareTwoToneSvg}></Icon>; }; RightSqua...
22,421
https://github.com/plumdeq/neuro-onto-part/blob/master/compute_clusters.py
Github Open Source
Open Source
Apache-2.0
2,020
neuro-onto-part
plumdeq
Python
Code
782
2,975
# coding:utf8 """ copyright Asan AGIBETOV <asan.agibetov@gmail.com> Takes on input embeddings: word1 x1 x2 * compute aggregated vectors * output clusters per set of words """ # Standard-library imports import time import functools as fun import logging import os import shlex import subprocess logging.basicConfig(l...
14,152
https://github.com/peteboere/css-crush/blob/master/jsconfig.json
Github Open Source
Open Source
MIT
2,023
css-crush
peteboere
null
Spoken
35
154
{ "include": [ "./js/index.js" ], "exclude": [ "node_modules", ], "compilerOptions": { "allowSyntheticDefaultImports": true, "baseUrl": ".", "checkJs": true, "declaration": true, "emitDeclarationOnly": true, "maxNodeModuleJsDepth": 0, ...
48,273
https://github.com/mxbialostocki/gatsby-material-ui-dots/blob/master/gatsby-config.js
Github Open Source
Open Source
RSA-MD
null
gatsby-material-ui-dots
mxbialostocki
JavaScript
Code
141
520
module.exports = { siteMetadata: { title: `dots`, description: `A modified Gatsby starter incorporating MAterial-UI and some cool tricks for cool kids.`, author: `@gatsbyjs`, }, plugins: [ `gatsby-plugin-react-helmet`, { resolve: `gatsby-source-filesystem`, options: { name:...
46,917
https://github.com/avi-pal/al-go-rithms/blob/master/greedy/MinNoOfBrackets/MinimumSwapOfBracket.java
Github Open Source
Open Source
CC0-1.0
2,022
al-go-rithms
avi-pal
Java
Code
139
402
import java.util.Stack; public class MinimumSwapOfBracket { public static void main(String[] args) { String s = "[[][]]"; boolean bool = isBalanced(s); System.out.println(bool); } public static boolean isBalanced (String s) { Stack<Character> stack = new Stack<>(); for(int i=0 ; i < s.lengt...
21,045
https://github.com/mkinsner/llvm/blob/master/llvm/test/CodeGen/PowerPC/funnel-shift.ll
Github Open Source
Open Source
Apache-2.0
2,022
llvm
mkinsner
LLVM
Code
5,858
17,868
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc < %s -mtriple=ppc32-- | FileCheck %s --check-prefixes=CHECK,CHECK32,CHECK32_32 ; RUN: llc < %s -mtriple=ppc32-- -mcpu=ppc64 | FileCheck %s --check-prefixes=CHECK,CHECK32,CHECK32_64 ; RUN: llc < %s -mtriple=powerpc64le-- | FileCheck...
33,652
https://github.com/biotorrents/gazelle/blob/master/sections/schedule/every/update_recently_uploaded_torrents_swarms.php
Github Open Source
Open Source
Unlicense
2,022
gazelle
biotorrents
PHP
Code
159
459
<?php #declare(strict_types=1); // peerupdate.php is apparently shit so this is a crappy bandaid to fix the problem of // all the cached "0 seeds" on the first search page from peerupdate missing the changes. // It used to be in a sandbox that I just ran whenever I saw something wrong with // the first search page, bu...
44,467
https://github.com/tasty0tomato/ssd/blob/master/2018302120081-ssd-exercise5/Exercise3/src/SimulationServlet.java
Github Open Source
Open Source
MIT
2,020
ssd
tasty0tomato
Java
Code
216
787
// // Source code recreated from a .class file by IntelliJ IDEA // (powered by Fernflower decompiler) // import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.Map; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; impo...
24,062
https://github.com/harsha69462/eztrainings.net/blob/master/application/views/admin/register.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,020
eztrainings.net
harsha69462
PHP
Code
326
1,428
<div class="container"> <?php if (isset($_SESSION['success'])): ?> <div class="alert alert-success"> <?php echo $this->session->flashdata('success'); ?> </div> <?php endif; ?> </div> <div class="container"> <?php if (isset($_SESSION['error'])): ?> <div class="alert alert-danger"> ...
40,239
https://github.com/MeasureAuthoringTool/MeasureAuthoringTool/blob/master/src/main/java/mat/client/clause/ModifyQDMDialogBox.java
Github Open Source
Open Source
CC0-1.0
2,023
MeasureAuthoringTool
MeasureAuthoringTool
Java
Code
200
821
package mat.client.clause; import com.google.gwt.event.logical.shared.CloseEvent; import com.google.gwt.event.logical.shared.CloseHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.HasHorizontalAlignment; import com.google.gwt.us...
25,606
https://github.com/AnimatorPro/Animator-Pro/blob/master/src/PJ/fli/readfirs.c
Github Open Source
Open Source
BSD-3-Clause
2,022
Animator-Pro
AnimatorPro
C
Code
71
186
#include "fli.h" Errcode pj_fli_read_first(char *fname, /* optional name for reporting * errors, will not report * if NULL */ Flifile *flif, struct rcel *fscreen, Boolean colors ) /* update hw color map??? */ /* Seek to the first frame then call fli_read_next()...
36,341
https://github.com/Broekman/EIPScanner/blob/master/examples/ParameterObjectExample.cpp
Github Open Source
Open Source
MIT
null
EIPScanner
Broekman
C++
Code
267
939
// // Created by Aleksey Timin on 12/4/19. // #if defined(_WIN32) || defined(WIN32) || defined(_WIN64) #include <winsock2.h> #define OS_Windows (1) #endif #include "ParameterObject.h" #include "utils/Logger.h" #include "utils/Buffer.h" using namespace eipScanner::cip; using eipScanner::SessionInfo; using eipScanner:...
33,388
https://github.com/musotec/stonky/blob/master/android/core/src/main/java/tech/muso/demo/common/entity/Profile.kt
Github Open Source
Open Source
MIT
2,021
stonky
musotec
Kotlin
Code
24
48
package tech.muso.demo.common.entity data class Profile(val logoUrl: String) { // data class only contains a logo url, but could hold child objects, queries, etc. }
3,631
https://github.com/apple-oss-distributions/apache_mod_perl1/blob/master/mod_perl/t/net/perl/io/redir2.pl
Github Open Source
Open Source
Apache-1.1
2,007
apache_mod_perl1
apple-oss-distributions
Perl
Code
10
35
#!perl use strict; my $r = shift; $r->send_http_header('text/plain'); print "OK";
9,961
https://github.com/egorpushkin/neurolab/blob/master/sdk/source/Src/Projects/AreasBuilder/GuiLib/GuiLinkButton.h
Github Open Source
Open Source
MIT, CC-BY-4.0
2,017
neurolab
egorpushkin
C++
Code
241
879
/**************************************************************************** * * * GuiToolKit * * (MFC extension) * * Created by Francisco Campos G. www.beyondata.com fcampos@beyondata.com * *------------------------------------------------------------------...
41,469
https://github.com/SafetyCone/R5T.D0048/blob/master/source/R5T.D0048.A001/Code/Services/Aggregations/Interfaces/IServiceActionAggregation01.cs
Github Open Source
Open Source
MIT
null
R5T.D0048
SafetyCone
C#
Code
62
260
using System; using R5T.D0106.D002; using R5T.T0063; using R5T.D0048.D002; namespace R5T.D0048.A001 { /// <summary> /// Aggregation for <see cref="Default.OutputFilePathProvider"/>. /// </summary> public interface IServiceActionAggregation01 { IServiceAction<IProcessDirectoryNameProvide...
33,558
https://github.com/opengauss-mirror/Yat/blob/master/openGaussBase/testcase/KEYWORDS/checked/Opengauss_Function_Keyword_Checked_Case0034.sql
Github Open Source
Open Source
MulanPSL-1.0
null
Yat
opengauss-mirror
SQL
Code
82
250
-- @testpoint:opengauss关键字checked(非保留),作为游标名 --前置条件 drop table if exists checked_test cascade; create table checked_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor checked for select * from checked_test order by 1; close checked; end; --关键字带双引号-成功 start transaction; cursor "checked" for select * from c...
50,702
https://github.com/solpaul/fpl-prediction/blob/master/notebooks/.ipynb_checkpoints/00_fpl_features-checkpoint.ipynb
Github Open Source
Open Source
MIT
2,022
fpl-prediction
solpaul
Jupyter Notebook
Code
20,000
87,043
{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import os\n", "import sys\n", "from pathlib import Path\n", "from IPython.display import display\n", "\n", "sys.path.append('..')" ] }, { "cell_type": "code", "execution...
14,835
https://github.com/arushmangal/Hack-CP-DSA/blob/master/Leetcode/Reorder List/solution.cpp
Github Open Source
Open Source
MIT
2,022
Hack-CP-DSA
arushmangal
C++
Code
201
519
/** Approach:First find the center, reverse the second half and combine two lists by apppending one from each. **/ /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ...
25,664
https://github.com/fmisir/tractusx/blob/master/meta-broker/open-index-common/src/main/java/de/fraunhofer/iais/eis/ids/index/common/persistence/Indexing.java
Github Open Source
Open Source
Apache-2.0
2,021
tractusx
fmisir
Java
Code
384
655
package de.fraunhofer.iais.eis.ids.index.common.persistence; import de.fraunhofer.iais.eis.InfrastructureComponent; import de.fraunhofer.iais.eis.Participant; import java.io.IOException; import java.net.URI; /** * Interface for providing indexing functionality for infrastructure components and participants * Note ...
42,063
https://github.com/PushmanPHP/pushman/blob/master/resources/views/settings/index.blade.php
Github Open Source
Open Source
MIT
2,019
pushman
PushmanPHP
PHP
Code
77
375
@extends('app') @section('content') <div class="row"> <div class="col-lg-12"> <h1>Settings</h1> {!! Form::open(['class' => 'form-horizontal']) !!} <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title">Locale</h3> </div> <div class="panel-body"> ...
52,099
https://github.com/Yuxin916/NTU-MA4830-RealtimeSoftwareForMechatronicSystems/blob/master/ca2/functions/timer.h
Github Open Source
Open Source
Apache-2.0
2,022
NTU-MA4830-RealtimeSoftwareForMechatronicSystems
Yuxin916
C
Code
36
87
//****************************************************************************** // Timer Functions // TimerInitialization: Initialize a timer with default configuration values // UpdateTimer: Update timer countdown if there is a change in wave parameters //**************************************************************...
29,197
https://github.com/zombiezen/sandpass/blob/master/pkg/kdbcrypt/kdbcrypt_test.go
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, Apache-2.0
2,022
sandpass
zombiezen
Go
Code
359
1,198
// Copyright 2016 The Sandpass 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 agre...
17,388
https://github.com/menonsamir/CBG-replication/blob/master/mercator.py
Github Open Source
Open Source
MIT
2,019
CBG-replication
menonsamir
Python
Code
167
499
import math def get_tile_box(zoom, x, y): """convert Google-style Mercator tile coordinate to (minlat, maxlat, minlng, maxlng) bounding box""" minlat, minlng = get_tile_lat_lng(zoom, x, y + 1) maxlat, maxlng = get_tile_lat_lng(zoom, x + 1, y) return (minlat, maxlat, minlng, maxlng) def get_tile_...
13,658
https://github.com/neraken/Spassssss/blob/master/spassss/Assets/Scripts/sparksController.cs
Github Open Source
Open Source
CC-PDDC
2,015
Spassssss
neraken
C#
Code
60
178
using UnityEngine; using System.Collections; public class sparksController : MonoBehaviour { private ParticleSystem[] sparks; // Use this for initialization void Start () { sparks = GetComponents <ParticleSystem> (); } // Update is called once per frame void Update () { transform.Rotate (Vector3.up * 10...
19,961
https://github.com/amfranz/spacemacs.d/blob/master/layers/my-editorconfig/funcs.el
Github Open Source
Open Source
MIT
2,019
spacemacs.d
amfranz
null
Spoken
23
71
;; -*- lexical-binding: t -*- (defun my-editorconfig//announce-changes (props) (maphash (lambda (key value) (when my-editorconfig-verbose (message "editorconfig set %s to %s" key value))) props))
41,151
https://github.com/anothergituser/laravel-4.2-snippets/blob/master/snippets/Route-close.cson
Github Open Source
Open Source
MIT
2,015
laravel-4.2-snippets
anothergituser
CoffeeScript
Code
6
39
'.source.php': 'Route-close': 'prefix': 'Route-close' 'body': 'Route::close(${1:callback})'
37,665
https://github.com/operationalsystems/tr069-simulator/blob/master/src/main/java/org/dslforum/cwmp_1_0/ScheduleInformResponse.java
Github Open Source
Open Source
MIT
2,019
tr069-simulator
operationalsystems
Java
Code
35
145
package org.dslforum.cwmp_1_0; /** * ScheduleInformResponse message - Annex A.4.1.2 * * Schema fragment(s) for this class: * <pre> * &lt;xs:element xmlns:ns="urn:dslforum-org:cwmp-1-0" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="ScheduleInformResponse"> * &lt;xs:complexType/> * &lt;/xs:element> * </...
15,599
https://github.com/sadeemkhalaf/can-it-be-done-in-react-native/blob/master/season4/patches/react-native-reanimated+2.0.0-rc.0.patch
Github Open Source
Open Source
MIT
2,021
can-it-be-done-in-react-native
sadeemkhalaf
null
Spoken
926
2,713
diff --git a/node_modules/react-native-reanimated/react-native-reanimated.d.ts b/node_modules/react-native-reanimated/react-native-reanimated.d.ts index 29561c5..af4ac6f 100644 --- a/node_modules/react-native-reanimated/react-native-reanimated.d.ts +++ b/node_modules/react-native-reanimated/react-native-reanimated.d.ts...
47,903
https://github.com/curieos/Grow.local-esp/blob/master/test/test_embedded/test_sensor.cpp
Github Open Source
Open Source
MIT
2,021
Grow.local-esp
curieos
C++
Code
104
329
/* * File: test_thing.cpp * Project: test_embedded * File Created: Tuesday, 16th June 2020 18:32:27 * Author: Caroline (caroline@curieos.com) * ----- * Last Modified: Tuesday June 16th 2020 19:57:33 * Modified By: Caroline * ----- * License: MIT License */ #include <Arduino.h> #include <unity.h> #include "p...
45,027
https://github.com/SobekCM/SobekCM-Web-Application/blob/master/SobekCM_Core/Builder/Incoming_Digital_Resource.cs
Github Open Source
Open Source
MIT
2,023
SobekCM-Web-Application
SobekCM
C#
Code
2,512
6,505
#region Using directives using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using SobekCM.Core.Settings; using SobekCM.Resource_Object; using SobekCM.Resource_Object.Bib_Info; using SobekCM.Resource_Object.Database; using SobekCM.Resource_Object.Divisions; using Sobe...
24,220
https://github.com/KlausLoeffelmann/NetControlDesigners/blob/master/src/TileRepeater/TileRepeater.Designer.Server/TemplateAssignmentCollectionEditor/Handler/TemplateAssignmentCollectionEditorOkClickHandler.cs
Github Open Source
Open Source
MIT
null
NetControlDesigners
KlausLoeffelmann
C#
Code
36
219
using Microsoft.DotNet.DesignTools.Protocol.Endpoints; using System.Diagnostics; using WinForms.Tiles.Designer.Protocol.Endpoints; namespace WinForms.Tiles.Designer.Server.TemplateAssignmentCollectionEditor.Handler { [ExportRequestHandler(EndpointNames.TemplateAssignmentCollectionEditorOKClick)] internal clas...
23,515
https://github.com/hoangtien1005/animene/blob/master/src/utils/constants.js
Github Open Source
Open Source
MIT
2,022
animene
hoangtien1005
JavaScript
Code
549
2,567
// base urls export const ANIME_BASE_URL = process.env.REACT_APP_ANIME_BASE_URL export const SERVER_BASE_URL = process.env.REACT_APP_SERVER_BASE_URL || "http://localhost:5000" export const ANILIST_BASE_URL = process.env.REACT_APP_ANILIST_BASE_URL export const CARD_TYPES = { DEFAULT: "default", SQUARE: "square", ...
26,752
https://github.com/donvvo/MedicalApp/blob/master/MedicalApp/MedicalForms/patient_forms.py
Github Open Source
Open Source
BSD-3-Clause
2,016
MedicalApp
donvvo
Python
Code
157
674
from django import forms from .models import * class PatientInformationForm(forms.ModelForm): class Meta: model = PatientInformation exclude = ('patient', 'last_modified') widgets = { 'pain': forms.CheckboxSelectMultiple() } class HealthHistoryForm(forms.ModelForm): ...
43,431
https://github.com/chenguzhen87/mintscan-binance-dex-frontend/blob/master/src/components/common/Decimal/Decimal.scss
Github Open Source
Open Source
Apache-2.0
2,020
mintscan-binance-dex-frontend
chenguzhen87
SCSS
Code
16
55
.DecimalDisplay { position: relative; display: flex; align-items: flex-end; .decimal { vertical-align: bottom; position: relative; } }
16,657
https://github.com/ProSuite/ProSuite/blob/master/src/ProSuite.QA.Container/TestSupport/IValidRelationConstraint.cs
Github Open Source
Open Source
MIT
2,022
ProSuite
ProSuite
C#
Code
33
120
using ESRI.ArcGIS.Geodatabase; using ProSuite.Commons.Essentials.CodeAnnotations; namespace ProSuite.QA.Container.TestSupport { public interface IValidRelationConstraint { bool HasConstraint { get; } bool IsFulfilled([NotNull] IRow row1, int tableIndex1, [NotNull] IRow row2, int tableIndex2, ...
30,435
https://github.com/companyapproach19/companyApproach19-2/blob/master/src/main/java/equipo5/model/NotInDatabaseException.java
Github Open Source
Open Source
MIT
2,019
companyApproach19-2
companyapproach19
Java
Code
14
40
package equipo5.model; public class NotInDatabaseException extends Throwable { public NotInDatabaseException(String mensaje) { } }
1,771
https://github.com/LuciferDarkStar/USTC_2020_Compiler_Lab_cminus-f/blob/master/src/io/io.c
Github Open Source
Open Source
MIT
2,021
USTC_2020_Compiler_Lab_cminus-f
LuciferDarkStar
C
Code
36
118
#include <stdio.h> #include <stdlib.h> int input() { int a; scanf("%d", &a); return a; } void output(int a) { printf("%d\n", a); } void outputFloat(float a) { printf("%f\n", a); } void neg_idx_except() { printf("negative index exception\n"); exit(0); }
10,025
https://github.com/karinakozarova/MediaBazar/blob/master/WindowsFormsApp1/WindowsFormsApp1/HiringRequest.cs
Github Open Source
Open Source
MIT
null
MediaBazar
karinakozarova
C#
Code
83
261
using System; using System.Collections.Generic; using System.Windows.Forms; namespace MediaBazar { public partial class HiringRequest : Form { public HiringRequest(string username, string firstName, string lastName, decimal hourlyWage, int departmentId, DateTime contractStartDate, long phoneNumber, st...
12,145
https://github.com/koynoyno/chinese-tab/blob/master/background.js
Github Open Source
Open Source
MIT
null
chinese-tab
koynoyno
JavaScript
Code
205
568
chrome.runtime.onInstalled.addListener(function (details) { if (details.reason === "install") { // TODO sync after install, leave only cache chrome.storage.sync.set({ hsk: "hsk2", level: "hsk1", char: "simplified", dayLimit: "5", date: new Date().getDate(), // date: new Dat...
26,324
https://github.com/zhanguochunqiu/mall-swarm/blob/master/mall-common/src/main/java/com/macro/mall/common/constant/AuthConstant.java
Github Open Source
Open Source
Apache-2.0
2,022
mall-swarm
zhanguochunqiu
Java
Code
90
372
package com.macro.mall.common.constant; /** * 权限相关常量定义 * Created by macro on 2020/6/19. */ public interface AuthConstant { /** * JWT存储权限前缀 */ String AUTHORITY_PREFIX = "ROLE_"; /** * JWT存储权限属性 */ String AUTHORITY_CLAIM_NAME = "authorities"; /** * 后台管理client_id */...
7,791
https://github.com/prashantdoshi28/guava/blob/master/guava/src/com/google/common/collect/CompactHashing.java
Github Open Source
Open Source
Apache-2.0
null
guava
prashantdoshi28
Java
Code
905
1,937
/* * Copyright (C) 2019 The Guava 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 agre...
39,018
https://github.com/miyvrey2/GCevent/blob/master/resources/views/backend/page/edit.blade.php
Github Open Source
Open Source
MIT
null
GCevent
miyvrey2
PHP
Code
213
818
@extends('backend.layouts.master') @section('seo') @component("components.seo", [ "title" => "Edit page: " . $page->title, "url" => url('admin/pages/' . $page->slug . '/edit'), "description" => "Edit page: " . $page->title ] ) @endcomponent @endsection @section('content') <section id="fea...
6,851
https://github.com/thedonmon/telnyx-dotnet/blob/master/src/TelnyxTests/Services/Calls/CallCommands/Transfer/CallControlTransferServiceTest.cs
Github Open Source
Open Source
MIT
null
telnyx-dotnet
thedonmon
C#
Code
128
605
// <copyright file="CallControlTransferServiceTest.cs" company="Telnyx"> // Copyright (c) Telnyx. All rights reserved. // </copyright> namespace TelnyxTests.Services.Calls.CallCommands { using System.Net.Http; using System.Threading.Tasks; using Telnyx; using Xunit; public class CallControlTransf...
32,110
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/v/vexflow/src/main/scala/typingsSlinky/vexflow/anon/Fret.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
86
303
package typingsSlinky.vexflow.anon import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} @js.native trait Fret extends StObject { var fret: Double = js.native var str: Doub...
18,532
https://github.com/jrogeriosilva/KenoBetGame/blob/master/src/KenoBet.cpp
Github Open Source
Open Source
MIT
2,021
KenoBetGame
jrogeriosilva
C++
Code
302
1,077
// // Created by joser on 03/07/2021. // #include <iostream> #include <cstdlib> #include <algorithm> #include "../include/KenoBet.h" #include <random> void KenoBet::randomizeBalls() { std::random_device r; balls.clear(); for (int i = 0; i < LIMIT;i++) { balls.push_back(i+1); } std::shu...
3,586
https://github.com/tinchodias/hunter/blob/master/src/Hunter.package/HNNoOpVisitor.class/instance/visitFunctionDeclaration..st
Github Open Source
Open Source
MIT
2,021
hunter
tinchodias
null
Spoken
3
11
visiting visitFunctionDeclaration: aNode
46,668
https://github.com/moutainhigh/project-6/blob/master/aish/aish_common/src/main/java/com/inext/constants/IdCardBizConstant.java
Github Open Source
Open Source
Apache-2.0
2,019
project-6
moutainhigh
Java
Code
73
249
package com.inext.constants; /** * @author licheng * @version 1.0 * @Title IdCardBizConstant.java * @description 身份证相关常量定义 * @time 2017年12月11日 下午5:26:18 */ public class IdCardBizConstant { public static String IDCARD_MAX_VALUE = "idcard:maxValue:"; public static String IDCARD_DAY = "idcard:dayValue"; ...
11,426
https://github.com/gaseguraj/bmds-server/blob/master/project/jobrunner/admin.py
Github Open Source
Open Source
MIT
2,018
bmds-server
gaseguraj
Python
Code
19
67
from django.contrib import admin from . import models class JobAdmin(admin.ModelAdmin): list_display = ("id", "created", "started", "ended", "is_finished") admin.site.register(models.Job, JobAdmin)
45,248
https://github.com/chiunhau/basvelte-ui/blob/master/src/list/styled/Content.svelte
Github Open Source
Open Source
MIT
2,021
basvelte-ui
chiunhau
null
Spoken
66
239
<script> import Div from '../../common/Div.svelte'; import { expandBorderStyles } from '../../styles/utils'; </script> <Div styled="{({ $mLeft, $sublist, $theme }) => { return { ...expandBorderStyles($theme.borders.border100), alignItems: 'center', borderTopStyle: 'none', borderRightStyle...
32,547
https://github.com/DrTTom/GordicKnot/blob/master/src/main/java/de/tautenhahn/dependencies/rest/ImpliedByNode.java
Github Open Source
Open Source
Apache-2.0, MIT
2,021
GordicKnot
DrTTom
Java
Code
256
764
package de.tautenhahn.dependencies.rest; import java.util.Objects; import java.util.Optional; import de.tautenhahn.dependencies.analyzers.BasicGraphOperations; import de.tautenhahn.dependencies.analyzers.DiGraph; import de.tautenhahn.dependencies.analyzers.DiGraph.IndexedNode; /** * Filters for all those nodes whi...
2,770
https://github.com/mlaursen/react-md/blob/master/packages/autocomplete/src/types.ts
Github Open Source
Open Source
MIT
2,023
react-md
mlaursen
TypeScript
Code
1,571
2,778
import type { CSSProperties, ReactNode } from "react"; import type { ListboxOptionProps, TextFieldProps } from "@react-md/form"; import type { RenderConditionalPortalProps } from "@react-md/portal"; import type { CalculateFixedPositionOptions, CaseInsensitiveOptions, PositionWidth, } from "@react-md/utils"; /** ...
23,158
https://github.com/peterwankman/vice/blob/master/vice/pvtable.c
Github Open Source
Open Source
WTFPL
2,021
vice
peterwankman
C
Code
463
1,692
/* * VICE -- Video Instructions Chess Engine * (C) 2013 Bluefever Software * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as ...
28,010
https://github.com/kencan7749/particles_detection_fsr/blob/master/voxel_classification/utils/segment_scan.py
Github Open Source
Open Source
MIT
2,021
particles_detection_fsr
kencan7749
Python
Code
171
825
import sys sys.path.insert(0, '../src') from config import cfg import numpy as np def segment_scan(pcl, output, output_proba_mean=None, output_proba_std=None): # Translation from map to robot_footprint husky_footprint_coord = np.array([cfg.MAP_TO_VELO_X, cfg.MAP_TO_VELO_Y, cfg.MAP_TO_VELO_Z], ...
7,913
https://github.com/vrx-/xroms/blob/master/xroms/tests/test_accessor.py
Github Open Source
Open Source
MIT
null
xroms
vrx-
Python
Code
1,132
5,047
"""Test accessor functions by ensuring accessor and xroms functions return same values.""" import cartopy import numpy as np import xarray as xr from xgcm import grid as xgrid import xroms grid1 = xr.open_dataset("xroms/tests/input/grid.nc") # ds = xroms.open_netcdf('xroms/tests/input/ocean_his_0001.nc') ds = xr.o...
26,244
https://github.com/mithro/skywater-pdk-libs-sky130_fd_sc_hd/blob/master/models/udp_pwrgood_l_pp_pg_s/sky130_fd_sc_hd__udp_pwrgood_l_pp_pg_s.table.tsv
Github Open Source
Open Source
Apache-2.0
2,021
skywater-pdk-libs-sky130_fd_sc_hd
mithro
TSV
Code
67
152
UDP_IN VPWR VGND SLEEP : out Comments 0 1 0 ? : 0 1 1 0 0 : 1 x 1 0 0 : x ? 0 0 0 : x ? 1 1 0 : x ? x 0 0 : x ? 1 x 0 : x ? ? 0 1 : 0 ? ? 1 1 : x ? ? x 1 : x
38,740
https://github.com/fabiokung/titus-control-plane/blob/master/titus-server-gateway/src/main/java/com/netflix/titus/gateway/service/v3/internal/DefaultAgentManagementService.java
Github Open Source
Open Source
Apache-2.0
2,018
titus-control-plane
fabiokung
Java
Code
443
2,166
/* * Copyright 2018 Netflix, 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 t...
2,652
https://github.com/Steph55/DirectN/blob/master/DirectN/DirectN/Generated/tagCHARSETINFO.cs
Github Open Source
Open Source
MIT
2,022
DirectN
Steph55
C#
Code
29
118
// c:\program files (x86)\windows kits\10\include\10.0.22000.0\um\wingdi.h(973,9) using System; using System.Runtime.InteropServices; namespace DirectN { [StructLayout(LayoutKind.Sequential)] public partial struct tagCHARSETINFO { public uint ciCharset; public uint ciACP; public ta...
462
https://github.com/amycen/keys-of-hash-prework/blob/master/lib/keys_of_hash.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
keys-of-hash-prework
amycen
Ruby
Code
33
73
require "pry" class Hash def keys_of(*arguments) # code goes here keys = [] arguments.each do |val| self.map { |k, v| v== val ? keys << k : nil }.compact end keys end end
46,611
https://github.com/looossssssss/lambeq/blob/master/lambeq/ccg2discocat/ccg_parser.py
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,021
lambeq
looossssssss
Python
Code
473
1,161
# Copyright 2021 Cambridge Quantum Computing Ltd. # # 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...
48,484
https://github.com/sebald/distractedbysquirrels.com/blob/master/_plugins/pretty_date.rb
Github Open Source
Open Source
MIT
2,014
distractedbysquirrels.com
sebald
Ruby
Code
95
332
module PrettyDateFilter # Returns a datetime if the input is a string def datetime(date) if date.class == String date = Time.parse(date) end date end # Returns an ordidinal date eg July 22 2007 -> July 22nd 2007 def ordinalize(date) date = datetime(date) "#{date.strftime('%b')} #{ordinal(date...
31,637
https://github.com/QuickyVickky/bd_laravel/blob/master/app/Http/Controllers/Admin/CustomerController.php
Github Open Source
Open Source
MIT
null
bd_laravel
QuickyVickky
PHP
Code
3,323
12,984
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use Illuminate\Http\Request; use Session; date_default_timezone_set('Asia/Kolkata'); use App\Models\Customer; use App\Models\CustomerAddress; use App\Models\AccessToken; use App\Models\ShortHelper; use Carbon\Carbon; use Illuminate\Suppo...
47,164
https://github.com/cmmoran/StringManipulation/blob/master/test/osmedile/intellij/stringmanip/styles/CaseSwitchingTest.java
Github Open Source
Open Source
Apache-2.0
null
StringManipulation
cmmoran
Java
Code
45
179
package osmedile.intellij.stringmanip.styles; import com.intellij.openapi.diagnostic.Logger; import org.junit.After; import org.junit.Before; import osmedile.intellij.stringmanip.CaseSwitchingSettings; public abstract class CaseSwitchingTest { private static final Logger LOG = com.intellij.openapi.diagnostic.Logger....
23,637
https://github.com/Lucianoj/puro_perro/blob/master/controllers/CasosExitoController.php
Github Open Source
Open Source
BSD-3-Clause
null
puro_perro
Lucianoj
PHP
Code
397
1,257
<?php namespace app\controllers; use Yii; use app\models\CasosExito; use app\models\search\CasosExitoSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use app\models\Aviso; use app\models\Perro; use yii\web\UploadedFile; /** * CasosExitoController implements the CRUD act...
50,150
https://github.com/dpgranger8/DeathSwap/blob/master/src/main/java/com/github/pocketkid2/deathswap/commands/DeathSwapSetWorldCommand.java
Github Open Source
Open Source
MIT
null
DeathSwap
dpgranger8
Java
Code
53
217
package com.github.pocketkid2.deathswap.commands; import org.bukkit.ChatColor; import org.bukkit.entity.Player; import com.github.pocketkid2.deathswap.DeathSwapPlugin; public class DeathSwapSetWorldCommand extends DeathSwapSubCommand { public DeathSwapSetWorldCommand(DeathSwapPlugin p) { super(p); } @Override...
34,510
https://github.com/wyz5120/VMovie/blob/master/VMovie/VMovie/Vendor/YZPlayer/YZVideoSlider.m
Github Open Source
Open Source
MIT
2,016
VMovie
wyz5120
Objective-C
Code
34
116
// // YZVideoSilder.m // MoviePlayer // // Created by wyz on 16/4/8. // Copyright © 2016年 wyz. All rights reserved. // #import "YZVideoSlider.h" @implementation YZVideoSlider - (CGRect)trackRectForBounds:(CGRect)bounds { return CGRectMake(0, 0,self.width, 4); } @end
49,342
https://github.com/sunyoboy/leetcode/blob/master/soap/src/main/java/com/javase/cxf/spring/soap/impl/HelloServiceImpl.java
Github Open Source
Open Source
Apache-2.0
null
leetcode
sunyoboy
Java
Code
36
118
package com.javase.cxf.spring.soap.impl; import com.javase.cxf.soap.HelloService; import org.springframework.stereotype.Component; import javax.jws.WebService; /** * Created by root on 11/26/16. */ @WebService @Component public class HelloServiceImpl implements HelloService { public String say(String name) { ...
19,892
https://github.com/hoodmane/sseq/blob/master/ext/src/chain_complex/finite_chain_complex.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
sseq
hoodmane
Rust
Code
783
2,651
use crate::chain_complex::{AugmentedChainComplex, BoundedChainComplex, ChainComplex}; use algebra::module::homomorphism::{ModuleHomomorphism, ZeroHomomorphism}; use algebra::module::{Module, ZeroModule}; use std::sync::Arc; pub struct FiniteChainComplex<M, F> where M: Module, F: ModuleHomomorphism<Source = M, ...
19,788
https://github.com/toanleviet95/my-chotot-design-system/blob/master/src/components/SlickWrapper/index.jsx
Github Open Source
Open Source
MIT
2,021
my-chotot-design-system
toanleviet95
JavaScript
Code
105
373
import { styled } from '@linaria/react' export default styled.div` h3 { background: green; height: 150px; border: 1px solid yellow; } .slick-prev { display: block; position: absolute; background: url(https://static.chotot.com/storage/default/slide-prev.svg) 50% no-repeat; left: -18px; z-index: 11; ba...
50,833
https://github.com/pdebruic/Highcharts/blob/master/repository/HighstockStAutoGenerated.package/HighstockSeriesColumnrange.class/instance/dataLabels..st
Github Open Source
Open Source
MIT
null
Highcharts
pdebruic
null
Spoken
49
79
as yet unclassified dataLabels: anObject "Extended data labels for range series types. Range series data labels have no x and y options. Instead, they have xLow , xHigh , yLow and yHigh options to allow the higher and lower data label sets individually. " configurationOptions at: 'dataLabels' put: anObject
46,129
https://github.com/mariocao/bandwidth-sim/blob/master/models/web_on.m
Github Open Source
Open Source
Apache-2.0
2,015
bandwidth-sim
mariocao
MATLAB
Code
113
729
function [ total_size ] = web_on( ) %WEB_ON Summary of this function goes here % Detailed explanation goes here %http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=6252145 %NUMBER OF MAIN OBJECTS main_object_number_max=212; main_object_number=round(lognrnd(0.473844,0.68847)); %main_object_number_max_exceed...
46,980
https://github.com/iwaitu/surging/blob/master/src/Suriging.Identity/Surging.Identity.Core/Models/SurgingUser.cs
Github Open Source
Open Source
MIT
2,018
surging
iwaitu
C#
Code
206
593
using Microsoft.AspNetCore.Identity; using System; using System.ComponentModel.DataAnnotations; namespace Surging.Identity.Core.Models { public class SurgingUser : IdentityUser { /// <summary> /// 真是姓名 /// </summary> public string PersonName { get; set; } /// <summary...
779
https://github.com/dalalsunil1986/Computer-Science-Degree/blob/master/001_IntroductionToCS&ProgrammingUsingPython/Extra_Problems/fibonacci.py
Github Open Source
Open Source
MIT
2,020
Computer-Science-Degree
dalalsunil1986
Python
Code
28
73
""" @author: Anirudh Sharma """ def fibonacci(n): if n == 0 or n == 1: return 1 else: return fibonacci(n - 1) + fibonacci (n - 2) print(fibonacci(7))
7,169
https://github.com/liuyong888/cinema/blob/master/resources/views/Admin/Member/edit.blade.php
Github Open Source
Open Source
MIT
2,018
cinema
liuyong888
Blade
Code
346
1,754
@extends('Admin.AdminPublic.public') @section('content') <div class="row"> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-title"> 信息修改 <ul class="panel-tools"> <li><a class="icon minimise-tool"><i class="fa fa-minus"></i></a></li> ...
7,488
https://github.com/garyaiki/AkkaAlgebird/blob/master/src/main/scala/com/github/garyaiki/dendrites/reflection/Stub.scala
Github Open Source
Open Source
Apache-2.0
2,020
AkkaAlgebird
garyaiki
Scala
Code
4
22
package com.github.garyaiki.dendrites.reflection trait Stub
27,495
https://github.com/homeboyno/yuming/blob/master/backend/views/notify/_form.php
Github Open Source
Open Source
BSD-3-Clause
2,021
yuming
homeboyno
PHP
Code
86
393
<?php use common\models\Notify; use jackh\material\ActiveForm; use yii\helpers\Html; /* @var $this yii\web\View */ /* @var $model common\models\Notify */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="modal-body notify-form"> <?php $form = ActiveForm::begin();?> <div class="col-xs-6"> <?=$...
51,636
https://github.com/martinmcclure/pharo/blob/master/src/Rubric/RubScrolledTextSideRuler.class.st
Github Open Source
Open Source
MIT
2,019
pharo
martinmcclure
null
Spoken
220
533
" I am an abstract class to add decoration on a text area " Class { #name : #RubScrolledTextSideRuler, #superclass : #RubScrolledTextExtra, #instVars : [ 'side' ], #category : #'Rubric-Editing-Widgets' } { #category : #testing } RubScrolledTextSideRuler >> isHorizontal [ ^ #(#top #bottom) includes: self side ]...
16,742
https://github.com/DmitriK/ff-purge-old-history/blob/master/options.js
Github Open Source
Open Source
MIT
2,018
ff-purge-old-history
DmitriK
JavaScript
Code
26
113
function saveOptions(e) { chrome.storage.local.set({ maxAge: document.getElementById('maxAge').value }); } function restoreOptions() { chrome.storage.local.get('maxAge', (res) => { document.getElementById('maxAge').value = res.maxAge || ''; }); } document.addEventListener('DOMContentLoaded', restoreOptions)...
42,085
https://github.com/tburdett/goci/blob/master/goci-interfaces/goci-curation/src/main/resources/static/js/goci-single-submission.js
Github Open Source
Open Source
Apache-2.0
2,022
goci
tburdett
JavaScript
Code
32
150
$(document).ready(function () { $('#toggleSubmission').click(function () { $('#submissionData').toggle(); }); $('#studyTable').DataTable(); $('#sampleTable').DataTable(); $('#assocTable').DataTable(); $('#loadingResults').hide(); $('#importButton').click(function () { $('#lo...
39,992
https://github.com/masteroke/OKESM/blob/master/assets/js/lib/demos/react/app/navigationbar/events/app.js
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,018
OKESM
masteroke
JavaScript
Code
498
1,572
import React from 'react'; import ReactDOM from 'react-dom'; import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount () { let getName = (index) => { ...
20,645
https://github.com/mannyqiao/enjoy/blob/master/src/Orchard.Web/Modules/Enjoy.Core/Common/Extensions/StringExtension.cs
Github Open Source
Open Source
BSD-3-Clause
null
enjoy
mannyqiao
C#
Code
163
582
 namespace Enjoy.Core { using System; using System.Security.Cryptography; using System.Text; using Orchard.Security; using System.Linq; public static class StringExtension { public static string ToBase64(this string value) { return Convert.ToBase64String(Encodi...
25,330
https://github.com/bhits/c2s-ui-api/blob/master/c2s-ui-api/src/main/java/gov/samhsa/c2s/c2suiapi/service/exception/checkedexceptions/AbstractUserAuthIdException.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,017
c2s-ui-api
bhits
Java
Code
44
118
package gov.samhsa.c2s.c2suiapi.service.exception.checkedexceptions; /* Do NOT annotate this exception with @ResponseStatus. * * This is a checked exception which must be caught and * handled inside of c2s-ui-api. * */ public abstract class AbstractUserAuthIdException extends Exception { AbstractUserAuthIdExcept...
49,798
https://github.com/viethoang0703/blogs/blob/master/public/js/admin.js
Github Open Source
Open Source
MIT
null
blogs
viethoang0703
JavaScript
Code
638
2,712
angular.module('AdminApp', [ 'ngRoute', 'ngSanitize', 'ngResource', 'restangular', 'appRoutes', 'NewsController', 'CategoryController', 'UserController', 'HeaderController', 'NewsService', 'CategoryService', 'UserService', ]) .config(function(RestangularProvider, $httpProvider) { Restangul...
10,001
https://github.com/rohit-nsdl/SunbirdEd-portal/blob/master/src/app/client/src/app/modules/player-helper/components/content-chapterlist/content-chapterlist.component.spec.data.ts
Github Open Source
Open Source
MIT
2,022
SunbirdEd-portal
rohit-nsdl
TypeScript
Code
6
13
export const resourceData = { };
17,723
https://github.com/codetojoy/gists_java/blob/master/powermock_OCT_2020/src/main/java/net/codetojoy/FooDAO.java
Github Open Source
Open Source
Apache-2.0
2,020
gists_java
codetojoy
Java
Code
45
115
package net.codetojoy; public class FooDAO { public static Foo getFoo(int id) { Foo foo = new Foo(); foo.id = id; return foo; } public static Bar getBar(int id) { Bar bar = new Bar(); bar.id = id; bar.timestamp = new java.util.Date().toString(); re...
24,172
https://github.com/didier47/adn-backend/blob/master/microservicio/aplicacion/src/main/java/com/ceiba/item/comando/manejador/ManejadorEliminarItem.java
Github Open Source
Open Source
Apache-2.0
null
adn-backend
didier47
Java
Code
35
189
package com.ceiba.item.comando.manejador; import com.ceiba.item.servicio.ServicioEliminarItem; import com.ceiba.manejador.ManejadorComando; import org.springframework.stereotype.Component; @Component public class ManejadorEliminarItem implements ManejadorComando<Long> { private final ServicioEliminarItem servic...
4,163
https://github.com/governmentbg/crc-roaming/blob/master/web/crc-roaming-ws/src/main/java/bg/infosys/crc/roaming/dto/IPInfoResponseDTO.java
Github Open Source
Open Source
Apache-2.0
null
crc-roaming
governmentbg
Java
Code
255
636
package bg.infosys.crc.roaming.dto; public class IPInfoResponseDTO { private String ip; private String hostname; private String city; private String region; private String country; private String loc; private String org; private String postal; private String timezone; private String readme; public String g...
49,802
https://github.com/rubedos/l4t_R32.5.1_viper/blob/master/kernel/kernel-4.9/drivers/pinctrl/berlin/berlin-bg4ct.c
Github Open Source
Open Source
MIT
null
l4t_R32.5.1_viper
rubedos
C
Code
2,184
11,094
/* * Marvell berlin4ct pinctrl driver * * Copyright (C) 2015 Marvell Technology Group Ltd. * * Author: Jisheng Zhang <jszhang@marvell.com> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by...
5,176
https://github.com/yq2660/CIadmin/blob/master/application/models/Admin_model.php
Github Open Source
Open Source
MIT
2,019
CIadmin
yq2660
PHP
Code
51
227
<?php /** * 管理员 MODEL */ class Admin_model extends CI_Model { public function __construct() { parent::__construct(); $this->load->database(); } /*通过用户名获取用户信息*/ public function get_by_username($username) { $this->db->where('username',$username); $query = $this...
19,790
https://github.com/cryst-al/novoline/blob/master/src/net/minecraft/village/Village.java
Github Open Source
Open Source
Unlicense
2,022
novoline
cryst-al
Java
Code
1,086
4,767
package net.minecraft.village; import com.google.common.collect.Lists; import com.mojang.authlib.GameProfile; import java.util.Iterator; import java.util.List; import java.util.TreeMap; import java.util.UUID; import net.minecraft.block.Block; import net.minecraft.block.BlockDoor; import net.minecraft.block.material.Ma...
16,158
https://github.com/jmmalizon/AppDevSystem-SIS/blob/master/resources/views/dashboards/users/registration.blade.php
Github Open Source
Open Source
MIT
null
AppDevSystem-SIS
jmmalizon
PHP
Code
119
504
@extends('layouts.app') @section('title') PUP Student Portal | Registration @endsection @section('content') <main class="sm:container sm:mx-auto sm:mt-2 text-sm"> <main class="p-6 m-9 bg-white dark:bg-gray-tertiary-dark rounded-xl shadow-md border-t-4 border-red-accent items-center space-x-4 mt-20"> <...
10,264
https://github.com/Trehein/heiness/blob/master/src/BaseComponents/AddExample/AddExample.tsx
Github Open Source
Open Source
MIT
2,023
heiness
Trehein
TSX
Code
63
200
import { useFirestoreCollectionMutation } from "@react-query-firebase/firestore"; import { collection } from "firebase/firestore"; import { firestore } from "../../fbConfig/fbConfig"; const AddExample = () => { const ref = collection(firestore, "units"); const mutation = useFirestoreCollectionMutation(ref); ret...
24,860