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/Aiicy/aiicy-go/blob/master/config_test.go
Github Open Source
Open Source
Apache-2.0
2,020
aiicy-go
Aiicy
Go
Code
265
1,308
package aiicy import ( "io" "io/ioutil" "os" "path/filepath" "testing" "time" "github.com/stretchr/testify/assert" ) func TestLoadComposeAppConfigCompatible(t *testing.T) { cfg := ComposeAppConfig{ Version: "3", AppVersion: "v2", Services: map[string]ComposeService{ "test-hub": ComposeService{ ...
820
https://github.com/spacetelescope/jwst/blob/master/jwst/resample/tests/test_utils.py
Github Open Source
Open Source
BSD-2-Clause
2,023
jwst
spacetelescope
Python
Code
442
1,435
"""Test various utility functions""" from numpy.testing import assert_array_equal import numpy as np import pytest from stdatamodels.jwst.datamodels import SlitModel, ImageModel, dqflags from jwst.resample.resample_spec import find_dispersion_axis from jwst.resample.resample_utils import ( build_mask, build_d...
36,905
https://github.com/fabric-ds/vue/blob/master/components/box/f-box.vue
Github Open Source
Open Source
MIT
null
vue
fabric-ds
Vue
Code
83
286
<template> <component :is="as" :class="boxClasses"> <slot /> </component> </template> <script> export default { name: 'fBox' } </script> <script setup> import { box as c } from '@fabric-ds/css/component-classes' import { computed } from 'vue' const props = defineProps({ bleed: Boolean, as: { type: String...
20,012
https://github.com/letusfly85/reservation-reminder/blob/master/src/main/scala/io/wonder/soft/reser/domain/entity/AuthSession.scala
Github Open Source
Open Source
MIT
null
reservation-reminder
letusfly85
Scala
Code
30
113
package io.wonder.soft.reser.domain.entity import com.softwaremill.session.{SessionSerializer, SingleValueSessionSerializer} import scala.util.Try case class AuthSession(userId: String) object AuthSession { implicit def serializer: SessionSerializer[AuthSession, String] = new SingleValueSessionSerializer(_.us...
52,982
https://github.com/marynate/UnrealCS/blob/master/Script/UnrealEngine/GeneratedScriptFile_Game_64bits/UInterpTrack_FixSize.cs
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,017
UnrealCS
marynate
C#
Code
244
1,266
#if WITH_GAME #if PLATFORM_64BITS using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace UnrealEngine { public partial class UInterpTrack { static readonly int SubTracks__Offset; public TObjectArray<UInterpTrack> SubTracks { get{ CheckIsValid();return new TObj...
25,136
https://github.com/mliberato/px-ios/blob/master/MercadoPagoSDK/MercadoPagoSDK/CardsAdminViewController.swift
Github Open Source
Open Source
MIT
2,022
px-ios
mliberato
Swift
Code
586
2,222
// // CardsAdminViewController.swift // MercadoPagoSDK // // Created by Demian Tejo on 4/10/17. // Copyright © 2017 MercadoPago. All rights reserved. // import UIKit open class CardsAdminViewController: MercadoPagoUIScrollViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelega...
12,545
https://github.com/EnsemblGenomes/eg-web-common/blob/master/modules/EnsEMBL/Web/Component/Gene/Literature.pm
Github Open Source
Open Source
BSD-2-Clause
2,023
eg-web-common
EnsemblGenomes
Perl
Code
341
929
=head1 LICENSE Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute 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/licen...
53,115
https://github.com/mardvagheii/Ravan/blob/master/database/migrations/2020_09_20_064427_create_comments_table.php
Github Open Source
Open Source
MIT
null
Ravan
mardvagheii
PHP
Code
367
1,174
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Schema; class CreateCommentsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { ...
48,840
https://github.com/User0608/molino_api_rest/blob/master/src/main/java/com/saucedo/molino/personal/controllers/EmpleadoController.java
Github Open Source
Open Source
MIT
null
molino_api_rest
User0608
Java
Code
297
1,651
package com.saucedo.molino.personal.controllers; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.spr...
36,837
https://github.com/scala-steward/cachecontrol/blob/master/src/test/scala/com/typesafe/play/cachecontrol/HttpDateSpec.scala
Github Open Source
Open Source
Apache-2.0
2,022
cachecontrol
scala-steward
Scala
Code
226
720
/* * Copyright (C) Lightbend Inc. <https://www.lightbend.com> */ package com.typesafe.play.cachecontrol import java.time.format.DateTimeFormatter import java.time.ZoneOffset import java.time.ZonedDateTime import org.scalatest.TryValues import org.scalatest.matchers.must.Matchers import org.scalatest.wordspec.AnyWo...
42,421
https://github.com/ismailktami/gestion_stock_server_web/blob/master/src/app/config/dataTableHandler.ts
Github Open Source
Open Source
MIT
null
gestion_stock_server_web
ismailktami
TypeScript
Code
187
554
import { ViewChild } from '@angular/core'; import { DataTableDirective } from 'angular-datatables'; import { Subject } from 'rxjs'; export class DataTableHandler { @ViewChild(DataTableDirective, { static: false }) dtElement: DataTableDirective; dtOptions: DataTables.Settings = {}; // We use this tr...
54,433
https://github.com/phamdanghoang1996/baitap/blob/master/doancuoiki/resources/views/layouts/buttonMenu.blade.php
Github Open Source
Open Source
MIT
2,017
baitap
phamdanghoang1996
Blade
Code
147
937
<style type="text/css"> #khoangcach{ margin-bottom:55px; } </style> <div class="container" id="khoangcach"> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="colla...
27,700
https://github.com/cmekik/pyClarion/blob/master/pyClarion/components/__init__.py
Github Open Source
Open Source
MIT
2,022
pyClarion
cmekik
Python
Code
67
213
"""Provides pre-made components for assembing Clarion agents.""" from .basic import (Repeat, Receptors, Actions, CAM, Shift, BoltzmannSampler, ActionSampler, BottomUp, TopDown, AssociativeRules, ActionRules) from .stores import BLATracker, Store, GoalStore from .wm import Flags, Slots from .filters import Gates...
4,906
https://github.com/anurag-singh2001/brush/blob/master/app/Models/Auth/Login.php
Github Open Source
Open Source
MIT
2,018
brush
anurag-singh2001
PHP
Code
17
51
<?php namespace App\Models\Auth; use Illuminate\Database\Eloquent\Model; class Login extends Model { protected $fillable = ['username', 'password']; } ?>
19,216
https://github.com/rohankmr414/arima/blob/master/store/stablestore.go
Github Open Source
Open Source
MIT
2,022
arima
rohankmr414
Go
Code
233
615
package store import ( "errors" "github.com/dgraph-io/badger/v3" "github.com/rohankmr414/arima/utils" ) var ErrKeyNotFound = errors.New("not found") type StableStore struct { Conn *badger.DB } func NewStableStore(path string) (*StableStore, error) { var err error opts := badger.DefaultOptions(path) opts.Log...
7,733
https://github.com/vivienhaese/cli/blob/master/generator/testdata/nodejs/files/lib/index.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
cli
vivienhaese
JavaScript
Code
2
12
console.log('{{input "name"}}');
47,418
https://github.com/erdoganhuse/ColorHoleClone/blob/master/Assets/Scripts/Installers/MainInstaller.cs
Github Open Source
Open Source
MIT
null
ColorHoleClone
erdoganhuse
C#
Code
67
319
using Core.Controller; using Core.Controller.User; using Core.Data.Settings; using Core.Data.User; using Core.Signal; using DeveGames.SceneManager; using UnityEngine; using Utilities.Enums; using Zenject; namespace Installers { public class MainInstaller : MonoInstaller<MainInstaller> { [SerializeField...
53,608
https://github.com/aseemchopra25/Integer-Sequences/blob/master/Powers Of 2/PowerOf2.c
Github Open Source
Open Source
Unlicense
2,021
Integer-Sequences
aseemchopra25
C
Code
70
192
#include <stdio.h> typedef unsigned long long int U64; //Prints the nth power of 2 using Bit Manipulation U64 FastPowerOf2(U64 n){ int x =2; int res =1; while(n>0){ if(n&1 != 0){ res = res * x; } x *= x; n = n>>1; } return res; } int main(void) { U64 n; printf("Please enter the power of 2: ...
6,649
https://github.com/wybis/smart-payment/blob/master/src/main/groovy/io/wybis/smartpayment/dto/ResponseDto.groovy
Github Open Source
Open Source
Apache-2.0
2,016
smart-payment
wybis
Groovy
Code
47
112
package io.wybis.smartpayment.dto import groovy.transform.Canonical @Canonical class ResponseDto { static final int UNKNOWN = -2 static final int FORBIDDEN = -1 static final int SUCCESS = 0 static final int ERROR = 1 static final int WARNING = 2 int type String message; Object ...
25,438
https://github.com/Sylarino/TransporteProject/blob/master/app/Http/System/DataTable/DataTableAbstract.php
Github Open Source
Open Source
MIT
2,021
TransporteProject
Sylarino
PHP
Code
132
481
<?php namespace App\Http\System\DataTable; use App\App\Controllers\Controller; use Sentinel; abstract class DataTableAbstract extends Controller { public $filter; public $entity = false; public abstract function getRecords(); public abstract function getRecord($record); public function getData($variables...
35,715
https://github.com/neoneye/loda-programs/blob/master/oeis/156/A156096.asm
Github Open Source
Open Source
Apache-2.0
2,022
loda-programs
neoneye
Assembly
Code
41
359
; A156096: Inverse binomial transform of A030186. ; Submitted by Jon Maiga ; 1,1,4,6,18,32,84,164,400,824,1928,4096,9360,20240,45632,99680,223008,489984,1091392,2405952,5345536,11806592,26194048,57917440,128389376,284057856,629392384,1393010176,3085685248,6830825472,15128761344,33494672384,74176696320,164236212224,3636...
36,417
https://github.com/wanlinus/nats-spring/blob/master/src/main/java/cn/wanlinus/nats/NatsConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,020
nats-spring
wanlinus
Java
Code
172
540
/* * Copyright 2018 wanli <wanlinus@qq.com> * * 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 o...
51,355
https://github.com/Marquez607/Wireless-Perf-Sim/blob/master/ns-3-dev/cmake_cache/src/lr-wpan/CMakeFiles/liblr-wpan-test.dir/DependInfo.cmake
Github Open Source
Open Source
MIT
2,022
Wireless-Perf-Sim
Marquez607
CMake
Code
99
1,907
# The set of languages for which implicit dependencies are needed: set(CMAKE_DEPENDS_LANGUAGES "CXX" ) # The set of files for implicit dependencies of each language: set(CMAKE_DEPENDS_CHECK_CXX "/home/marquez/Desktop/EEL6591/simulator/ns-3-dev/src/lr-wpan/test/lr-wpan-ack-test.cc" "/home/marquez/Desktop/EEL6591/s...
26,435
https://github.com/khalidb/DynASt/blob/master/includingDependencies/src/org/mp/naumann/algorithms/fd/incremental/datastructures/incremental/IncrementalPLIBuilder.java
Github Open Source
Open Source
Apache-2.0
null
DynASt
khalidb
Java
Code
244
648
/* * Copyright 2014 by the Metanome project * * 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 o...
52,525
https://github.com/sixTiger/XXBLib/blob/master/XXBLib/Class/XXBFileHelper.h
Github Open Source
Open Source
MIT
2,016
XXBLib
sixTiger
C
Code
147
690
/*! @header XXBFileHelper.h @abstract 只提供复杂的文件操作,简单的操作直接使用NSFileManager @author xiaobing3@staff.sina.com.cn */ #import <Foundation/Foundation.h> @interface XXBFileHelper : NSObject /*! 创建文件夹 @param folderPath 路径 @return 创建结果 */ + (BOOL)createFolder:(NSString *)folderPath; /*! 创建文件夹并设置iClou...
30,280
https://github.com/centos-yocto/meta-centos/blob/master/recipes-core/glibc/centos/glibc-rh1659438-49.patch
Github Open Source
Open Source
MIT
null
meta-centos
centos-yocto
null
Spoken
1,007
3,974
commit 8507e831907ff46d06382fe453c6832db2594e0b Author: Stefan Liebler <stli@linux.ibm.com> Date: Tue Dec 18 13:57:23 2018 +0100 S390: Refactor wcsspn ifunc handling. The ifunc handling for wcsspn is adjusted in order to omit ifunc if the minimum architecture level already supports newer CPUs by def...
23,029
https://github.com/ruiborda/escalafon/blob/master/database/Migrations/Usuario.php
Github Open Source
Open Source
MIT
2,021
escalafon
ruiborda
PHP
Code
64
311
<?php namespace DataBase\Migrations; use Illuminate\Database\Capsule\Manager; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class Usuario extends Migration { public function up(): void { Manager::schema()->create( 'usuario', function (...
40,347
https://github.com/sebastian-meier/LoCobSS-co2-data/blob/master/fixes/fix.js
Github Open Source
Open Source
MIT
null
LoCobSS-co2-data
sebastian-meier
JavaScript
Code
554
1,730
const fs = require('fs'); const smooth = require('chaikin-smooth'); const {ungzip} = require('node-gzip'); const {area, simplify, cleanCoords, kinks, unkinkPolygon} = require('@turf/turf'); const d3 = require('d3'); const errors = JSON.parse(fs.readFileSync('clean-errors.json', 'utf8')); const makeGeoJson = (d) => { ...
38,223
https://github.com/danielmorgan/PiBlog/blob/master/resources/assets/sass/partials/_editor.scss
Github Open Source
Open Source
MIT
null
PiBlog
danielmorgan
SCSS
Code
154
584
body.editor { #header { font-family: 'Open Sans', sans-serif; background: $brand-primary; color: $lighter; padding-top: 1em; padding-bottom: 1em; margin-bottom: 1em; h1 { font-weight: normal; margin: 0; margin-left: 1em; float: left; font-weight: 700; } a { color: $light; &:hov...
27,790
https://github.com/HuangJingGitHub/PracMakePert_py/blob/master/rotation_based_planner_1008_dmove.py
Github Open Source
Open Source
Apache-2.0
2,022
PracMakePert_py
HuangJingGitHub
Python
Code
483
2,334
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np import time import rospy import dvrk from dvrk_retraction.srv import * import math import PyKDL import sys pi = np.pi target_angle = 30 deg2rad = pi / 180 delta_angle = 1 * deg2rad delta_x = 0.0005 camera2base = np.array([[0, 0, 1], [-1, 0, 0], [0, -1, ...
27,152
https://github.com/rayworld/pm000/blob/master/app/admin/model/DeptModel.php
Github Open Source
Open Source
MIT
2,021
pm000
rayworld
PHP
Code
16
50
<?php namespace app\admin\model; use Think\Model; class DeptModel extends Model{ protected $table= 'system_dept'; protected $pk= 'id'; }
47,301
https://github.com/barbogast/sanity/blob/master/packages/@sanity/desk-tool/src/components/paneItem/PaneItemPreview.tsx
Github Open Source
Open Source
MIT
null
sanity
barbogast
TypeScript
Code
207
636
// @todo: remove the following line when part imports has been removed from this file ///<reference types="@sanity/types/parts" /> import {DocumentPreviewPresence, DocumentPresence} from '@sanity/base/presence' import {SanityDocument, SchemaType} from '@sanity/types' import {Inline} from '@sanity/ui' import {SanityDef...
31,033
https://github.com/metamn/log-lolla-pro-theme/blob/master/assets/scss/parts/post-format-image/post-format-image.scss
Github Open Source
Open Source
MIT
null
log-lolla-pro-theme
metamn
SCSS
Code
29
142
@mixin post-format-image { .post-content-between-sidebars { @include mobile-and-up { @include post-content-between-sidebars--display-vertical; } .post-first-image { figure { @include figure; @include figure--without-figcaption; @include border(normal, top); @include figure--with-background...
19,354
https://github.com/jesuslpm/EntityLite/blob/master/inercya.EntityLite/Builders/AbstractQueryBuilder.cs
Github Open Source
Open Source
Apache-2.0
2,021
EntityLite
jesuslpm
C#
Code
2,016
6,654
/* Copyright 2014 i-nercya intelligent software 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 wr...
50,309
https://github.com/mindspore-ai/mindspore/blob/master/mindspore/ccsrc/plugin/device/cpu/kernel/sequence/sequence_index_cpu_kernel.cc
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-proprietary-license, MPL-1.0, OpenSSL, LGPL-3.0-only, LicenseRef-scancode-warranty-disclaimer, BSD-3-Clause-Open-MPI, MIT, MPL-2.0-no-copyleft-exception, NTP, BSD-3-Clause, GPL-1.0-or-later, 0BSD, MPL-2.0, LicenseRef-scancode-free-unknown, AGPL-3.0-only, Libpng, MPL-1.1, IJG, GPL-2.0-onl...
2,023
mindspore
mindspore-ai
C++
Code
472
1,859
/** * Copyright 2023 Huawei Technologies Co., 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...
33,747
https://github.com/eltima-software/USB-Web-Server/blob/master/Xtra/root/phpBB3/includes/search/fulltext_mysql.php
Github Open Source
Open Source
GPL-1.0-or-later, LicenseRef-scancode-proprietary-license, LicenseRef-scancode-unknown-license-reference, GPL-2.0-only
2,020
USB-Web-Server
eltima-software
PHP
Code
3,207
10,867
<?php /** * * @package search * @version $Id$ * @copyright (c) 2005 phpBB Group * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ /** * @ignore */ if (!defined('IN_PHPBB')) { exit; } /** * @ignore */ include_once($phpbb_root_path . 'includes/search/search.' . $phpEx); /** * fulltext_...
21,129
https://github.com/rdzakmic/TypeScript-Node-Starter/blob/master/src/app.ts
Github Open Source
Open Source
MIT
null
TypeScript-Node-Starter
rdzakmic
TypeScript
Code
155
532
import express from "express"; import bodyParser from "body-parser"; import path from "path"; import cors from "cors"; import * as jwt from "jsonwebtoken"; import cookieParser from "cookie-parser"; //mysql import mysql from "mysql"; import { ShredderTokenData, TokenNames, tokenSecret } from "./projections"; const con...
4,269
https://github.com/rtmvnv/a101/blob/master/app/Reports/NotDeliveredPeriod.php
Github Open Source
Open Source
MIT
null
a101
rtmvnv
PHP
Code
86
320
<?php namespace App\Reports; use Illuminate\Support\Facades\DB; /** * Список лицевых счетов, на которые не удалось отправить квитанцию за период */ class NotDeliveredPeriod { public function __invoke($period) { $allAccounts = DB::table('accruals') ->select('account') ->where...
50,095
https://github.com/nolkasaur/My-Leetcode-Rust-Solutions/blob/master/Problem Listing/2138.rs
Github Open Source
Open Source
MIT
null
My-Leetcode-Rust-Solutions
nolkasaur
Rust
Code
76
204
// https://leetcode.com/problems/divide-a-string-into-groups-of-size-k/ // 2 ms, 2.3 MB impl Solution { pub fn divide_string(mut s: String, k: i32, fill: char) -> Vec<String> { let len = s.len(); let mut y = k - (len as i32 % k); while y > 0 { s.push(fill); y-=1; ...
25,963
https://github.com/halilbelkir/odeme/blob/master/resources/views/components/guest.blade.php
Github Open Source
Open Source
MIT
null
odeme
halilbelkir
PHP
Code
159
1,079
<!doctype html> <html lang="tr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta name="csrf-token" content="{{ csrf_token() }...
54,474
https://github.com/knowncitizen/tripleo-ui/blob/master/src/js/components/networkConfiguration/NetworksHighlighter.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,019
tripleo-ui
knowncitizen
JavaScript
Code
165
364
/** * Copyright 2018 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
10,171
https://github.com/SuntechITOverseasEducationPvtLtd/interviewxp_v1/blob/master/resources/views/front/member/editpersonal.blade.php
Github Open Source
Open Source
MIT
null
interviewxp_v1
SuntechITOverseasEducationPvtLtd
PHP
Code
274
1,629
<style> .seditpersonal_01{padding:0px} .seditpersonal_02{width: 95.8%; border: 1px solid #fff;} .seditpersonal_03{width: 100.8%; border: 1px solid #fff;} .seditpersonal_04{display:none} .seditpersonal_05{clear:both} </style> <form class="" id="editpersonal_save" method="POST" enctype="multipart/form-data" data-p...
18,610
https://github.com/joshuacayanan/SharedParkingCalculator/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,020
SharedParkingCalculator
joshuacayanan
Ignore List
Code
9
55
*.csv *.xlsx *.json *.tmp *.pdf *.pyc Scripts/__pycache__/LandUse.cpython-37.pyc __pycache__ .vscode/
5,523
https://github.com/coreydemarse/hummingbot/blob/master/test/hummingbot/core/api_throttler/test_weighted_api_throttler.py
Github Open Source
Open Source
Apache-2.0
2,022
hummingbot
coreydemarse
Python
Code
149
757
import unittest import asyncio from hummingbot.core.api_throttler.data_types import RateLimit from hummingbot.core.api_throttler.weighted_api_throttler import WeightedAPIThrottler TEST_PATH_URL = "TEST_PATH_URL" WEIGHTED_RATE_LIMIT = [ RateLimit(5, 5, TEST_PATH_URL, 2) ] class WeightedAPIThrottlerUnitTests(unit...
52,646
https://github.com/wenhao/ci-hands-on/blob/master/src/test/java/com/github/wenhao/service/UserRemoteServiceTest.java
Github Open Source
Open Source
Apache-2.0
2,017
ci-hands-on
wenhao
Java
Code
124
575
/* * Copyright (c) 2017. All rights reserved. Used by permission. * * Author: Wen Hao * Date: 2017-05-16 17:34:12 * Gtihub: https://github.com/wenhao * */ package com.github.wenhao.service; import com.github.wenhao.config.RemoteConfig; import com.github.wenhao.domain.User; import org.junit.Test; import org.jun...
40,676
https://github.com/ke112/bookish-fiesta/blob/master/ToolApp/ToolApp/zh/ZhCategory/Foundation/NSObject+DebugDescription.h
Github Open Source
Open Source
MIT
null
bookish-fiesta
ke112
C
Code
20
80
// // NSObject+DebugDescription.h // // // Created by zhangzhihua on 2021/7/20. // // 自动打印model的所有属性 #import <Foundation/Foundation.h> @interface NSObject (DebugDescription) @end
20,423
https://github.com/miduku/fastplate/blob/master/src/scss/partials/_main.scss
Github Open Source
Open Source
MIT
null
fastplate
miduku
SCSS
Code
60
224
.main { .ac{ color: $color-primary; text-transform: uppercase; font-weight: bold; @include mobilefirst($bp-tablet) { padding-top: 80px; + h2 { margin-top: -80px; } } } /*Style to help visualize grid for demo purposes*/ .grid-style-helper { background: ...
52,582
https://github.com/GrimesGolden/WizardGameRefactor/blob/master/main/java/edu/sdccd/cisc191/wizardGame/objects/Ent.java
Github Open Source
Open Source
CC0-1.0
null
WizardGameRefactor
GrimesGolden
Java
Code
397
1,190
package edu.sdccd.cisc191.wizardGame.objects; import java.awt.Graphics; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.util.Random; import edu.sdccd.cisc191.wizardGame.Game; import edu.sdccd.cisc191.wizardGame.gui.anim.Animation; import edu.sdccd.cisc191.wizardGame.gui.screen.levels.Abstr...
1,570
https://github.com/arthurb123/WebClash/blob/master/server/plugins/helloWorld.js
Github Open Source
Open Source
BSD-3-Clause
2,022
WebClash
arthurb123
JavaScript
Code
90
145
//@author Arthur Baars //@description //A really simple Hello World plugin that works //for both the client and server, the message that //will be printed to the console can be changed by //changing the 'message' property. //@string message "Hello World" console.log(message); //As you are able to see, we specify a pr...
15,556
https://github.com/mccabesp/ModernSlavery-Beta/blob/master/ModernSlavery.WebUI.Shared/Views/Shared/_GovUkSuccessBanner.cshtml
Github Open Source
Open Source
MIT
null
ModernSlavery-Beta
mccabesp
C#
Code
39
251
@{ var message = this.GetSuccessMessage(); this.ClearSuccessMessage(); } @if (!string.IsNullOrEmpty(message)) { <div class="govuk-grid-row"> <div class="govuk-grid-column-two-thirds"> <div class="govuk-notification-banner govuk-notification-banner--success" role="alert" aria-labelledby...
37,192
https://github.com/EngineeredReverse/FAKEWARE/blob/master/cheat/SDK/Misc/Recv.h
Github Open Source
Open Source
MIT
null
FAKEWARE
EngineeredReverse
C
Code
365
1,099
#pragma once #include <string> enum SendPropType { DPT_Int = 0, DPT_Float, DPT_Vector, DPT_VectorXY, DPT_String, DPT_Array, DPT_DataTable, DPT_Int64, DPT_NUMSendPropTypes }; class DVariant { public: union { float m_Float; long m_Int; char* m_pString; void* m_pData; float m_Vector[...
18,702
https://github.com/iivchenko/lobster-assessment/blob/master/src/Questionnaire.Application/Queries/GetPoll/GetPollQueryResponse.cs
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,020
lobster-assessment
iivchenko
C#
Code
40
88
using System; namespace Questionnaire.Application.Queries.GetPoll { public sealed class GetPollQueryResponse { public Guid Id { get; set; } public string Name { get; set; } public string Description { get; set; } public Guid RootQuestionId { get; set; } } }
46,428
https://github.com/isaac-gros/food-stock/blob/master/server/src/app.module.ts
Github Open Source
Open Source
MIT
2,021
food-stock
isaac-gros
TypeScript
Code
97
295
import { Module } from '@nestjs/common'; import { ConfigModule } from '@nestjs/config'; import * as Joi from 'joi'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ProductModule } from './components/product/product.module'; import { BatchModule } from './components...
52,262
https://github.com/skvarovski/topskd/blob/master/src/top/domain/CategoryInfo.php
Github Open Source
Open Source
MIT
null
topskd
skvarovski
PHP
Code
65
144
<?php /** * children category list under category_id * @author auto create */ class CategoryInfo { /** * category id **/ public $children_category_id; /** * whether the category is leaf or not **/ public $is_leaf_category; /** * level of the categories. As for root categories, the level is 1...
49,000
https://github.com/javagl/Flow/blob/master/flow-module-creation/src/main/java/de/javagl/flow/plugin/package-info.java
Github Open Source
Open Source
MIT
2,021
Flow
javagl
Java
Code
19
56
/** * Classes for managing plugins in form of * {@link de.javagl.flow.plugin.ModuleCreatorSource} objects .<br> * <br> */ package de.javagl.flow.plugin;
13,990
https://github.com/VictorHaine/r-packages-itau/blob/master/Windows/dplyr/include/dplyr/Result/GroupedHybridCall.h
Github Open Source
Open Source
MIT
null
r-packages-itau
VictorHaine
C
Code
450
1,259
#ifndef dplyr_GroupedHybridCall_H #define dplyr_GroupedHybridCall_H #include <boost/scoped_ptr.hpp> #include <boost/shared_ptr.hpp> #include <boost/weak_ptr.hpp> #include <tools/Call.h> #include <tools/utils.h> #include <dplyr/Result/Result.h> #include <bindrcpp.h> namespace dplyr { SEXP dplyr_object(const char* ...
11,909
https://github.com/JuxxDR/school/blob/master/app/Http/Request/CreateAlumnoRequest.php
Github Open Source
Open Source
MIT
2,018
school
JuxxDR
PHP
Code
52
161
<?php /** * Created by PhpStorm. * User: presa * Date: 21/10/2018 * Time: 05:42 PM */ namespace App\Http\Request; use App\Model\Alumno; use App\model\Folios; use Illuminate\Foundation\Http\FormRequest; class CreateAlumnoRequest extends FormRequest { public function authorize() { return true; ...
7,215
https://github.com/alexzhurov/appbooster/blob/master/src/store/convert/reducers.ts
Github Open Source
Open Source
MIT
null
appbooster
alexzhurov
TypeScript
Code
62
205
import { CONVERT_CURRENCY, convertActionTypes, IConvertState } from './types'; const initialState: IConvertState = { request: { amount: 19999.95, query: "/convert/19999.95/GBP/EUR", from: "GBP", to: "EUR" }, meta: { timestamp: 1449885661 * 1000, rate: 1.383702 }, response: 27673.97586...
14,208
https://github.com/lyj5812/yun-admin-ui/blob/master/src/utils/auth.js
Github Open Source
Open Source
Apache-2.0
2,023
yun-admin-ui
lyj5812
JavaScript
Code
36
104
import { getLSExpired, setLSExpired, removeLS } from '@/utils/storage' const TokenKey = 'Admin-Token' export function getToken() { return getLSExpired(TokenKey) } export function setToken(token, time) { return setLSExpired(TokenKey, token, time) } export function removeToken() { return removeLS(TokenKey) }
8,214
https://github.com/alex-snap/identityserver/blob/master/specifications/site/site.raml
Github Open Source
Open Source
BSD-3-Clause
2,021
identityserver
alex-snap
null
Spoken
29
81
#%RAML 1.0 title: ItsYouOnline version: 0.1 baseUri: / /register: description: Registration page get: displayName: Show user registration page responses: 200: body: text/html: string post: displayName: Process user registration page
13,751
https://github.com/ckrdi/vue-shareplaylist/blob/master/src/views/Auth.vue
Github Open Source
Open Source
MIT
2,021
vue-shareplaylist
ckrdi
Vue
Code
82
262
<template> <div class="welcome"> <div v-if="haveAccount"> <LoginForm @toggleForm="toggleForm" /> </div> <div v-else> <SignupForm @toggleForm="toggleForm" /> </div> </div> </template> <script> import SignupForm from "../components/SignupForm.vue"; import LoginForm from "../components/Log...
35,599
https://github.com/myb12/matrimony/blob/master/app/Http/Controllers/site/BiodataController.php
Github Open Source
Open Source
MIT
null
matrimony
myb12
PHP
Code
225
747
<?php namespace App\Http\Controllers\site; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\User; use App\Http\Requests\site\Biodata\BiodataUpdateRequest; class BiodataController extends Controller { /** * Display a listing of the resource. * * @retu...
52,416
https://github.com/ezyang/pytorch-unattached/blob/master/caffe2/core/hip/net_async_hip_thread_pool_hip.cc
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause, LicenseRef-scancode-generic-cla, Apache-2.0
2,018
pytorch-unattached
ezyang
C++
Code
244
719
/** * Copyright (c) 2016-present, Facebook, 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 ...
13,609
https://github.com/ThomasGuerneve/hdf5/blob/master/src/H5VLnative.h
Github Open Source
Open Source
BSD-3-Clause-LBNL
null
hdf5
ThomasGuerneve
C
Code
578
2,138
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright by The HDF Group. * * All rights reserved. * * * * T...
54,245
https://github.com/cornell-zhang/rosetta/blob/master/spam-filter/Makefile
Github Open Source
Open Source
BSD-3-Clause
2,023
rosetta
cornell-zhang
Makefile
Code
85
363
# Set kernel name KERNEL_NAME = SgdLR # Set host source and headers HOST_SRC_CPP = ./src/host/spam_filter.cpp ./src/host/utils.cpp ./src/host/check_result.cpp HOST_SRC_H = ./src/host/utils.h ./src/host/check_result.h ./src/host/typedefs.h DATA = ./data/*.dat # Set host code include paths HOST_INC = -I$(XIL...
3,040
https://github.com/WS-QA/Calamari/blob/master/source/Calamari.Terraform/DestroyCommand.cs
Github Open Source
Open Source
Apache-2.0
null
Calamari
WS-QA
C#
Code
27
94
using Calamari.Commands.Support; namespace Calamari.Terraform { [Command("destroy-terraform", Description = "Destroys Terraform resources")] public class DestroyCommand : TerraformCommand { public DestroyCommand(): base((fileSystem) => new DestroyTerraformConvention(fileSystem)) { ...
36,371
https://github.com/nixiong1995/book/blob/master/frontend/models/Share.php
Github Open Source
Open Source
BSD-3-Clause
null
book
nixiong1995
PHP
Code
10
31
<?php namespace frontend\models; use yii\db\ActiveRecord; class Share extends ActiveRecord{ }
28,568
https://github.com/crs4/health-gateway/blob/master/consent_manager/static/gui/js/index.js
Github Open Source
Open Source
MIT
2,020
health-gateway
crs4
JavaScript
Code
230
439
// Copyright (c) 2017-2018 CRS4 // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to use, // copy, modify, merge, publish, dis...
32,606
https://github.com/rc100/awfd8-migrate/blob/master/web/modules/contrib/features/tests/src/Unit/ConfigurationItemTest.php
Github Open Source
Open Source
MIT
2,018
awfd8-migrate
rc100
PHP
Code
35
175
<?php namespace Drupal\Tests\features\Unit; use Drupal\features\ConfigurationItem; use Drupal\features\FeaturesManagerInterface; /** * @coversDefaultClass \Drupal\features\ConfigurationItem * @group features */ class ConfigurationItemTest extends \PHPUnit_Framework_TestCase { /** * @covers ::fromConfigString...
17,525
https://github.com/darktrojan/addons-server/blob/master/Dockerfile.deploy
Github Open Source
Open Source
2,019
addons-server
darktrojan
Dockerfile
Code
367
1,238
FROM python:2.7.14-slim-stretch # need to compile swig ENV SWIG_FEATURES="-D__x86_64__" # Should change it to use ARG instead of ENV for OLYMPIA_UID # once the jenkins server is upgraded to support docker >= v1.9.0 ENV OLYMPIA_UID=9500 RUN useradd -u ${OLYMPIA_UID} -s /sbin/nologin olympia # Add nodesource repositor...
27,818
https://github.com/pdebruic/MaterialDesignLite/blob/master/src/Material-Design-Lite-Widgets.package/MDLNestedList.class/instance/elements..st
Github Open Source
Open Source
MIT
2,018
MaterialDesignLite
pdebruic
null
Spoken
15
34
accessing elements: anObject elements := anObject. "reinitialize the filter when list change" self displayResearchFilter: ''
10,599
https://github.com/oracle/weblogic-deploy-tooling/blob/master/core/src/main/python/wlsdeploy/tool/extract/domain_resource_extractor.py
Github Open Source
Open Source
UPL-1.0, LicenseRef-scancode-other-copyleft, MIT, GPL-2.0-only, Classpath-exception-2.0, Apache-2.0, CDDL-1.1
2,023
weblogic-deploy-tooling
oracle
Python
Code
229
750
""" Copyright (c) 2020, 2022, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. """ import re from oracle.weblogic.deploy.util import PyOrderedDict from wlsdeploy.exception.expection_types import ExceptionType from wlsdeploy.tool.util....
23,889
https://github.com/taufiksoleh/EduWeb/blob/master/app/Courses.php
Github Open Source
Open Source
MIT
2,017
EduWeb
taufiksoleh
PHP
Code
22
87
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Courses extends Model { // protected $fillable = [ 'course_id', 'course_name', 'course_type', 'course_admin', 'course_date' ]; }
22,348
https://github.com/jeoffreylim/maelstrom/blob/master/src/main/scala/com/github/maelstrom/controller/ControllerKafkaTopics.scala
Github Open Source
Open Source
Apache-2.0
2,019
maelstrom
jeoffreylim
Scala
Code
344
1,333
package com.github.maelstrom.controller import java.util.concurrent.Executors import com.github.maelstrom.{KafkaRDDUtils, Logging} import com.github.maelstrom.consumer.KafkaConsumerPoolFactory import org.apache.curator.framework.CuratorFramework import org.apache.spark.rdd.RDD import org.apache.spark.storage.StorageL...
39,674
https://github.com/staceb/aymericbeaumet.com/blob/master/src/components/posts.module.scss
Github Open Source
Open Source
MIT
null
aymericbeaumet.com
staceb
SCSS
Code
187
649
@import './config'; $postOffset: 25px; .Posts { margin-top: -$postOffset; ul { list-style-type: none; } .postsList { display: grid; grid-template-columns: repeat(auto-fill, 255px); grid-gap: $postOffset; @media screen and (max-width: $breakpoint2) { grid-template-columns: unset; ...
9,034
https://github.com/lethihuong99/PHP/blob/master/Documents/qlbh1/database/migrations/2021_01_23_102819_create_shipping_charges_table.php
Github Open Source
Open Source
MIT
2,021
PHP
lethihuong99
PHP
Code
36
180
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateShippingChargesTable extends Migration { public function up() { Schema::create('shipping_charges', function (Blueprint $table) { $table->id(); ...
18,487
https://github.com/plaid/plaid-java/blob/master/src/main/java/com/plaid/client/model/CreditEmploymentItem.java
Github Open Source
Open Source
MIT
2,023
plaid-java
plaid
Java
Code
416
1,415
/* * The Plaid API * The Plaid REST API. Please see https://plaid.com/docs/api for more details. * * The version of the OpenAPI document: 2020-09-14_1.421.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class ...
43,267
https://github.com/lucasdamianjohnson/DivineVoxelEngine/blob/master/electron/out/World/InterComms/Render/RenderComm.js
Github Open Source
Open Source
MIT
2,021
DivineVoxelEngine
lucasdamianjohnson
JavaScript
Code
109
351
import { CreateInterComm } from "../../../Comms/InterComm.js"; import { DVEW } from "../../DivineVoxelEngineWorld.js"; const renderCommBase = { onReady: () => { }, onRestart: () => { }, }; const renderComm = CreateInterComm("world-render", renderCommBase); export const RenderComm = renderComm; const ports = [];...
8,576
https://github.com/ice3-software/between-kit/blob/master/Use Cases/Utilities/Classes/I3SubtitleCollectionViewCell.h
Github Open Source
Open Source
MIT
2,022
between-kit
ice3-software
C
Code
46
146
// // I3SubtitleCollectionViewCell.h // BetweenKit // // Created by Stephen Fortune on 18/12/2014. // Copyright (c) 2014 stephen fortune. All rights reserved. // #import <UIKit/UIKit.h> extern NSString *const I3SubtitleCollectionViewCellIdentifier; @interface I3SubtitleCollectionViewCell : UICollectionViewCell ...
53,306
https://github.com/UweSchmidt/hxt/blob/master/hxt-filter/src/Text/XML/HXT/Parser/ProtocolHandlerHttpNative.hs
Github Open Source
Open Source
MIT
2,023
hxt
UweSchmidt
Haskell
Code
427
1,043
-- ------------------------------------------------------------ -- -- protocol handler functions for native http access -- module Text.XML.HXT.Parser.ProtocolHandlerHttpNative ( getHttpContentsWithHttp ) where import Text.XML.HXT.DOM.XmlTree import Text.XML.HXT.DOM.XmlState import Text.XML.HXT.Parser.Proto...
3,770
https://github.com/DaniilStepanov/bbfgradle/blob/master/tmp/results/JVM-Xnew-inference/FRONTEND_vnmve.kt
Github Open Source
Open Source
Apache-2.0
2,023
bbfgradle
DaniilStepanov
Kotlin
Code
74
199
class Recursive<T : Recursive<T>> : Generic<PlaceHolder<T> >, MainSupertype class Simple<T> : Generic<T >, MainSupertype interface Generic<T> interface PlaceHolder<T : MainSupertype> : Stub<T > interface Stub<T : MainSupertype > interface MainSupertype interface SpecificStub<T : SpecificSimple > : Stub<T > class Specif...
52,955
https://github.com/shashankrnr32/WaveCLI/blob/master/est/speech_tools/include/EST_DMatrix.h
Github Open Source
Open Source
MIT, LicenseRef-scancode-proprietary-license, BSD-3-Clause, GPL-1.0-or-later, LicenseRef-scancode-other-permissive, MIT-Festival
2,019
WaveCLI
shashankrnr32
C++
Code
1,070
2,631
/*************************************************************************/ /* */ /* Centre for Speech Technology Research */ /* University of Edinburgh, UK */ /* ...
16,129
https://github.com/AdaskoTheBeAsT/Cake.Services/blob/master/src/Cake.Services/Extensions/InstallSettingsExtensions.cs
Github Open Source
Open Source
MIT
2,021
Cake.Services
AdaskoTheBeAsT
C#
Code
664
1,528
#region Using Statements using System; using Cake.Core.IO; #endregion namespace Cake.Services { /// <summary> /// Contains extension methods for <see cref="InstallSettings" />. /// </summary> public static class InstallSettingsExtensions { #region Methods /// <summary> /...
51,499
https://github.com/Seryusjj/Chip8Flutter/blob/master/lib/rom_loader.dart
Github Open Source
Open Source
MIT
null
Chip8Flutter
Seryusjj
Dart
Code
18
78
import 'dart:typed_data'; import 'package:flutter/services.dart' show rootBundle; class RomLoader { Future<ByteData> loadAsset() async { return await rootBundle.load('assets/res/Space_Invaders_David_Winter.ch8'); } }
34,291
https://github.com/pl741/portal-marketplace-master/blob/master/acumos-portal-be/src/test/java/org/acumos/be/test/service/impl/NotificationServiceTestImpl.java
Github Open Source
Open Source
Apache-2.0
null
portal-marketplace-master
pl741
Java
Code
700
2,901
/*- * ===============LICENSE_START======================================================= * Acumos * =================================================================================== * Copyright (C) 2017 AT&T Intellectual Property & Tech Mahindra. All rights reserved. * ==========================================...
35,577
https://github.com/beyondnetPeru/BeyondNet.Sample.Typescript/blob/master/patterns_ts/src/adapter/cube-a.ts
Github Open Source
Open Source
MIT
null
BeyondNet.Sample.Typescript
beyondnetPeru
TypeScript
Code
81
178
// A hypothetical Cube tool from Company A export interface ICubeA { manufacture(width: number, height: number, depth: number): boolean } export default class CubeA implements ICubeA { static last_time = Date.now() manufacture(width: number, height: number, depth: number): boolean { // if not busy...
50,971
https://github.com/JavatarPro/spring-reCaptcha/blob/master/src/main/java/pro/javatar/captcha/CaptchaConfiguration.java
Github Open Source
Open Source
Apache-2.0
2,019
spring-reCaptcha
JavatarPro
Java
Code
153
471
/* * @author Serhii Petrychenko / Javatar LLC */ package pro.javatar.captcha; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @ConfigurationProperties(prefix = "recaptcha") public class CaptchaConfiguration { ...
43,985
https://github.com/crystalwwj/AndroidMalware/blob/master/Sample/Messenger Lite Free Calls Messages_v47.0.0.14.193_apkpure.com/smali/android/support/v4/app/i.smali
Github Open Source
Open Source
MIT
2,021
AndroidMalware
crystalwwj
Smali
Code
6,947
40,101
.class public final Landroid/support/v4/app/i; .super Landroid/support/v4/app/FragmentTransaction; .source "" # interfaces .implements Ljava/lang/Runnable; # static fields .field public static final a:Z # instance fields .field public final b:Landroid/support/v4/app/ad; .field public c:Landroid/support/v4/app/m; ...
35,983
https://github.com/RandallBalestriero/SplineWavelet/blob/master/plot_picles.py
Github Open Source
Open Source
MIT
2,021
SplineWavelet
RandallBalestriero
Python
Code
308
3,275
import glob import cPickle from pylab import * def select(filelist,kwargs): if(len(kwargs)==0): return filelist return select([f for f in filelist if kwargs[0] in f],kwargs[1:]) def load_files(files): test_accu = [] test_auc = [] train_error = [] filters = [] representation = []...
40,816
https://github.com/Lomiren/Chester/blob/master/Sources/Chester/QueryBuilder.swift
Github Open Source
Open Source
MIT
null
Chester
Lomiren
Swift
Code
573
1,257
// // Copyright © 2016 Jan Gorman. All rights reserved. // import Foundation public enum QueryError: Error { case missingCollection case missingFields case missingArguments case invalidState(String) } public struct Argument { let key: String let value: Any public init(key: String, value: Any) { ...
33,016
https://github.com/42BV/beanmapper/blob/master/src/test/java/io/beanmapper/strategy/record/model/annotation/bean_alias/form/FormWithCollection.java
Github Open Source
Open Source
Apache-2.0
2,023
beanmapper
42BV
Java
Code
58
202
package io.beanmapper.strategy.record.model.annotation.bean_alias.form; import java.util.Collection; import java.util.List; import io.beanmapper.annotations.BeanAlias; public class FormWithCollection { @BeanAlias("name") public final String abc; @BeanAlias("id") public final int def; @BeanAlias(...
41,611
https://github.com/orthub/cms-lbs4/blob/master/controllers/uploadProductImage.php
Github Open Source
Open Source
MIT
null
cms-lbs4
orthub
PHP
Code
208
778
<?php require_once __DIR__ . '/../helpers/session.php'; require_once __DIR__ . '/userRights.php'; require_once __DIR__ . '/../helpers/nonUserRedirect.php'; if (isset($_SESSION['user_id'])) { $user_id = $_SESSION['user_id']; $user_role = check_user_role($user_id); $role = $user_role['role']; if ($role === 'CUS...
31,672
https://github.com/ttran835/movie_details/blob/master/client/src/components/NewsQueryComponents/SearchQuery/SearchQuery.module.scss
Github Open Source
Open Source
MIT
null
movie_details
ttran835
SCSS
Code
12
55
@import '../../../styles/custom.scss'; .materialUiShadow { @include materialUiShadow; } .materialUiShadow:hover { @include materialUiShadowHover; }
17,761
https://github.com/Spinoco/scalaz-stream/blob/master/src/main/scala/scalaz/stream/process1.scala
Github Open Source
Open Source
MIT
null
scalaz-stream
Spinoco
Scala
Code
1,536
3,960
package scalaz.stream import collection.immutable.Vector import java.nio.charset.Charset import scalaz.{\/, -\/, \/-, Monoid, Semigroup, Equal} import scalaz.\/._ import scalaz.syntax.equal._ import Process._ trait process1 { // nb: methods are in alphabetical order, there are going to be so many that // any o...
9,243
https://github.com/igiu1988/iOS13.4.1-Runtime-Headers/blob/master/protocols/TVMediaController.h
Github Open Source
Open Source
MIT
2,020
iOS13.4.1-Runtime-Headers
igiu1988
Objective-C
Code
48
232
/* Generated by EzioChiu. */ @protocol TVMediaController @required - (UIImage *)coverImage; - (<TVMediaControllerDelegate> *)delegate; - (bool)isPlaybackEnabled; - (TVMediaInfo *)mediaInfo; - (void)pause; - (void)play; - (void)setDelegate:(id <TVMediaControllerDelegate>)arg1; - (void)setMediaInfo:(TVMediaInfo *)arg...
19,317
https://github.com/JFusco/react-tagging-input/blob/master/__tests__/__fixtures__/App.js
Github Open Source
Open Source
MIT
2,017
react-tagging-input
JFusco
JavaScript
Code
65
230
import React, { Component } from 'react'; import Tags from '../../src/component/js/Tags'; class App extends Component { state = { tags: this.props.tags }; constructor(props){ super(props); } onTagAdded(tag) { this.setState({ tags: [...this.state.tags, tag] }); } onTagRemoved(tag,...
42,537
https://github.com/william-wqq/winwin/blob/master/public/app/js/Finance-Center.js
Github Open Source
Open Source
MIT
2,017
winwin
william-wqq
JavaScript
Code
1,304
7,171
//财务中心 $(document).ready(function() { var first =$("#Member-deposit>nav>ul>li:first"); first.addClass("active"); var first_bank=$(".bank-kad>span>div:first"); first_bank.addClass("bank-true"); }); $(".reality").val("42.5"); $("#dide-kade").click(function(){ var option =$("#dide-kade>option:checked...
39,526
https://github.com/EdiaEducationTechnology/nakamura/blob/master/bundles/jax-rs/src/test/java/org/sakaiproject/nakamura/jaxrs/ThreadLocalNakamuraWebContextTest.java
Github Open Source
Open Source
Apache-2.0
null
nakamura
EdiaEducationTechnology
Java
Code
827
2,601
/* * Licensed to the Sakai Foundation (SF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The SF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use th...
46,888
https://github.com/287116078/AndroidFCP-Base/blob/master/lib_hiPermission/src/main/java/com/shaoxiang/lib_hipermission/ConstantValue.java
Github Open Source
Open Source
Apache-2.0
null
AndroidFCP-Base
287116078
Java
Code
48
172
package com.shaoxiang.lib_hipermission; /** * Created by Administrator on 2017/5/10 0010. */ public interface ConstantValue { String DATA_PERMISSION_TYPE = "data_permission_type"; String DATA_TITLE = "data_title"; String DATA_MSG = "data_msg"; String DATA_FILTER_COLOR = "data_color_filter"; Stri...
9,514
https://github.com/Kayuse88/wpf-TicTacToe-example/blob/master/TicTacToeExample/ViewModel/ViewModelBase.cs
Github Open Source
Open Source
Unlicense
2,020
wpf-TicTacToe-example
Kayuse88
C#
Code
35
114
using System.ComponentModel; using System.Runtime.CompilerServices; namespace TicTacToeExample.ViewModel { public class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected void NotifyPropertyChanged([CallerMemberName] string propertyNam...
29,362