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/DIYgod/RSSHub/blob/master/lib/v2/nga/radar.js
Github Open Source
Open Source
MIT
2,023
RSSHub
DIYgod
JavaScript
Code
92
451
const rules = [ { title: '分区帖子', docs: 'https://docs.rsshub.app/routes/bbs#nga-fen-qu-tie-zi', source: '/thread.php', target: (params, url) => new URL(url).searchParams.get('fid') && `/nga/forum/${new URL(url).searchParams.get('fid')}`, }, { title: '帖子', docs:...
45,200
https://github.com/debug-ito/hi/blob/master/src/Hi/Types.hs
Github Open Source
Open Source
BSD-3-Clause
2,022
hi
debug-ito
Haskell
Code
94
216
{-# LANGUAGE OverloadedStrings #-} module Hi.Types ( Option(..) , File(..) , Files , TemplateSource (..) ) where import Data.ByteString (ByteString) data File = TemplateFile { getFilePath :: FilePath, getFileContents :: ByteString } | RegularFile { getFilePath :: FilePath, getFileCon...
7,707
https://github.com/osita-sunday-nnyigide/Pras_Server/blob/master/Pras_Server_C++/src/RepairPDB.cpp
Github Open Source
Open Source
MIT
2,023
Pras_Server
osita-sunday-nnyigide
C++
Code
430
1,616
/******************************************************************************************************************************* Copyright (c) 2022 Osita Sunday Nnyigide (osita@protein-science.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentatio...
26,366
https://github.com/JohnVinyard/zounds/blob/master/zounds/persistence/test_persistence.py
Github Open Source
Open Source
MIT
2,020
zounds
JohnVinyard
Python
Code
370
1,845
import unittest2 from zounds.core import ArrayWithUnits, IdentityDimension from zounds.timeseries import \ TimeDimension, Seconds, Milliseconds, AudioSamples, SR11025 from zounds.spectral import \ FrequencyDimension, LinearScale, FrequencyBand, FrequencyAdaptive, \ GeometricScale from .arraywithunits import...
53,903
https://github.com/grosa1/ringsat/blob/master/cuda_error_check.cu
Github Open Source
Open Source
MIT
2,022
ringsat
grosa1
null
Spoken
208
518
// Enable this for error checking #define CUDA_CHECK_ERROR #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) #define CudaCheckError() __cudaCheckError( __FILE__, __LINE__ ) inline void __cudaSafeCall( cudaError err, const char *file, const int line ) { #ifdef CUDA_CHECK_ERROR #pragma w...
54,389
https://github.com/hnOsmium0001/DeepMining/blob/master/src/main/kotlin/io/github/hnosmium0001/deep_mining/drill/MineralDrill.kt
Github Open Source
Open Source
MIT
null
DeepMining
hnOsmium0001
Kotlin
Code
269
1,020
package io.github.hnosmium0001.deep_mining.drill import io.github.hnosmium0001.deep_mining.CommonConfig import io.github.hnosmium0001.deep_mining.library.multiblock.* import io.github.hnosmium0001.deep_mining.mineralDrillTileEntity import io.github.hnosmium0001.deep_mining.util.unwrap import io.github.hnosmium0001.dee...
52,685
https://github.com/predatorpc/esalat/blob/master/components/WBasketCardFree.php
Github Open Source
Open Source
BSD-3-Clause
2,017
esalat
predatorpc
PHP
Code
284
1,317
<?php namespace app\components; use yii\base\Widget; use yii\bootstrap\Progress; use app\modules\common\models\ModFunctions; use app\modules\catalog\models\Goods; use app\modules\actions\models\ActionsPresentSave; class WBasketCardFree extends Widget{ const PRESENT_KEY = 0; public function run(){ //...
55,690
https://github.com/aoking/kintone-java-client/blob/master/src/main/java/com/kintone/client/model/space/AttachedApp.java
Github Open Source
Open Source
MIT
2,022
kintone-java-client
aoking
Java
Code
147
266
package com.kintone.client.model.space; import com.kintone.client.model.User; import java.time.ZonedDateTime; import lombok.Value; /** An object contains information of an App in a Space. */ @Value public class AttachedApp { /** The App ID. */ private final long appId; /** The App Code of the App. */ ...
29,049
https://github.com/chorylee/Instaqram/blob/master/app/javascript/packs/reducers/index.js
Github Open Source
Open Source
MIT
2,017
Instaqram
chorylee
JavaScript
Code
52
136
import { combineReducers } from "redux" import { routerReducer as routing } from "react-router-redux" import { reducer as formReducer } from "redux-form" import { apolloReducer } from "../apollo" import alert from "./alert" import user from "./user" const combinedReducers = combineReducers({ routing, form: formRe...
13,799
https://github.com/dingodb/dingo/blob/master/dingo-expr/parser/src/main/java/io/dingodb/expr/parser/op/IsNotTrueOp.java
Github Open Source
Open Source
Apache-2.0
2,023
dingo
dingodb
Java
Code
196
541
/* * Copyright 2021 DataCanvas * * 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 i...
10,248
https://github.com/SensesProject/climate-change-scenario-primer/blob/master/components/LayoutList.vue
Github Open Source
Open Source
CC-BY-SA-4.0, ISC
2,021
climate-change-scenario-primer
SensesProject
Vue
Code
98
338
<template> <ul class="layout-list tiny"> <slot /> </ul> </template> <script> </script> <style scoped lang="scss"> @import "~@/assets/style/global"; .layout-list { margin: $spacing #{-$spacing / 2}; padding: $spacing / 2 $spacing / 2 $spacing / 4; background-color: transparentize(getColor(neon, 100), 0.7...
56,701
https://github.com/yaznasivasai/python_codewars/blob/master/7KYU/sexy_name.py
Github Open Source
Open Source
MIT
2,022
python_codewars
yaznasivasai
Python
Code
109
280
SCORES: dict = {'A': 100, 'B': 14, 'C': 9, 'D': 28, 'E': 145, 'F': 12, 'G': 3, 'H': 10, 'I': 200, 'J': 100, 'K': 114, 'L': 100, 'M': 25, 'N': 450, 'O': 80, 'P': 2, 'Q': 12, 'R': 400, 'S': 113, 'T': 405, 'U': 11, 'V': 10, 'W': 10, 'X': 3, 'Y': 210, 'Z': 23} def sexy_name...
1,723
https://github.com/ginsumaster/gparsnip-gparsley-gturnip/blob/master/songs/SUS-Songbook-of-Unusual-Size/Come and See [E].pro
Github Open Source
Open Source
MIT
2,016
gparsnip-gparsley-gturnip
ginsumaster
Prolog
Code
143
631
{title: Come and See} {key: E} {time: 4/4} {metronome: 66} {ccli: 121737} {author: Lenny LeBlanc} {copyright: (C) 1989 Doulos Publ} #orig key: F {soh}Verse 1:{eoh} [E]Come and [B/D#]see the [A/C#]glory of the [E/B]Lord [A] Come be[B]hold the [E]Lamb [A/C#][B/D#] [E]Come and [B/D#]see (know) the [G#7]mercy of the [C#m]...
23,639
https://github.com/marcosvandrade/eclipse-na-pratica/blob/master/escadaseserpentes/src/main/java/br/com/softblue/jogo/counter/Counters.java
Github Open Source
Open Source
MIT
2,020
eclipse-na-pratica
marcosvandrade
Java
Code
279
553
/******************************************************************************* * MIT License * * Copyright (c) 2019 Softblue * * 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...
26,211
https://github.com/asbjornh/sassjs-loader/blob/master/test/lib/get-node-module-dir.js
Github Open Source
Open Source
CC0-1.0
2,021
sassjs-loader
asbjornh
JavaScript
Code
31
194
'use strict'; var test = require('ava'), path = require('path'), getNodeModuleDir = require('../../lib/get-node-module-dir'); test('getNodeModuleDir', function(t) { t.plan(2); t.is( getNodeModuleDir(path.join('path', 'to', 'node_modules', 'lodash', 'lodash.js')), path.join('path', 'to...
5,510
https://github.com/hackoregon/civic/blob/master/packages/2018-disaster-resilience/src/components/YouAndYourNeighbors/shakingScales.js
Github Open Source
Open Source
MIT
2,021
civic
hackoregon
JavaScript
Code
577
1,180
// modified from https://stackoverflow.com/questions/8584902/get-closest-number-out-of-array function findIndexInScale(arr, target) { if (!arr || arr.length === 0) return null; if (arr.length === 1) return 0; for (let i = 1; i < arr.length; i += 1) { // As soon as a number bigger than or equal to target is f...
1,736
https://github.com/PromyLOPh/libdottedline/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,018
libdottedline
PromyLOPh
Ignore List
Code
5
27
*.o *.d src/8b10btables.h *.sw? __pycache__
54,079
https://github.com/tobiasdalhof/homehub/blob/master/app/Components/CUX9002.php
Github Open Source
Open Source
MIT
2,021
homehub
tobiasdalhof
PHP
Code
202
865
<?php function CUX9002($component) { if ($component['parent_device_interface'] == 'CUxD' && $component['visible'] == 'true' && isset($component['TEMPERATURE'])) { $datapoints = array(); if(isset($component['TEMPERATURE'])) { $datapoints[] = '<span class="info" data-id="' . $comp...
17,300
https://github.com/neil-phan/evolve/blob/master/src/graphics.py
Github Open Source
Open Source
MIT
null
evolve
neil-phan
Python
Code
1,876
6,206
import pygame from simple import organism, predator, food, tree from simple.terrain import simple_terrain import numpy as np import matplotlib.pyplot as plt import graph import random from PIL import Image """ Helper class to make the buttons for the menu variables. """ class Button(): def __init__(self, win, size...
1,295
https://github.com/suandedev/laporan-keuangan/blob/master/back/application/controllers/Transaksi.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
laporan-keuangan
suandedev
PHP
Code
334
1,073
<?php defined('BASEPATH') OR exit('No direct script access allowed'); use chriskacerguis\RestServer\RestController; class Transaksi extends RestController { function __construct() { // Construct the parent class parent::__construct(); $this->load->model('M_api', 'api'); ...
40,224
https://github.com/sarang-apps/darshan_browser/blob/master/fuchsia/base/test_navigation_listener.h
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
null
darshan_browser
sarang-apps
C
Code
287
854
// 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 FUCHSIA_BASE_TEST_NAVIGATION_LISTENER_H_ #define FUCHSIA_BASE_TEST_NAVIGATION_LISTENER_H_ #include <fuchsia/web/cpp/fidl.h> #include <string> #i...
13,363
https://github.com/acedece14/kotlin-vk-api/blob/master/vk-api/src/main/kotlin/name/alatushkin/api/vk/generated/ads/AdLayout.kt
Github Open Source
Open Source
MIT
2,018
kotlin-vk-api
acedece14
Kotlin
Code
50
132
package name.alatushkin.api.vk.generated.ads open class AdLayout( val id: Long, val campaignId: Long, val adFormat: Long, val costType: CostType, val video: Boolean? = null, val title: String, val description: String, val linkUrl: String, val linkDomain: String? = null, val pre...
40,102
https://github.com/RedPillGroup/LoadingScreen/blob/master/src/components/LoadingMessage/index.tsx
Github Open Source
Open Source
MIT
null
LoadingScreen
RedPillGroup
TypeScript
Code
35
93
import * as React from 'react'; import { Message, IMessageProps } from './styles'; const LoadingMessage: React.FunctionComponent<IMessageProps> = ({ color, fontFamily, fontSize, message }) => ( <Message color={color} fontFamily={fontFamily} fontSize={fontSize}> {message} </Message> ); export default LoadingMe...
55,651
https://github.com/TyperClub/miniprogram-dormfinder/blob/master/dorm/data/map/gis-school.js
Github Open Source
Open Source
MIT
2,021
miniprogram-dormfinder
TyperClub
JavaScript
Code
135
666
module.exports = [{ "id": 201, "type": "school", "name": "波恩大学Poppelsdorf校区", "longitude": "7.0862111", "latitude": "50.7267083" }, { "id": 202, "type": "school", "name": "波恩大学主楼", "longitude": "7.1022377", "latitude": "50.7338470" }, { "id": 203, "type": "school...
46,592
https://github.com/doamaral/protractor-helper/blob/master/src/misc.js
Github Open Source
Open Source
MIT
2,022
protractor-helper
doamaral
JavaScript
Code
67
282
const defaultTimeoutInMs = require("./constants_and_utils/constants").DEFAULT_TIMEOUT_IN_MS; const messageBuilder = require("./constants_and_utils/messageBuilder"); const utils = require("./constants_and_utils/utils"); const waiters = require("./waiters"); const isCurrentUrlDifferentFromBaseUrl = function() { return...
46,116
https://github.com/rcjim/chef-cookbook-oracle-server/blob/master/test/integration/default/serverspec/dependencies_spec.rb
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,016
chef-cookbook-oracle-server
rcjim
Ruby
Code
56
159
require 'spec_helper.rb' describe package('compat-libcap1') do it { should be_installed } end describe package('compat-libstdc++-33') do it { should be_installed } end describe package('libstdc++-devel') do it { should be_installed } end describe package('gcc-c++') do it { should be_installed } end describ...
20,004
https://github.com/kasisoft/kcl/blob/master/src/test/java/com/kasisoft/libs/common/converters/URLAdapterTest.java
Github Open Source
Open Source
Unlicense
null
kcl
kasisoft
Java
Code
136
424
package com.kasisoft.libs.common.converters; import static org.hamcrest.MatcherAssert.*; import static org.hamcrest.Matchers.*; import org.testng.annotations.*; import java.net.*; import lombok.experimental.*; import lombok.*; /** * Tests for the type 'URLAdapter'. * * @author daniel.kasmeroglu@kasisoft.net ...
12,563
https://github.com/hyldmo/spotify-organizer/blob/master/src/sagas/notifications.ts
Github Open Source
Open Source
MIT
null
spotify-organizer
hyldmo
TypeScript
Code
44
116
import { put, takeEvery } from 'redux-saga/effects' import { Actions } from '../actions' import { sleep } from '../utils' export default function* () { yield takeEvery(Actions.createNotification.type, createNotification) } function* createNotification (action: typeof Actions.createNotification) { if (action.payload...
16,256
https://github.com/Malphaet/crocoweb/blob/master/generator/model.py
Github Open Source
Open Source
Unlicense
null
crocoweb
Malphaet
Python
Code
131
895
# Copyleft (c) 2016 Cocobug All Rights Reserved. # -*- coding: utf_8 -*- import re,traceback,os,markdown try: from tree_parser import * from models import dual except: from generator.models import dual from generator import tree_parser def getDataType(name): "Return some kind of general types dep...
46,732
https://github.com/kLabz/haxe-material-ui/blob/master/src/mui/lab/speeddial/SpeedDialClassKey.hx
Github Open Source
Open Source
MIT
2,022
haxe-material-ui
kLabz
Haxe
Code
41
107
package mui.lab.speeddial; @:enum abstract SpeedDialClassKey(String) to String { var Root = "root"; var Fab = "fab"; var DirectionUp = "directionUp"; var DirectionDown = "directionDown"; var DirectionLeft = "directionLeft"; var DirectionRight = "directionRight"; var Actions = "actions"; var ActionsClosed = "ac...
40,763
https://github.com/asadkamran297/clinic-management-/blob/master/app/Models/Appointment.php
Github Open Source
Open Source
MIT
null
clinic-management-
asadkamran297
PHP
Code
53
217
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class Appointment extends Model { use HasFactory, SoftDeletes; /** * The attributes that are mass assignable. * * @var strin...
43,780
https://github.com/xamarin/xamarin-android/blob/master/build-tools/xaprepare/xaprepare/Steps/Step_Android_SDK_NDK.cs
Github Open Source
Open Source
MIT
2,023
xamarin-android
xamarin
C#
Code
1,433
4,725
using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; using System.Xml.Linq; using Kajabity.Tools.Java; namespace Xamarin.Android.Prepare { class Step_Android_SDK_NDK : StepWithDownloadProgress { #nullable disable sealed class An...
6,433
https://github.com/2249692487/java_exercise/blob/master/SSM_SERVICE_02/src/main/java/com/test/service/UserService.java
Github Open Source
Open Source
Apache-2.0
null
java_exercise
2249692487
Java
Code
38
156
package com.test.service; import com.test.pojo.SysRole; import com.test.pojo.SysUser; import org.springframework.security.core.userdetails.UserDetailsService; import java.util.List; /** * 描述:待描述 * </p> * * @author QinLiNa * @data 2019/1/10 */ public interface UserService extends UserDetailsService { List<...
56,550
https://github.com/dendisuhubdy/Cupcake/blob/master/src/traits.rs
Github Open Source
Open Source
MIT
2,021
Cupcake
dendisuhubdy
Rust
Code
228
488
// Copyright (c) Facebook, Inc. and its affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. /// The trait for symmetric key encryption. pub trait SKEncryption<CT, PT, SK> { /// Generate a secret key fn generate_key(&self) -...
17,695
https://github.com/manasys/grouper/blob/master/grouper-ui/java/src/edu/internet2/middleware/grouper/grouperUi/beans/attributeUpdate/AttributeUpdateText.java
Github Open Source
Open Source
Apache-2.0
2,022
grouper
manasys
Java
Code
738
1,926
/******************************************************************************* * Copyright 2012 Internet2 * * 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.or...
8,230
https://github.com/shumxin/FlymeOS_OnePlus-X/blob/master/framework.jar.out/smali/android/telephony/ServiceState.smali
Github Open Source
Open Source
Apache-2.0
2,016
FlymeOS_OnePlus-X
shumxin
Smali
Code
5,922
30,477
.class public Landroid/telephony/ServiceState; .super Ljava/lang/Object; .source "ServiceState.java" # interfaces .implements Landroid/os/Parcelable; # static fields .field public static final CREATOR:Landroid/os/Parcelable$Creator; .annotation system Ldalvik/annotation/Signature; value = { "...
22,306
https://github.com/opensafely-core/stata-docker/blob/master/bin/ado/base/m/ml_p_allowmissscores.ado
Github Open Source
Open Source
BSD-Source-Code
null
stata-docker
opensafely-core
null
Spoken
59
137
*! version 1.0.1 08mar2011 program ml_p_allowmissscores // defaults to always using missing for scores now // this is used in rocreg version 9 syntax [anything] [if] [in] [, SCores * ] if `"`scores'"' != "" { if `"`e(opt)'"' == "ml" { ml score `0' miss...
48,736
https://github.com/uvbs/FullSource/blob/master/Source/Source/Tools/SceneEditor/KGObjectEditerTreeCtrl.cpp
Github Open Source
Open Source
MIT
2,018
FullSource
uvbs
C++
Code
1,245
6,276
//////////////////////////////////////////////////////////////////////////////// // // FileName : KGObjectEditerTreeCtrl.cpp // Version : 1.0 // Author : ZhaoXinyu (Chiyer) // CopyRight : Kingsoft Corporation All rights Reserved // History : 2006-4-20 18:37:05 // Comment : // ///////////////...
6,116
https://github.com/ameeParmar/MERN-Project/blob/master/routes/itemRoutes.js
Github Open Source
Open Source
PDDL-1.0, LicenseRef-scancode-public-domain
2,021
MERN-Project
ameeParmar
JavaScript
Code
167
672
const router = require('express').Router() const { Item, User } = require('../models') router.get('/items/category/:category', (req, res) => { Item.find({ 'category': req.params.category }).sort({ 'createdAt': -1 }) .then(item => res.json(item)) .catch(err => console.log(err)) }) router.get('/items/id/:id',...
10,384
https://github.com/sumuzhou/microservice-spring-cloud/blob/master/inventory-service/src/main/java/com/example/inventoryservice/InventoryController.java
Github Open Source
Open Source
MIT
2,019
microservice-spring-cloud
sumuzhou
Java
Code
69
330
package com.example.inventoryservice; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.ann...
7,159
https://github.com/caueferreira/library-of-alexandria/blob/master/cards/src/main/java/com/libraryofalexandria/cards/domain/FetchExpansions.kt
Github Open Source
Open Source
MIT
2,019
library-of-alexandria
caueferreira
Kotlin
Code
30
142
package com.libraryofalexandria.cards.domain import com.libraryofalexandria.cards.data.ExpansionRepository import com.libraryofalexandria.core.base.RepositoryStrategy import kotlinx.coroutines.flow.flow class FetchExpansions( private val repository: ExpansionRepository ) { suspend fun fetch() = flow { ...
11,761
https://github.com/rku4er/whiteboard-wp/blob/master/templates/content.php
Github Open Source
Open Source
MIT
null
whiteboard-wp
rku4er
PHP
Code
22
87
<article <?php post_class('clearfix'); ?>> <?php the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft')); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> </article>
45,290
https://github.com/chalbersma/manowar/blob/master/jelly_api_2/extendpopulationjson.py
Github Open Source
Open Source
BSD-2-Clause
2,020
manowar
chalbersma
Python
Code
683
2,071
#!/usr/bin/env python3 """ Copyright 2018, VDMS Licensed under the terms of the BSD 2-clause license. See LICENSE file for terms. ```swagger-yaml /sapi/extendpopulationjson/ : post: description: | Accepts a valid extenstion json and stores it for the host or population of hosts specified. This call ...
14,566
https://github.com/JunaYa/graffe-desktop-app/blob/master/src/render/pages/things/store/mutations.ts
Github Open Source
Open Source
MIT
null
graffe-desktop-app
JunaYa
TypeScript
Code
119
435
import { Menu } from './type' export const mutations = { init(state: { navList: Array<Menu> }) { state.navList = [ { id: 1001, name: 'InBox', icon: 'icon-menu-inbox', path: '/things/inbox', color: '#fdd502', }, { id: 1002, name: 'Today', ...
26,251
https://github.com/KeisukeYamashita/referee/blob/master/packages/client/src/components/canary-executor/TestingTypeSection.tsx
Github Open Source
Open Source
Apache-2.0
2,022
referee
KeisukeYamashita
TypeScript
Code
171
547
import { observer } from 'mobx-react'; import TitledSection from '../../layout/titledSection'; import * as React from 'react'; import { Form, FormLabel } from 'react-bootstrap'; import './TestingTypeSection.scss'; import { Popover } from '../../layout/Popover'; interface TestingTypeProps { testingType: string; upd...
28,442
https://github.com/ressec/Demeter/blob/master/demeter-base/src/main/java/com/heliosphere/demeter/base/runner/parameter/base/ParameterStatusType.java
Github Open Source
Open Source
Apache-2.0
null
Demeter
ressec
Java
Code
113
247
/* * Copyright(c) 2017 - Heliosphere Corp. * --------------------------------------------------------------------------- * This file is part of the Heliosphere's project which is licensed under the * Apache license version 2 and use is subject to license terms. * You should have received a copy of the license wit...
14,023
https://github.com/inshapardaz/api/blob/master/src/Inshapardaz.Api.Tests/Library/Chapter/AddChapterContents/WhenAddingChapterContentsToPrivateBookWithPermission.cs
Github Open Source
Open Source
Apache-2.0
2,023
api
inshapardaz
C#
Code
129
638
using Inshapardaz.Api.Tests.Asserts; using Inshapardaz.Api.Tests.Dto; using Inshapardaz.Api.Tests.Helpers; using Inshapardaz.Domain.Models; using NUnit.Framework; using System.Net.Http; using System.Threading.Tasks; namespace Inshapardaz.Api.Tests.Library.Chapter.Contents.AddChapterContents { [TestFixture(Role.Ad...
16,182
https://github.com/smartmobilefactory/wheelmap-iphone2/blob/master/Core/Views/POIs/Detail/WMCompassView.m
Github Open Source
Open Source
Apache-2.0
2,017
wheelmap-iphone2
smartmobilefactory
Objective-C
Code
357
1,490
// // WMCompassView.m // Wheelmap // // Created by Andrea Gerlach on 10.12.12. // Copyright (c) 2012 Sozialhelden e.V. All rights reserved. // #import "WMCompassView.h" #define degreesToRadians(x) (M_PI * x / 180.0) #define RAD_TO_DEG(r) ((r) * (180 / M_PI)) @implementation WMCompassView - (id)initWithFrame:(CG...
18,887
https://github.com/Andrey-Ionel/HW3/blob/master/hw21/src/js/controller/GalleryController.js
Github Open Source
Open Source
MIT
null
HW3
Andrey-Ionel
JavaScript
Code
113
451
/* eslint-disable import/prefer-default-export */ import $ from 'jquery'; import { GalleryView } from '../view/GalleryView'; import { AlbumsView } from '../view/AlbumsView'; import { AlbumPhotosView } from '../view/AlbumPhotosView'; import { AlbumsModel } from '../model/AlbumsModel'; import { AlbumPhotosModel } from '...
3,003
https://github.com/mattsilber/sigcap/blob/master/sigcap-sample/src/main/java/com/guardanis/sigcap/sample/LayoutExampleActivity.kt
Github Open Source
Open Source
Apache-2.0
2,021
sigcap
mattsilber
Kotlin
Code
102
465
package com.guardanis.sigcap.sample import android.content.Intent import android.os.Bundle import android.view.View import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.guardanis.sigcap.* class LayoutExampleActivity: AppCompatActivity(), View.OnClickListener { val signatureInput...
38,628
https://github.com/gaukes/e-mission-phone/blob/master/MovesConnect/src/edu/berkeley/eecs/e_mission/UserClassification.java
Github Open Source
Open Source
BSD-3-Clause
null
e-mission-phone
gaukes
Java
Code
70
206
package edu.berkeley.eecs.e_mission; import java.io.Serializable; public class UserClassification implements Serializable { /** * */ private static final long serialVersionUID = 1L; public UserClassification(String tripId, String sectionId, String userMode) { super(); this.tripId = tripId; this.secti...
7,658
https://github.com/quanpower/xielaoban-server/blob/master/app/models/user/guest.py
Github Open Source
Open Source
MIT
2,018
xielaoban-server
quanpower
Python
Code
57
229
# -*- coding: utf-8 -*- from application.extensions import db from .user import FavorAction __all__ = ['GuestRecord'] class GuestRecord(db.Document, FavorAction): ''' Visit records for guests user ''' meta = { 'indexes': ['session_key'] } session_key = db.StringField(required=True) ...
10,602
https://github.com/woodRock/project-manager/blob/master/src/components/Home.vue
Github Open Source
Open Source
MIT
null
project-manager
woodRock
Vue
Code
77
203
<template> <div id="home"> <h1>Portfolio Development Tool</h1> <p> This is a tool to edit and add projects and blogs to my portfolio website. <br /> We can find the website here: <a href="https://woodrock.tk">woodrock.tk</a> </p> <p> The blogs and projects are dynamically...
56,151
https://github.com/ldtteam/GraphicsExpanded/blob/master/src/main/java/com/ldtteam/graphicsexpanded/shader/uniform/UniformVector.java
Github Open Source
Open Source
Adobe-2006
null
GraphicsExpanded
ldtteam
Java
Code
177
681
package com.ldtteam.graphicsexpanded.shader.uniform; import com.ldtteam.graphicsexpanded.util.math.*; import org.lwjgl.opengl.GL20; import java.nio.FloatBuffer; import java.util.function.BiConsumer; public class UniformVector<V extends Vector<V>> extends FloatBufferWritingUniform<V> { public UniformVector(final St...
53,450
https://github.com/Exiro1/Master-O-fOlympus-Java-Remake/blob/master/src/com/exiro/depacking/utils.java
Github Open Source
Open Source
MIT
2,022
Master-O-fOlympus-Java-Remake
Exiro1
Java
Code
121
344
package com.exiro.depacking; public class utils { static public long readUInt32le(sgFileReader f) { short[] content = f.readByte(4); return ((long) content[0] | (long) content[1] << 8 | ((long) content[2] << 16) | ((long) content[3] << 24)); } static public long readUInt16le(sgFileReader ...
56,069
https://github.com/OmarGard/MyWallet/blob/master/deploy.sh
Github Open Source
Open Source
MIT
null
MyWallet
OmarGard
Shell
Code
20
39
php artisan config:clear # Run database migrations yes | php artisan migrate --env=production # Run database seeds php artisan db:seed
48,259
https://github.com/Lamzigit/manifold_learning/blob/master/src/matlab/external_toolboxes/knn_functions/knn_lanczos/Makefile
Github Open Source
Open Source
MIT
2,021
manifold_learning
Lamzigit
Makefile
Code
86
361
CC = g++ LIB = -lgsl -lgslcblas -lm MACRO = -DHAVE_INLINE OPTM = -O2 FLAG = $(LIB) $(MACRO) $(OPTM) PROG = knn ## Compile all: $(PROG) $(PROG): main.o knn_algo.o linear_algebra.o dynamic_array.o aux_func.o $(CC) main.o knn_algo.o linear_algebra.o dynamic_array.o aux_func.o -o $(PROG) $(FLAG) main.o: main....
46,504
https://github.com/gzwplato/raylib-purebasic/blob/master/src/pbhelper/pbhelper_LoadSoundFromWave.c
Github Open Source
Open Source
Zlib, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-other-permissive
2,020
raylib-purebasic
gzwplato
C
Code
17
57
#include "raylib_pb_helper.h" void pbhelper_LoadSoundFromWave(Sound* result, Wave* wave) { if( result && wave ) *result = LoadSoundFromWave(*wave); }
8,216
https://github.com/adrianchifor/Flipcam-Backend/blob/master/node_modules/paperwork/test/test.js
Github Open Source
Open Source
Apache-2.0
2,016
Flipcam-Backend
adrianchifor
JavaScript
Code
919
3,103
var should = require('should'), sinon = require('sinon'), paperwork = require('../paperwork'); describe('Paperwork', function () { describe('Basic', function () { var simple = { alias: /^[a-z0-9]+$/, name: String, admin: Boolean, age: Number }; it('should validate correct...
46,436
https://github.com/performantdata/sangria-example.g8/blob/master/src/main/g8/src/main/scala/$package$/schema/UserSchemaDirectives.scala
Github Open Source
Open Source
CC0-1.0
2,021
sangria-example.g8
performantdata
Scala
Code
137
271
package $package$.schema import sangria.schema.{Directive, DirectiveLocation} /** Definitions of internally-used GraphQL schema directives. * * The GraphQL language provides for the definition of [[sangria.ast.DirectiveDefinition directives]], * which can be applied to other GraphQL schema elements. * We use ...
38,617
https://github.com/ogrebgr/forge-server-skeleton2/blob/master/src/main/java/com/bolyartech/forge/server/modules/user/endpoints/RegistrationEp.java
Github Open Source
Open Source
Apache-2.0
null
forge-server-skeleton2
ogrebgr
Java
Code
241
1,313
package com.bolyartech.forge.server.modules.user.endpoints; import com.bolyartech.forge.server.db.DbPool; import com.bolyartech.forge.server.handler.ForgeDbSecureEndpoint; import com.bolyartech.forge.server.misc.Params; import com.bolyartech.forge.server.modules.user.SessionVars; import com.bolyartech.forge.server.mod...
30,382
https://github.com/yudinmaksym/ReactTestProject/blob/master/src/components/svg/Logo.jsx
Github Open Source
Open Source
MIT
null
ReactTestProject
yudinmaksym
null
Spoken
151
779
import React from 'react'; export default props => ( <svg viewBox="0 0 94.9 94.9" {...props} > <style dangerouslySetInnerHTML={{ __html: '.st01{filter:url(#filter-11);} .st11{fill:#000031;}' }} /> <filter filterUnits="objectBoundingBox" height="206.4%" id="filter-11" width="211.9%" x="-55.6%" y="-5...
11,495
https://github.com/zhouyingyuGIT/taskManagement/blob/master/html/3473/semantic.jsp
Github Open Source
Open Source
Apache-2.0
2,020
taskManagement
zhouyingyuGIT
null
Spoken
975
4,880
<%@ page contentType="text/html; charset=UTF-8"%> <%@ page language="java" import="com.lattice.entity.*"%> <%@ page language="java" import="com.lattice.dao.*,java.util.*"%> <%@ page import="javax.servlet.jsp.jstl.fmt.LocaleSupport"%> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%> <!DOCTYPE html> <htm...
20,108
https://github.com/lino79/kinkajou-icons/blob/master/src/content/NextWeek.jsx
Github Open Source
Open Source
MIT
null
kinkajou-icons
lino79
null
Spoken
59
265
import { Kinkajou } from '@kinkajou/kinkajou/Kinkajou'; import { SvgIcon } from '@kinkajou/svg-icon/SvgIcon'; export class NextWeek extends SvgIcon { static get is() { return 'material.content.NextWeek'; } renderSVG() { return (<g><path fill="#010101" d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 1...
27,861
https://github.com/HDRUK/gateway-web/blob/master/src/hooks/useSearch/index.js
Github Open Source
Open Source
Apache-2.0
2,023
gateway-web
HDRUK
JavaScript
Code
7
17
import useSearch from './useSearch'; export default useSearch;
40,147
https://github.com/ramn/allehanda/blob/master/build.sbt
Github Open Source
Open Source
Apache-2.0
null
allehanda
ramn
Scala
Code
111
475
enablePlugins(JavaAppPackaging) lazy val root = Project( id="root", base=file("."), settings=Seq( name := "allehanda", organization := "se.ramn", executableScriptName := "run", version := "0.1-SNAPSHOT", scalaVersion := "2.11.5", scalacOptions ++= Seq( "-feature", "-unchecked"...
49,387
https://github.com/idea-statica/iom/blob/master/IdeaRS.OpenModel/Concrete/Load/TendonLoading.cs
Github Open Source
Open Source
MIT
2,021
iom
idea-statica
C#
Code
136
409
using System.Collections.Generic; using System.Xml.Serialization; namespace IdeaRS.OpenModel.Concrete.Load { /// <summary> /// Tendon loading base class /// </summary> [XmlInclude(typeof(TendonStressLoading))] [XmlInclude(typeof(TendonLossesLoading))] public abstract class TendonLoading { } /// <summary> /...
13,338
https://github.com/EnderL2000/zircon/blob/master/zircon.core/src/jvmTest/kotlin/org/hexworks/zircon/api/builder/component/TextAreaBuilderTest.kt
Github Open Source
Open Source
MIT
2,022
zircon
EnderL2000
Kotlin
Code
27
101
package org.hexworks.zircon.api.builder.component import org.hexworks.zircon.api.component.TextArea import org.junit.Before class TextAreaBuilderTest : ComponentBuilderTest<TextArea, TextAreaBuilder>() { override lateinit var target: TextAreaBuilder @Before override fun setUp() { target = TextAr...
25,633
https://github.com/lznby/study-basic-pre-jetpack/blob/master/app/src/main/java/com/lznby/jetpack/content/design/vm/CreateViewModel.java
Github Open Source
Open Source
Apache-2.0
null
study-basic-pre-jetpack
lznby
Java
Code
314
1,454
package com.lznby.jetpack.content.design.vm; import android.arch.lifecycle.MutableLiveData; import com.google.gson.Gson; import com.lznby.jetpack.base.BaseActivityViewModel; import com.lznby.jetpack.configure.IApplication; import com.lznby.jetpack.content.design.alibaba.oss.model.StsModel; import com.lznby.jetpack.co...
46,258
https://github.com/lastweek/source-freebsd/blob/master/src/sys/modules/tcp/Makefile
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
null
source-freebsd
lastweek
Makefile
Code
47
225
# # $FreeBSD$ # SYSDIR?=${SRCTOP}/sys .include "${SYSDIR}/conf/kern.opts.mk" SUBDIR= \ ${_tcp_bbr} \ ${_tcp_rack} \ ${_tcpmd5} \ .if ${MK_EXTRA_TCP_STACKS} != "no" || defined(ALL_MODULES) _tcp_bbr= bbr _tcp_rack= rack .endif .if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \ de...
55,521
https://github.com/iceddev/frozen/blob/master/keys.js
Github Open Source
Open Source
MIT
2,021
frozen
iceddev
JavaScript
Code
242
883
module.exports = { CANCEL: 3, HELP: 6, BACK_SPACE: 8, TAB: 9, CLEAR: 12, RETURN: 13, ENTER: 14, SHIFT: 16, CONTROL: 17, ALT: 18, PAUSE: 19, CAPS_LOCK: 20, ESCAPE: 27, SPACE: 32, PAGE_UP: 33, PAGE_DOWN: 34, END: 35, HOME: 36, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, PRINTSCREE...
12,056
https://github.com/VasilPanovski/miastoto/blob/master/main/java/com/bgmiastoto/exceptions/PlaceNotFoundException.java
Github Open Source
Open Source
MIT
null
miastoto
VasilPanovski
Java
Code
46
121
package com.bgmiastoto.exceptions; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(value = HttpStatus.NOT_FOUND, reason = "Не съществува такова място!") public class PlaceNotFoundException extends RuntimeException { // in the service whe...
42,334
https://github.com/lambda666/liteos_in_raspberry_ubuntu20/blob/master/LiteOS/targets/Raspberry32_Pi3B/Src/main.c
Github Open Source
Open Source
Apache-2.0
null
liteos_in_raspberry_ubuntu20
lambda666
C
Code
643
2,152
/* ---------------------------------------------------------------------------- * Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved. * Description: Main Process Implementation * Author: Huawei LiteOS Team * Create: 2021-07-19 * Redistribution and use in source and binary forms, with or wit...
1,358
https://github.com/copiousfreetime/gemology/blob/master/bin/gemology-queue-gem
Github Open Source
Open Source
ISC
2,010
gemology
copiousfreetime
Ruby
Code
38
157
#!/usr/bin/env ruby require 'gemology' job_name = ARGV.shift gem_name = ARGV.shift usage ="Usage: #{File.basename( $0 )} #{::Gemology::ResqueJob.job_names.join("|")} gem-version.gem" abort usage unless (job_name && gem_name) abort usage unless ::Gemology::ResqueJob.valid_job_name?( job_name ) job_class = ::Gemolo...
36,589
https://github.com/gardener/external-dns-management/blob/master/vendor/github.com/gardener/controller-manager-library/pkg/controllermanager/controller/reconcile/reconcilers/support.go
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MIT
2,023
external-dns-management
gardener
Go
Code
609
2,123
/* * SPDX-FileCopyrightText: 2020 SAP SE or an SAP affiliate company and Gardener contributors * * SPDX-License-Identifier: Apache-2.0 * */ package reconcilers import ( "fmt" "k8s.io/apimachinery/pkg/runtime/schema" "github.com/gardener/controller-manager-library/pkg/controllermanager/controller" "github.c...
41,351
https://github.com/cpswarm/deployment-tool/blob/master/build/linux/Dockerfile
Github Open Source
Open Source
Apache-2.0
2,020
deployment-tool
cpswarm
Dockerfile
Code
59
239
FROM golang:stretch ARG ZEROMQ_VER=4.3.2 LABEL ZEROMQ_VER=$ZEROMQ_VER RUN apt update && apt install -y wget libtool pkg-config build-essential autoconf automake libsodium-dev RUN wget https://github.com/zeromq/libzmq/releases/download/v$ZEROMQ_VER/zeromq-$ZEROMQ_VER.tar.gz && \ tar -zxvf zeromq-$ZEROMQ_VER.tar.g...
3,606
https://github.com/havit/HavitFramework/blob/master/Havit.Web/UI/WebControls/GridViewDataFilteringEventHandler.cs
Github Open Source
Open Source
MIT
2,022
HavitFramework
havit
C#
Code
32
115
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Web.UI.WebControls; namespace Havit.Web.UI.WebControls { /// <summary> /// Událost GridViewDataFiltering. /// </summary> public delegate void GridViewDataFilte...
39,587
https://github.com/mayyyc/matters-editor/blob/master/src/matchers/lineBreaker.ts
Github Open Source
Open Source
Apache-2.0
2,022
matters-editor
mayyyc
TypeScript
Code
33
86
import { Quill } from 'react-quill' const Delta = Quill.import('delta') const lineBreakMatcher = (node: HTMLElement, delta: any) => { return node.classList.contains('smart') ? new Delta().insert({ smartBreak: false }) : delta } export default lineBreakMatcher
46,964
https://github.com/apple/swift/blob/master/lib/Sema/TypeCheckExpr.cpp
Github Open Source
Open Source
Apache-2.0, Swift-exception
2,023
swift
apple
C++
Code
2,924
8,795
//===--- TypeCheckExpr.cpp - Type Checking for Expressions ----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
34,863
https://github.com/hero0812/ZoomPreviewPicture/blob/master/app/src/main/java/com/example/previewpicture/rec/MyBaseQuickAdapter.java
Github Open Source
Open Source
Apache-2.0
2,021
ZoomPreviewPicture
hero0812
Java
Code
71
351
package com.example.previewpicture.rec; import android.content.Context; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.example.previewpicture.R; import com.previewlibrary.enitity.T...
2,362
https://github.com/OzzayNetwork/staff-profiler/blob/master/app/Http/Controllers/PostsController.php
Github Open Source
Open Source
MIT
null
staff-profiler
OzzayNetwork
PHP
Code
371
1,613
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Post; use App\User; use Artisan; use Carbon\Carbon; use Illuminate\Support\Facades\Auth; class PostsController extends Controller { /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ ...
15,178
https://github.com/ReinanHS/vendomeulivro/blob/master/resources/js/components/Product/ProductReview.vue
Github Open Source
Open Source
Apache-2.0
null
vendomeulivro
ReinanHS
Vue
Code
514
1,922
<template> <article class="card-review d-flex mb-4"> <div class="card-user-photo"> <div v-if="!loadImage" class="image-load placeholdershimmer"></div> <img v-show="loadImage" :src="review.user.image" aria-hidden="true" @load="onImgLoad()" /> </div> <div class="card-bo...
8,621
https://github.com/shelycim/campwork-day-2.1/blob/master/src/com/company/DayManager.java
Github Open Source
Open Source
MIT
2,021
campwork-day-2.1
shelycim
Java
Code
27
69
package com.company; public class DayManager { public void addContent (Day day, Content content) { day.Contents.add(content); } public void deleteContent (Day day, Content content) { day.Contents.remove(content); } }
3,939
https://github.com/Triverla/laravel-monnify/blob/master/src/Helpers/IncomeSplitConfig.php
Github Open Source
Open Source
MIT
2,023
laravel-monnify
Triverla
PHP
Code
35
124
<?php namespace Triverla\LaravelMonnify\Helpers; class IncomeSplitConfig { private array $incomeSplitConfig = []; public function __construct(CardDetails ...$reservedAccountSplits) { foreach ($reservedAccountSplits as $split) { $this->incomeSplitConfig[] = $split->toArray(); ...
42,017
https://github.com/okanji/range-web/blob/master/src/components/loginPage/index.js
Github Open Source
Open Source
Apache-2.0
null
range-web
okanji
JavaScript
Code
489
1,501
import React, { Component } from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Icon } from 'semantic-ui-react' import { IMAGE_SRC, LOCAL_STORAGE_KEY } from '../../constants/variables' import { LOGIN_TITLE, APP_NAME } from '../../constants/strings' import { detectIE, isTokenEx...
3,248
https://github.com/dukerspace/Mari/blob/master/src/Core/Database/Migrations/2015_09_07_040905_create_setting_table.php
Github Open Source
Open Source
MIT
null
Mari
dukerspace
PHP
Code
47
167
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSettingTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('settings',function($t){ $t->increments('setting_...
39,198
https://github.com/nawalgupta/Vokinhzopas/blob/master/source/Leap Piano/Assets/Materials/Wood_Bamboo_Medium.mat.meta
Github Open Source
Open Source
MIT
2,017
Vokinhzopas
nawalgupta
Unity3D Asset
Code
6
39
fileFormatVersion: 2 guid: 9d57deec8f686194d89df329be6bc60a NativeFormatImporter: userData:
13,308
https://github.com/etclabscore/evm_llvm/blob/master/test/MC/AArch64/coff-basic.ll
Github Open Source
Open Source
NCSA, LLVM-exception, Apache-2.0
2,020
evm_llvm
etclabscore
LLVM
Code
23
54
; RUN: llc -mtriple aarch64-windows < %s | FileCheck %s define i32 @foo() { entry: ret i32 1 } ; CHECK: .globl foo
52,898
https://github.com/mogar/KiCAD_libs/blob/master/modules/models/Yageo_ANT2012.scad
Github Open Source
Open Source
MIT
2,022
KiCAD_libs
mogar
null
Spoken
4
29
translate(v=[0,0,0.5]){cube([2, 1.25, 1], true);}
3,462
https://github.com/dram1008/i-am-avatar/blob/master/updateComposer.sh
Github Open Source
Open Source
BSD-3-Clause
2,018
i-am-avatar
dram1008
Shell
Code
4
24
#!/bin/sh /opt/php5.6/bin/php ./composer.phar update
19,717
https://github.com/threefoldtech/threefold-forums/blob/master/script/import_scripts/socialcast/title.rb
Github Open Source
Open Source
Apache-2.0
null
threefold-forums
threefoldtech
Ruby
Code
87
293
# frozen_string_literal: true require_relative './socialcast_message.rb' require_relative './socialcast_user.rb' require 'set' require File.expand_path(File.dirname(__FILE__) + "/../base.rb") MESSAGES_DIR = "output/messages" def titles topics = 0 total = count_files(MESSAGES_DIR) Dir.foreach(MESSAGES_DIR) do |...
22,216
https://github.com/TrianguloY/Add-all-to-watch-later/blob/master/app/src/main/java/com/trianguloy/watchlaterall/OpenLinkActivity.java
Github Open Source
Open Source
MIT
2,021
Add-all-to-watch-later
TrianguloY
Java
Code
102
412
package com.trianguloy.watchlaterall; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; /** * Class that opens the backgroundActivity when clicking a youtube link */ public class OpenLinkActivity extends Activity { private static final String EXTRA_NA...
51,415
https://github.com/hasura/graphql-engine/blob/master/frontend/libs/console/legacy-ce/src/lib/features/Analytics/core/sentry/errorMustBeBlocked/errorMustBeBlocked.test.ts
Github Open Source
Open Source
MIT, Apache-2.0
2,023
graphql-engine
hasura
TypeScript
Code
290
864
import { errorMustBeBlocked } from './errorMustBeBlocked'; describe('errorMustBeBlocked', () => { test('When the error is null, then should return false', () => { expect( errorMustBeBlocked({ error: null, urlPrefix: '/console', pathname: '/console', }) ).toEqual(false); ...
50,750
https://github.com/Leaf-Out/BackEnd/blob/master/src/main/java/leafout/backend/restclient/PaymentProvider.java
Github Open Source
Open Source
MIT
null
BackEnd
Leaf-Out
Java
Code
203
375
package leafout.backend.restclient; import leafout.backend.model.PaymentResponse; import leafout.backend.model.Purchase; import leafout.backend.model.Refund; import leafout.backend.model.User; import leafout.backend.model.exception.PaymentPlatformException; /** * This interface defines the methods a rest client shou...
56,030
https://github.com/magneticbear/Specs/blob/master/AWSiOSSDK/1.3.3/AWSiOSSDK.podspec
Github Open Source
Open Source
MIT
2,021
Specs
magneticbear
Ruby
Code
155
588
Pod::Spec.new do |s| s.name = 'AWSiOSSDK' s.version = '1.3.3' s.license = 'Apache 2.0' s.summary = 'Amazon Web Services SDK for iOS.' s.homepage = 'http://aws.amazon.com/sdkforios' s.author = { 'Amazon Web Services' => 'amazonwebservices' } s.source = { :git =...
28,716
https://github.com/atprogrammerashu/neplar-product/blob/master/asstes/js/custom_validate.js
Github Open Source
Open Source
MIT
null
neplar-product
atprogrammerashu
JavaScript
Code
2,078
7,723
var validator = $('.form_validation_class').each(function() { $(this).validate({ rules: { full_name: { required: true, minlength: 3, lettersonly: true, }, update_full_name: { required: true, m...
23,246
https://github.com/OlliL/lalaHBCI/blob/master/src/test/java/org/laladev/moneyjinn/hbci/core/entity/mapper/ObjectBuilder.java
Github Open Source
Open Source
BSD-2-Clause
null
lalaHBCI
OlliL
Java
Code
113
425
package org.laladev.moneyjinn.hbci.core.entity.mapper; import java.math.BigDecimal; import java.util.Arrays; import java.util.Calendar; import java.util.Date; import org.kapott.hbci.GV_Result.GVRKUms.UmsLine; import org.kapott.hbci.structures.Konto; import org.kapott.hbci.structures.Saldo; import org.kapott.hbci.stru...
39,128
https://github.com/HPECM/Community/blob/master/docs/101/search/pages_6.js
Github Open Source
Open Source
BSD-2-Clause, Unlicense
2,019
Community
HPECM
JavaScript
Code
11
59
var searchData= [ ['welcome_20to_20the_20content_20manager_20sdk_20documentation_20539',['Welcome to the Content Manager SDK Documentation',['../index.html',1,'']]] ];
24,798
https://github.com/snipekill/FPGen/blob/master/src/klee-float/unittests/Solver/Makefile
Github Open Source
Open Source
BSD-3-Clause
2,022
FPGen
snipekill
Makefile
Code
38
187
##===- unittests/Solver/Makefile ---------------------------*- Makefile -*-===## LEVEL := ../.. include $(LEVEL)/Makefile.config TESTNAME := Solver USEDLIBS := kleaverSolver.a kleaverExpr.a kleeSupport.a kleeBasic.a LINK_COMPONENTS := support include $(LLVM_SRC_ROOT)/unittests/Makefile.unittest ifneq ($(ENABLE_STP)...
38,436
https://github.com/jsz0913/rpg_dvs_evo_open/blob/master/dvs_tracking/include/dvs_tracking/dvs_tracking_nodelet.h
Github Open Source
Open Source
BSD-2-Clause-Patent
2,022
rpg_dvs_evo_open
jsz0913
C
Code
20
78
#pragma once #include <nodelet/nodelet.h> #include "dvs_tracking/tracker.hpp" class DvsTrackingNodelet : public nodelet::Nodelet { public: virtual void onInit(); private: Tracker* node_; };
34,877