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/ozippy/lab/blob/master/WebAPIODataV4Scaffolding/src/System.Web.OData.Design.Scaffolding/Scaffolders/DependencyInstaller.cs
Github Open Source
Open Source
MIT
2,020
lab
ozippy
C#
Code
653
2,106
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Diagnostics.Contracts; using System.IO; using System.Web.OData.Design.Sca...
32,906
https://github.com/takafumihoriuchi/HyLaGI/blob/master/src/simulator/LTLModelChecker.h
Github Open Source
Open Source
BSL-1.0
2,019
HyLaGI
takafumihoriuchi
C
Code
208
1,252
#pragma once #include "Simulator.h" #include "LTLNode.h" #include "SymbolicTrajPrinter.h" #include "ConsistencyChecker.h" namespace hydla { namespace simulator { typedef boost::shared_ptr<hydla::simulator::ConsistencyChecker> consistency_checker_t; typedef boost::shared_ptr<hydla::symbolic_expression::Ask> ...
47,866
https://github.com/patrickneubauer/XMLIntellEdit/blob/master/xmlintelledit/intelledit/src/main/java/at/ac/tuwien/big/xmlintelledit/intelledit/oclvisit/fixinggenerators/PropagateSetChanges.java
Github Open Source
Open Source
MIT
2,021
XMLIntellEdit
patrickneubauer
Java
Code
354
1,603
package at.ac.tuwien.big.xmlintelledit.intelledit.oclvisit.fixinggenerators; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.eclipse.ocl.expressions.OperationCallExp; import at.ac.tuwien.big.xmlintelledit.intelledit.fixer.FixAttempt; import at.ac.tuwien.big.xmlintelledit.intel...
30,538
https://github.com/elizabethbrandt/coincreatif/blob/master/client/src/components/ProductList/StripeIndex.js
Github Open Source
Open Source
Unlicense
2,021
coincreatif
elizabethbrandt
JavaScript
Code
136
336
// import React from "react"; // import ProductItem from '../ProductItem'; // import { Link } from 'react-router-dom'; // export default class ProductList extends React.Component { // constructor(props) { // super(props); // this.state = { // products: [] // } // } // componentDidMount() { //...
28,950
https://github.com/GatsbyNewton/springboot/blob/master/spring-boot-mybatis-pagehelper/src/main/java/edu/wzm/dao/PersonDao.java
Github Open Source
Open Source
Apache-2.0
null
springboot
GatsbyNewton
Java
Code
22
96
package edu.wzm.dao; import edu.wzm.entity.Person; import org.apache.ibatis.annotations.Param; import java.util.List; public interface PersonDao { List<Person> getByPage(@Param("pageSize") int pageSize, @Param("pageNum") int pageNum); List<Person> getAll(); }
1,406
https://github.com/gunjangidwani/shopping-assignment/blob/master/Component/styles/GlobalStyle.js
Github Open Source
Open Source
MIT
null
shopping-assignment
gunjangidwani
JavaScript
Code
123
488
import styled, { createGlobalStyle } from "styled-components"; export const InnerStyle = styled.main` margin: 0 auto; right: 0; font-size: 0.75rem; padding-top: var(--headerHeight); max-width: var(--maxWidth); @media only screen and (max-width: 767px) { max-width: 100%; padding-top: calc(var(--head...
22,213
https://github.com/KaimingOuyang/HPC-K-Means/blob/master/acml/gfortran64_mp_int64/examples/dzfft1d_c_example.c
Github Open Source
Open Source
BSD-3-Clause
2,016
HPC-K-Means
KaimingOuyang
C
Code
177
577
/* dzfft1d Example Program Text */ /* * ACML version 5.0 Copyright AMD,NAG 2011 */ #include <acml.h> #include <stdio.h> #include <stdlib.h> int main(void) { #define NMAX 20 long i, info, j, n; double x[NMAX], xx[NMAX]; doublecomplex y[NMAX/2+1]; double *comm; printf("ACML example: FFT of a real sequence...
47,123
https://github.com/punker76/AvaloniaBehaviors/blob/master/samples/BehaviorsTestApplication/ViewModels/ItemViewModel.cs
Github Open Source
Open Source
MIT
null
AvaloniaBehaviors
punker76
C#
Code
61
195
using System.Collections.ObjectModel; using BehaviorsTestApplication.ViewModels.Core; using ReactiveUI; namespace BehaviorsTestApplication.ViewModels; public class ItemViewModel : ViewModelBase { private string _name; private ObservableCollection<ItemViewModel>? _items; public string Name { ...
6,454
https://github.com/soroush-tabesh/ap2020-tetris/blob/master/src/main/java/ir/soroushtabesh/tetris/controllers/GameLoader.java
Github Open Source
Open Source
MIT
null
ap2020-tetris
soroush-tabesh
Java
Code
96
330
package ir.soroushtabesh.tetris.controllers; import ir.soroushtabesh.tetris.views.GameFrame; import ir.soroushtabesh.tetris.views.LoaderFrame; import javax.swing.*; public class GameLoader { private static GameLoader gameLoader; private GameFrame gameFrame; private LoaderFrame loaderFrame; private G...
3,881
https://github.com/PKUfudawei/cmssw/blob/master/CondTools/SiStrip/test/SiStripDetVOffReader_cfg.py
Github Open Source
Open Source
Apache-2.0
2,021
cmssw
PKUfudawei
Python
Code
95
509
import FWCore.ParameterSet.Config as cms process = cms.Process("DetVOffReader") process.MessageLogger = cms.Service("MessageLogger", cerr = cms.untracked.PSet( enable = cms.untracked.bool(False) ), debugModules = cms.untracked.vstring(''), files = cms.untracked.PSet( SiStripDetVOffRead...
15,364
https://github.com/afiune/kitchen-vagrant/blob/master/spec/kitchen/provider/virtualbox/machine_spec.rb
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,015
kitchen-vagrant
afiune
Ruby
Code
241
1,001
require 'kitchen/provider/virtualbox/machine' class DummyShellOut attr_accessor :data def stdout data end end describe Kitchen::Provider::VirtualBox::Machine do let(:uuid) { "19262da0-4890-4f58-9fab-954e379dac15"} let(:vagrant_root) { File.join(File.expand_path(__FILE__), %w{.kitchen kitchen-vagrant...
35,979
https://github.com/hernanmd/pharo/blob/master/src/Polymorph-Widgets.package/DropListMorph.class/instance/updateList.st
Github Open Source
Open Source
MIT
2,019
pharo
hernanmd
null
Spoken
20
52
updating updateList "Refresh the list." self getListSelector isSymbol ifTrue: [ self list: (self model perform: self getListSelector). listSelectionIndex := 0]
30,471
https://github.com/TeXmeijin/type-safe-microcms-query/blob/master/test-d/index.test-d.ts
Github Open Source
Open Source
MIT
null
type-safe-microcms-query
TeXmeijin
TypeScript
Code
248
846
import { expectType } from "tsd"; import { MicroCMSRequestFields } from '../src/index'; type ValidFields = MicroCMSRequestFields<'title,main', { title: 'hoge', main: 'hoge' }> type ValidFieldsThree = MicroCMSRequestFields<'title,main,updatedAt', { title: 'hoge', main: 'hoge', updatedAt: 'hoge' }> type ValidFieldsFour ...
19,858
https://github.com/frozsgy/JotSheets/blob/master/views/add/end.tpl
Github Open Source
Open Source
MIT
null
JotSheets
frozsgy
null
Spoken
26
60
<h3>Webhook succesfully created!</h2> <p>You should now see your submissions sent to the sheets that you have chosen earlier. You may close this window.</p> <script>window.onload = closeWindow();</script>
33,153
https://github.com/veriKami/ePF_API_doc/blob/master/ePF_API_doxy-0.2.x-dev/html/classep___s_p___haslo___tematyczne.js
Github Open Source
Open Source
MIT
null
ePF_API_doc
veriKami
JavaScript
Code
35
330
var classep___s_p___haslo___tematyczne = [ [ "__toString", "classep___s_p___haslo___tematyczne.html#a7516ca30af0db3cdbf9a7739b48ce91d", null ], [ "getDataStruct", "classep___s_p___haslo___tematyczne.html#a79dabf680e30ee6e62508a8df24ed243", null ], [ "orzeczenia_sp_hasla", "classep___s_p___haslo___tematyczne...
37,380
https://github.com/HyperLethalVector/ProjectEsky-UnityIntegration/blob/master/com.microsoft.mixedreality.webrtc-2.0.2/package/Editor/MicrophoneSourceEditor.cs
Github Open Source
Open Source
MIT
2,022
ProjectEsky-UnityIntegration
HyperLethalVector
C#
Code
137
506
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using UnityEditor; using UnityEngine; namespace Microsoft.MixedReality.WebRTC.Unity.Editor { /// <summary> /// Inspector editor for <see cref="MicrophoneSource"/>. /// </summary> [CustomEditor(typeof(MicrophoneSource))] [Ca...
40,648
https://github.com/VladimirLafazan/TradeItIosTicketSDK2/blob/master/TradeItIosTicketSDK2Tests/FakeTradeItDeviceManager.swift
Github Open Source
Open Source
Apache-2.0
2,022
TradeItIosTicketSDK2
VladimirLafazan
Swift
Code
37
129
@testable import TradeItIosTicketSDK2 class FakeTradeItDeviceManager: TradeItDeviceManager { let calls = SpyRecorder() override func authenticateUserWithTouchId(onSuccess: @escaping () -> Void, onFailure: @escaping () -> Void) { self.calls.record( #function, args: [ ...
50,884
https://github.com/swordman1205/Laravel5-Vue.js-webapp/blob/master/app/Services/FilterService.php
Github Open Source
Open Source
MIT
null
Laravel5-Vue.js-webapp
swordman1205
PHP
Code
143
679
<?php namespace App\Services; use App\Course; use Illuminate\Pagination\LengthAwarePaginator; use Illuminate\Pagination\Paginator; class FilterService { protected $filters; protected $searchString; protected $latitude; protected $longitude; /** * FilterService constructor. * @param $fi...
21,267
https://github.com/PlumCantaloupe/circlesxr/blob/master/src/components/circles-shadow.js
Github Open Source
Open Source
MIT
2,023
circlesxr
PlumCantaloupe
JavaScript
Code
128
396
'use strict'; AFRAME.registerComponent('circles-shadow', { schema: { cast: {type: 'boolean', default: true}, receive: {type: 'boolean', default: true}, applyToChildren: {type: 'boolean', default: true} }, multiple: false, //do not allow multiple instances of this...
42,261
https://github.com/swiftops/sahi-automation-report-filter/blob/master/.gitignore
Github Open Source
Open Source
Apache-2.0
2,019
sahi-automation-report-filter
swiftops
Ignore List
Code
7
34
.idea/ venv/ **__pycache__/ build/ log/app.log .project .pydevproject
39,890
https://github.com/KyloJorgensen/takechargeandlive/blob/master/client/src/app/components/project/project-switch.component.js
Github Open Source
Open Source
MIT
null
takechargeandlive
KyloJorgensen
JavaScript
Code
142
519
'use strict'; import React, { Component } from 'react'; import { Route, Switch } from 'react-router'; import { NavLink } from "react-router-dom"; import ProjectMain from './project-main.container.js'; import Project from './project.container.js'; import ProjectEdit from './project-edit.container.js'; import ProjectNew...
13,034
https://github.com/mercado-shopping/base/blob/master/macOS/PeopleInSpace/PeopleInSpace/ContentView.swift
Github Open Source
Open Source
Apache-2.0
2,021
base
mercado-shopping
Swift
Code
65
210
import SwiftUI import common struct ContentView: View { @ObservedObject var peopleInSpaceViewModel = PeopleInSpaceViewModel(repository: PeopleInSpaceRepository()) var body: some View { NavigationView { List(peopleInSpaceViewModel.people, id: \.name) { person in ...
37,658
https://github.com/elmerjc/universidade-digital/blob/master/openerp/addons/ud_almoxarifado/ud_almoxarifado.py
Github Open Source
Open Source
MIT
2,018
universidade-digital
elmerjc
Python
Code
1,381
5,758
# coding: utf-8 from openerp.osv import fields, osv from datetime import datetime from openerp.addons.ud_almoxarifado import utils class ud_almoxarifado_produto(osv.osv): _name = 'ud.almoxarifado.produto' _description = u'Cadastrar produto' _order = 'produto asc' _rec_name = 'produto' _columns = ...
13,271
https://github.com/niteshseram/Opportunity-Calendar-Frontend/blob/master/src/Components/SocialIcons/SocialIcons.js
Github Open Source
Open Source
MIT
2,021
Opportunity-Calendar-Frontend
niteshseram
JavaScript
Code
50
274
import React from "react"; import styles from '../../CSS/SocialIcons.module.css'; import { FaLinkedinIn, FaInstagram, FaTwitter, FaPhoneAlt, FaGithub, } from 'react-icons/fa'; export default function SocialIcons() { return ( <div className={styles.socialIcons}> <a data-testid="linkedin" href='htt...
19,235
https://github.com/clarasimanjuntak/test/blob/master/app/Buku.php
Github Open Source
Open Source
MIT
2,020
test
clarasimanjuntak
PHP
Code
22
69
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Buku extends Model { protected $table = "data_buku"; protected $fillable = ['id', 'judul', 'penulis', 'penerbit']; }
6,127
https://github.com/LareinaH/ABMall-Web-Admin/blob/master/src/routes/ActivityManage/ActivityAddInstance.js
Github Open Source
Open Source
MIT
null
ABMall-Web-Admin
LareinaH
JavaScript
Code
995
3,936
import React, { PureComponent } from 'react'; import OSS from 'ali-oss'; import co from 'co'; import moment from 'moment'; import BraftEditor from 'braft-editor'; import 'braft-editor/dist/braft.css'; import { connect } from 'dva'; import { Card, Row, Col, Input, Button, DatePicker, Select, InputNumber, Modal } from 'a...
48,711
https://github.com/Dreaming381/LatiosFrameworkMiniDemos/blob/master/LatiosColorDemo/Assets/_Code/Authoring/TriggerAuthoring.cs
Github Open Source
Open Source
MIT
2,022
LatiosFrameworkMiniDemos
Dreaming381
C#
Code
30
105
using Unity.Entities; using Unity.Mathematics; using UnityEngine; namespace Dragons { [DisallowMultipleComponent] public class TriggerAuthoring : MonoBehaviour, IConvertGameObjectToEntity { public void Convert(Entity entity, EntityManager dstManager, GameObjectConversionSystem conversionSystem) ...
45,008
https://github.com/xiemingzhi/pythonproject/blob/master/lang/range-test.py
Github Open Source
Open Source
MIT
null
pythonproject
xiemingzhi
Python
Code
10
33
str = '123' for x in range(len(str)-1, -1, -1): print(str[x])
19,506
https://github.com/BRKsReginaldo/CheckPoint/blob/master/app/Http/Controllers/BagController.php
Github Open Source
Open Source
MIT
null
CheckPoint
BRKsReginaldo
PHP
Code
47
189
<?php namespace App\Http\Controllers; use App\Http\Resources\ItensResource; use App\Travel; use Illuminate\Http\Request; class BagController extends Controller { public function itens(Travel $travel, Request $request) { if (!$travel->bag()->whereIn('itens', $request->itens)->exists()) { $...
38,917
https://github.com/rog-works/lf3py/blob/master/lf3py/app/apiapp.py
Github Open Source
Open Source
CNRI-Python
null
lf3py
rog-works
Python
Code
59
226
from lf3py.api.symbols import IApiRender, IApiRouter, IApiSchema from lf3py.app.app import App from lf3py.app.definitions import inlineapi_modules from lf3py.app.types import ApiBlueprint from lf3py.config import ModuleDefinitions class ApiApp(App): @classmethod def blueprint(cls) -> ApiBlueprint: ret...
40,810
https://github.com/dram/metasfresh/blob/master/backend/de.metas.externalsystem/src/main/sql/postgresql/system/80-de.metas.externalsystem/5593800_sys_gh11341_Drop_ExternalSystem_CamelUrl.sql
Github Open Source
Open Source
RSA-MD
2,022
metasfresh
dram
SQL
Code
154
500
-- 2021-06-19T06:33:14.878Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=576650 ; -- 2021-06-19T06:33:14.941Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator DELETE FROM AD_Element_Link WHERE AD_Field_ID=628837 ; -- 2021-06-19T06:...
50,025
https://github.com/KTH-EPE/HVDC_IED/blob/master/PMOD DIGOUT/gerber files/PMOD-B.Mask.gbr
Github Open Source
Open Source
MIT
2,020
HVDC_IED
KTH-EPE
Gerber Image
Code
117
1,179
G04 #@! TF.FileFunction,Soldermask,Bot* %FSLAX46Y46*% G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)* G04 Created by KiCad (PCBNEW 4.0.6) date 12/15/17 09:21:46* %MOMM*% %LPD*% G01* G04 APERTURE LIST* %ADD10C,0.100000*% %ADD11R,2.100000X2.100000*% %ADD12C,2.100000*% %ADD13R,2.000000X2.000000*% %ADD14C,2...
23,433
https://github.com/izualkernanaus/COE457_Fall2020/blob/master/SOCKET/server.js
Github Open Source
Open Source
MIT
2,020
COE457_Fall2020
izualkernanaus
JavaScript
Code
71
143
// simple socket server using TCP sockets // load the 'net' module/library var net = require('net'); // create a server with a call-back function // this function is called when a client // request to form a connection. // socket is the socket between the client // and the server. var server = net.createServer(fun...
39,136
https://github.com/manchingchan1992/cananolab/blob/master/software/cananolab-webapp/web/javascript/PublicationManager.js
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,015
cananolab
manchingchan1992
JavaScript
Code
1,302
4,213
var authorCache = {}; var currentPublication = null; var numberOfAuthors = 0; // number of unique authors in the cache, used to // generate author id function clearPublication() { enableOuterButtons(); show("accessBlock"); // clear submission form first PublicationManager.clearPublication(function(publication) { ...
48,227
https://github.com/DomantasP/ErasmusChain/blob/master/test/authentication.js
Github Open Source
Open Source
MIT
2,018
ErasmusChain
DomantasP
JavaScript
Code
51
171
var Authentication = artifacts.require('./Authentication.sol') contract('Authentication', function(accounts) { it('...should sign up and log in a user.', function() { return Authentication.deployed() .then(function(instance) { authenticationInstance = instance return authenticationInstance...
20,590
https://github.com/ZDfordream/TianYueKotlin/blob/master/app/src/main/java/com/zhudong/tianyuekotlin/ui/base/SupportFragment.kt
Github Open Source
Open Source
Apache-2.0
2,019
TianYueKotlin
ZDfordream
Kotlin
Code
421
1,701
package com.zhudong.tianyuekotlin.ui.base import android.app.Activity import android.os.Bundle import android.support.v4.app.FragmentActivity import com.trello.rxlifecycle2.components.support.RxFragment import me.yokeyword.fragmentation.ExtraTransaction import me.yokeyword.fragmentation.ISupportFragment import me.yoke...
13,245
https://github.com/cappyzawa/op-kv/blob/master/pkg/cmd/list/list_test.go
Github Open Source
Open Source
MIT
2,021
op-kv
cappyzawa
Go
Code
210
779
package list_test import ( "bytes" "io/ioutil" "reflect" "testing" "github.com/cappyzawa/op-kv/pkg/cli" "github.com/cappyzawa/op-kv/pkg/cmd/list" "github.com/cappyzawa/op-kv/pkg/helper" "github.com/cappyzawa/op-kv/pkg/mock" "github.com/spf13/cobra" ) func TestNewCmd(t *testing.T) { expect := "test" errStr...
48,533
https://github.com/jacking75/Netowrok_Projects/blob/master/nhn_next_gameserver_lab_2017_IocpServer/IocpNetLib/Exception.h
Github Open Source
Open Source
MIT
2,021
Netowrok_Projects
jacking75
C
Code
31
96
#pragma once #define _WINSOCKAPI_ #include <Windows.h> LONG WINAPI ExceptionFilter(EXCEPTION_POINTERS* exceptionInfo); inline void CRASH_ASSERT(bool isOk) { if ( isOk ) return ; int* crashVal = 0 ; *crashVal = 0xDEADBEEF ; }
34,139
https://github.com/moayyaed/Sitko.Core/blob/master/tests/Sitko.Core.Repository.Tests/SerializationTests.cs
Github Open Source
Open Source
MIT
2,021
Sitko.Core
moayyaed
C#
Code
40
217
using System.Collections.Generic; using System.Linq; using Newtonsoft.Json; using Xunit; namespace Sitko.Core.Repository.Tests { public class SerializationTests { [Fact] public void DeserializeConditionsGroup() { var json = "[{\"conditions\":[{\"property\":\"projectId\",\"op...
27,700
https://github.com/sachinkumarsingh092/urlshort/blob/master/handler/handler.go
Github Open Source
Open Source
MIT
null
urlshort
sachinkumarsingh092
Go
Code
333
780
package handler import ( "net/http" "gopkg.in/yaml.v2" ) // MapHandler will return an http.HandlerFunc (which also // implements http.Handler) that will attempt to map any // paths (keys in the map) to their corresponding URL (values // that each key in the map points to, in string format). // If the path is not p...
435
https://github.com/ronin4net/Plainion.Notes/blob/master/src/Plainion.Notebook/Services/ExportView.cs
Github Open Source
Open Source
BSD-3-Clause
null
Plainion.Notes
ronin4net
C#
Code
66
230
using System.Net; using Plainion.Httpd; using Plainion.Wiki.Http; using Plainion.Wiki.Http.Views; namespace Plainion.Notebook.Services { class ExportView : AbstractRenderView { private WikiMetadata myWikiMetadata; public ExportView(IViewContext context, WikiMetadata wikiMetadata) ...
36,377
https://github.com/Ervin-Liu/WeatherAndroid/blob/master/app/src/main/java/com/example/weatherandroid/adapter/ImageListAdapter.java
Github Open Source
Open Source
Apache-2.0
null
WeatherAndroid
Ervin-Liu
Java
Code
219
848
package com.example.weatherandroid.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView...
31,448
https://github.com/chen0040/cpp-ogre-mllab/blob/master/ETM/src/ETTerrainManager.cpp
Github Open Source
Open Source
MIT
2,021
cpp-ogre-mllab
chen0040
C++
Code
1,487
4,367
/* EDITABLE TERRAIN MANAGER for Ogre Copyright (C) 2007 Holger Frydrych <h.frydrych@gmx.de> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any l...
8,705
https://github.com/GilHoggarth/ukwa-manage/blob/master/install-macos.sh
Github Open Source
Open Source
Apache-2.0
2,021
ukwa-manage
GilHoggarth
Shell
Code
24
123
pip install --no-cache https://github.com/ukwa/hapy/archive/master.zip pip install --no-cache https://github.com/ukwa/python-w3act/archive/master.zip brew install snappy CPPFLAGS="-I/usr/local/include -L/usr/local/lib" pip install python-snappy pip install --no-cache https://github.com/ukwa/crawl-streams/archive/master...
20,703
https://github.com/Ron423c/chromium/blob/master/chrome/browser/permissions/crowd_deny_preload_data.cc
Github Open Source
Open Source
BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause
2,022
chromium
Ron423c
C++
Code
382
1,953
// 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. #include "chrome/browser/permissions/crowd_deny_preload_data.h" #include <string> #include <utility> #include "base/bind.h" #include "base/callback_help...
24,755
https://github.com/gbaudhuin/whatsbehind/blob/master/data/drupal/plugins/search_api_8.x/1.7.diff
Github Open Source
Open Source
Apache-2.0
2,019
whatsbehind
gbaudhuin
null
Spoken
132
1,683
M CHANGELOG.txt bc1f421227e4ce9044089057809d4d88 M modules/search_api_db/search_api_db.info.yml 6014a1a646bc7783133783b57fcc1647 M modules/search_api_db/search_api_db_defaults/search_api_db_defaults.info.yml a45ba9579e296a4de5a7c9fbc2ce807e M modules/search_api_db/src/Plugin/search_api/backend/Database.php 34d8221e296d...
29,137
https://github.com/M-Nurlan/blog/blob/master/models/LoginForm.php
Github Open Source
Open Source
BSD-3-Clause
null
blog
M-Nurlan
PHP
Code
119
447
<?php namespace app\models; use Yii; use yii\base\Model; use yii\base\InvalidParamException; class LoginForm extends Model { public $email; public $password; public $status; public $captcha; public function rules() { return [ [['email', 'password'], 'required'], //['email', 'email'], ['password', '...
41,536
https://github.com/wruiwr/modbat/blob/master/src/test/java/modbat/examples/Counter.java
Github Open Source
Open Source
MIT, ECL-2.0, Apache-2.0, BSD-3-Clause
2,022
modbat
wruiwr
Java
Code
49
108
package modbat.examples; public class Counter { int count = 0; boolean flag = true; public void toggleSwitch() { flag = !flag; } public void inc(int i) { if (!flag) { i &= ~0x1; // bit flip } count += i; } public int value() { return count; } }
12,401
https://github.com/include-yy/awesome-scheme/blob/master/projecteuler/070/070.scm
Github Open Source
Open Source
Unlicense
2,021
awesome-scheme
include-yy
Scheme
Code
204
540
(define N 10000000) (define phi (make-vector N 0)) (vector-set! phi 1 1) (let pro ([i 2]) (cond ((= i N)) ((zero? (vector-ref phi i)) (let f ([j i]) (cond ((>= j N) (pro (+ i 1))) ((zero? (vector-ref phi j)) (vector-set! phi j j) (vector-set! phi j (* (- i 1) (vector-ref phi j) (/ i))...
30,742
https://github.com/jenf/rubyfuck/blob/master/Befunge.rb
Github Open Source
Open Source
MIT
2,010
rubyfuck
jenf
Ruby
Code
542
1,823
befunge98=true # Jumps & Core opcode '"' do push_special_mode("\"") end special_mode '"' do |x| @stack.push(x) unless x=='"'[0] debug @stack.inspect pop_special_mode if x=='"'[0] end opcode "@" do exit end opcode ">" do @pc_direction=[1,0] end opcode "<" do @pc_direction=[-1,0] end opcode "^" do @pc_direction=[0,...
35,000
https://github.com/Swirge/swirgefi-api/blob/master/src/api/stats/auto/getAutoApys.js
Github Open Source
Open Source
MIT
2,021
swirgefi-api
Swirge
JavaScript
Code
112
315
const axios = require('axios'); const pools = require('../../../data/autoPools.json'); const { compound } = require('../../../utils/compound'); const { BASE_HPY } = require('../../../../constants'); const getAutoApys = async () => { let apys = {}; const autoStats = await fetchAutoStats(); const values = pools...
48,677
https://github.com/hendrik-schulte/UnityEnhanced/blob/master/Common/Editor/EditorUtil.cs
Github Open Source
Open Source
MIT
2,021
UnityEnhanced
hendrik-schulte
C#
Code
1,540
3,886
#if UNITY_EDITOR using System; using System.Collections.Generic; using System.Linq; using UE.Common.SubjectNerd.Utilities; using UnityEditor; using UnityEditor.Callbacks; using UnityEngine; using Object = UnityEngine.Object; namespace UE.Common { /// <summary> /// This class offers some utility functions for ...
43,992
https://github.com/rlabok/peteshow/blob/master/tests/suite/core.js
Github Open Source
Open Source
MIT
2,021
peteshow
rlabok
JavaScript
Code
224
1,036
module('core plugin', { setup: function() { NUMBER_REGEX = /^[0-9]*$/ TEXT_REGEX = /^[a-zA-Z0-9.',\/_ -]+$/ EMAIL_REGEX = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,6}$/i DATE_REGEX = /^(19|20)\d\d([- /.])(0[1-9]|1[012])\2(0[1-9]|[12][0-9]|3[01])$/ PHONE_NUMBER_REGEX =...
23,281
https://github.com/CodeSwifterGit/adwenture-works/blob/master/src/AdventureWorks.Application/DataEngine/Purchasing/ShipMethod/Queries/GetShipMethods/ShipMethodSummary.cs
Github Open Source
Open Source
Unlicense
null
adwenture-works
CodeSwifterGit
C#
Code
10
47
namespace AdventureWorks.Application.DataEngine.Purchasing.ShipMethod.Queries.GetShipMethods { public partial class ShipMethodSummary { } }
47,969
https://github.com/bazzi-gg/web/blob/master/src/pages/private-policy.vue
Github Open Source
Open Source
MIT
2,022
web
bazzi-gg
Vue
Code
971
4,557
<template> <section class="section"> <div class="container"> <p class="has-text-centered subtitle">개인정보처리방침</p> <div> <p class="ls2 lh6 bs5 ts4"> <em class="emphasis"> ('BAZZI.GG'이하 'BAZZI.GG') </em> 은(는) 개인정보보호법에 따라 이용자의 개인정보 보호 및 권익을 보호하고 개인정보와 관련한 이용자의 고충을 원활하게...
45,241
https://github.com/little-sparkle/growler_engine_android/blob/master/library/src/main/java/com/littlesparkle/growler/library/activity/BaseFragment.java
Github Open Source
Open Source
Apache-2.0
null
growler_engine_android
little-sparkle
Java
Code
157
598
package com.littlesparkle.growler.library.activity; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; import android.view.LayoutInflater; import android.view.View; import and...
28,040
https://github.com/nickhil388/Angular-Book/blob/master/Singleton_javascript.js
Github Open Source
Open Source
MIT
2,016
Angular-Book
nickhil388
JavaScript
Code
101
324
var Singleton = (function () { var instance; function createInstance() { var object = new Object("I am the instance"); object.message="default message"; object.setMessage=function(m){ object.message = m; } object.getMessage=function(){ return obj...
5,945
https://github.com/hataror1999/shipkit/blob/master/subprojects/shipkit/src/main/groovy/org/shipkit/internal/gradle/downstream/test/TestDownstreamPlugin.java
Github Open Source
Open Source
MIT
2,017
shipkit
hataror1999
Java
Code
101
322
package org.shipkit.internal.gradle.downstream.test; import org.gradle.api.Action; import org.gradle.api.Plugin; import org.gradle.api.Project; import org.shipkit.internal.gradle.util.TaskMaker; import org.shipkit.internal.util.IncubatingWarning; /** * This plugin tests your library end-to-end (e2e) using downstream...
15,434
https://github.com/fossabot/oxium/blob/master/src/decorators/deferHandler.js
Github Open Source
Open Source
MIT
2,020
oxium
fossabot
JavaScript
Code
120
350
import { apply, curry, equals, ifElse, tap } from 'ramda'; import { isFunction } from 'ramda-adjunct'; import { getHandler, getId, setHandler } from '../lens'; import pipeAsync from '../util/pipeAsync'; import { createDebug } from '../util/debug'; import invariant from '../util/invariant'; import { HANDLER, HANDLER_NOT...
15,082
https://github.com/HetuLib/vulhetu/blob/master/dedecms/dedecms-rce/app/include/helpers/extend.helper.php
Github Open Source
Open Source
MIT
null
vulhetu
HetuLib
PHP
Code
196
716
<?php if (!defined('DEDEINC')) {exit('Request Error'); } /** * 扩展小助手 * * @version $Id: extend.helper.php 1 13:58 2010年7月5日 $ * @package DedeCMS.Helpers * @founder IT柏拉图, https://weibo.com/itprato * @author DedeCMS团队 * @copyright Copyright (c) 2007 - 2021, 上海卓卓网络科技有限公司 (DesDev, Inc.) * @license http:/...
24,238
https://github.com/Caserta-Concepts/dataproc_init/blob/master/jupyter/launch-jupyter-interface.sh
Github Open Source
Open Source
Apache-2.0
null
dataproc_init
Caserta-Concepts
Shell
Code
325
944
#!/usr/bin/env bash set -e DIR="${BASH_SOURCE%/*}" [[ ! -d "$DIR" ]] && DIR="$PWD" source "$DIR/../util/utils.sh" function usage { echo "Creates an SSH tunnel and socks proxy and launches Chrome, using the environment " echo "variable DATAPROC_CLUSTER_NAME for the unique cluster name. The cluster metadata " ...
46,027
https://github.com/newapplesho/fogbugzclient-smalltalk/blob/master/pharo-repository/FogBugz-Tools.package/FogBugzBrowser.class/instance/initializeSearchField.st
Github Open Source
Open Source
MIT
2,016
fogbugzclient-smalltalk
newapplesho
null
Spoken
16
55
private - initialization initializeSearchField casesSearchField := SearchMorph new model: self; acceptSelector: #caseSearchAccept:; searchList: OrderedCollection new; asSpecAdapter
25,668
https://github.com/DanielAbacus/KNVUNDBaseDevelopPackage/blob/master/Example/KNVUNDBaseDevelopPackage/Bridging Folder/Expendable Table View and Tag Buttons/Models/KNVUNDETVRelatedTagButtonModel.h
Github Open Source
Open Source
MIT
2,020
KNVUNDBaseDevelopPackage
DanielAbacus
Objective-C
Code
32
126
// // KNVUNDETVRelatedTagButtonModel.h // KNVUNDBaseDevelopPackage_Example // // Created by Erjian Ni on 23/3/18. // Copyright © 2018 niyejunze.j@gmail.com. All rights reserved. // #import "KNVUNDETVTagButtonRelatedBaseModel.h" @interface KNVUNDETVRelatedTagButtonModel : KNVUNDETVTagButtonRelatedBaseModel - (NSS...
35,902
https://github.com/HotcakesCommerce/hotcakes-commerce-core/blob/master/Website/DesktopModules/Hotcakes/Core/Admin/Configuration/Shipping_Methods_Edit.aspx
Github Open Source
Open Source
MIT
2,023
hotcakes-commerce-core
HotcakesCommerce
null
Spoken
41
244
<%@ Page Language="C#" MasterPageFile="../AdminNav.master" AutoEventWireup="True" Inherits="Hotcakes.Modules.Core.Admin.Configuration.Shipping_EditMethod" Title="Untitled Page" CodeBehind="Shipping_Methods_Edit.aspx.cs" %> <%@ Register Src="../Controls/NavMenu.ascx" TagName="NavMenu" TagPrefix="hcc" %> <asp:Content ID...
29,428
https://github.com/arpit0891/Project-euler/blob/master/p005.py
Github Open Source
Open Source
MIT
2,020
Project-euler
arpit0891
Python
Code
108
223
import fractions # The smallest number n that is evenly divisible by every number in a set {k1, k2, ..., k_m} # is also known as the lowest common multiple (LCM) of the set of numbers. # The LCM of two natural numbers x and y is given by LCM(x, y) = x * y / GCD(x, y). # When LCM is applied to a collection of numbers...
43,105
https://github.com/Bizzarrus/CloakEngine/blob/master/CloakEngine/CloakEngine/Rendering/PipelineState.h
Github Open Source
Open Source
BSD-2-Clause
null
CloakEngine
Bizzarrus
C
Code
85
390
#pragma once #ifndef CE_API_RENDERING_PIPELINESTATE_H #define CE_API_RENDERING_PIPELINESTATE_H #include "CloakEngine/Defines.h" #include "CloakEngine/Helper/SavePtr.h" #include "CloakEngine/Global/Graphic.h" #include "CloakEngine/Files/Shader.h" #include "CloakEngine/Rendering/RootDescription.h" namespace CloakEngine...
35,559
https://github.com/s3db/s3db/blob/master/query_item.php
Github Open Source
Open Source
MIT
2,020
s3db
s3db
PHP
Code
239
1,233
<?php ini_set('display_errors',0); if($_REQUEST['su3d']) { ini_set('display_errors',1); } if($_SERVER['HTTP_X_FORWARDED_HOST']!='') { $def = $_SERVER['HTTP_X_FORWARDED_HOST']; } else { $def = $_SERVER['HTTP_HOST']; } if(file_exists('config.inc.php')) { include('config.inc.php'); } else { Header('Locat...
40,829
https://github.com/cckmit/StarPlanner/blob/master/bwapi-bridge/src/org/bwapi/bridge/swig/SWIG_Order.java
Github Open Source
Open Source
MIT
2,015
StarPlanner
cckmit
Java
Code
203
754
/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.40 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * -----------------------------...
32,097
https://github.com/jphp-group/jphp-richtextfx-ext/blob/master/sdk/php/gui/UXGenericStyledArea.php
Github Open Source
Open Source
Apache-2.0
2,018
jphp-richtextfx-ext
jphp-group
PHP
Code
445
1,044
<?php namespace php\gui; use php\gui\layout\UXRegion; abstract class UXGenericStyledArea extends UXRegion { /** * @var boolean */ public $editable; /** * @var boolean */ public $wrapText; /** * @var UXContextMenu */ public $contextMenu; /** * @var st...
41,331
https://github.com/al3xliu/checker-framework/blob/master/framework/tests/methodval/MethodValInferenceTest.java
Github Open Source
Open Source
MIT
2,019
checker-framework
al3xliu
Java
Code
547
1,859
import org.checkerframework.common.reflection.qual.ClassBound; import org.checkerframework.common.reflection.qual.ClassVal; import org.checkerframework.common.reflection.qual.MethodVal; import org.checkerframework.common.value.qual.ArrayLen; import org.checkerframework.common.value.qual.StringVal; import java.lang.ref...
51,295
https://github.com/ternsip/glade/blob/master/src/main/java/com/ternsip/glade/universe/common/Vector3Interpolated.java
Github Open Source
Open Source
Apache-2.0
2,021
glade
ternsip
Java
Code
47
217
package com.ternsip.glade.universe.common; import org.joml.Vector3f; import org.joml.Vector3fc; public class Vector3Interpolated extends Interpolated<Vector3f> { public Vector3Interpolated(Vector3f value) { super(new Vector3f(value), new Vector3f(value)); } public void update(Vector3fc value) { ...
31,212
https://github.com/hpi-swa-teaching/SWT15-Project-04/blob/master/packages/SwaLint-Preferences.package/SLPreferences.class/class/chooseTextHighlightColor.st
Github Open Source
Open Source
MIT
2,021
SWT15-Project-04
hpi-swa-teaching
null
Spoken
30
100
text highlighting chooseTextHighlightColor "Let the user choose the text-highlight color" ColorPickerMorph new choseModalityFromPreference; sourceHand: self currentHand; target: self; selector: #textHighlightColor:; originalColor: self textHighlightColor; putUpFor: self currentHand near: self currentHand...
35,442
https://github.com/SequencingDOTcom/Weather-My-Way-RTP-App/blob/master/Web/WeatherApp/Controllers/DaoLayer/IDaoFactory.cs
Github Open Source
Open Source
MIT
2,022
Weather-My-Way-RTP-App
SequencingDOTcom
C#
Code
27
113
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Sequencing.WeatherApp.Controllers.DaoLayer { public interface IDaoFactory { IDeviceTokenDao GetDeviceTokenDao(); ISendInfoDao GetSendInfoDao(); IUserInfoDao GetUserInfoDao(); IRecomme...
31,157
https://github.com/confluentinc/kafka/blob/master/trogdor/src/main/java/org/apache/kafka/trogdor/task/TaskWorker.java
Github Open Source
Open Source
Apache-2.0, GPL-2.0-only, LicenseRef-scancode-public-domain, W3C, CC0-1.0, GPL-1.0-or-later, CPL-1.0, GPL-2.0-or-later, LicenseRef-scancode-generic-export-compliance, LicenseRef-scancode-other-permissive, CC-PDDC, BSD-3-Clause, APSL-2.0, LicenseRef-scancode-free-unknown, EPL-2.0, CDDL-1.0, MIT, LicenseRef-scancode-unkn...
2,023
kafka
confluentinc
Java
Code
562
897
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
27,749
https://github.com/chenleixing/javaUtils/blob/master/distributed-transaction-utils/DistributedTransactionOperations.java
Github Open Source
Open Source
Apache-2.0
2,016
javaUtils
chenleixing
Java
Code
15
66
package com.inspur.hsf.transaction.distributed; public abstract interface DistributedTransactionOperations { public abstract Object execute(DistributedTransactionCallback paramDistributedTransactionCallback) throws com.inspur.hsf.transaction.distributed.DistributedTransactionException; }
11,309
https://github.com/PedroECB/category-crud/blob/master/resources/views/index.blade.php
Github Open Source
Open Source
MIT
null
category-crud
PedroECB
PHP
Code
184
924
@extends('layout.main') @section('title','Categorias | Home') @section('content') <h1 class="text-center font-weight-bold text-danger">Laravel 6</h1> <div class="container"> <div class="my-3 p-3 bg-white rounded box-shadow"> <h6 class="border-bottom border-gray pb-2 mb-0 font-weig...
46,002
https://github.com/phambryan/aws-sdk-for-java/blob/master/aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/GetSnapshotsRequest.java
Github Open Source
Open Source
Apache-2.0
null
aws-sdk-for-java
phambryan
Java
Code
3,546
7,747
/* * Copyright 2016-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
37,775
https://github.com/ronaldoussoren/pyobjc/blob/master/pyobjc-framework-GameKit/PyObjCTest/test_gkachievementviewcontroller.py
Github Open Source
Open Source
MIT
2,023
pyobjc
ronaldoussoren
Python
Code
14
64
import GameKit # noqa: F401 from PyObjCTools.TestSupport import TestCase class TestGKAchievementViewController(TestCase): def testProtocols(self): self.assertProtocolExists("GKAchievementViewControllerDelegate")
34,169
https://github.com/hongframework/hamster/blob/master/scheduler/src/main/scala/com/hframework/datacenter/hamster/arbitrate/ZKMonitor.scala
Github Open Source
Open Source
Apache-2.0
2,020
hamster
hongframework
Scala
Code
57
299
package com.hframework.datacenter.hamster.arbitrate import com.hframe.hamster.common.AddressUtils import com.hframe.hamster.node.zk.{ZKPathUtils, ZooKeeperClient} import com.hframework.utils.scala.Logging import com.hframework.datacenter.hamster.zookeeper.ZKClient import org.I0Itec.zkclient.IZkStateListener import org...
16,546
https://github.com/mengps/FFmpeg-Learn/blob/master/VideoTest/src/mainwindow.cpp
Github Open Source
Open Source
MIT
2,022
FFmpeg-Learn
mengps
C++
Code
522
2,307
#include "mainwindow.h" extern "C" { #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavutil/imgutils.h> #include <libswscale/swscale.h> } #include <QApplication> #include <QDropEvent> #include <QHBoxLayout> #include <QMimeData> #include <QPushButton> #include <QPainter> #include <QScree...
36,753
https://github.com/jfl88/brewmon/blob/master/views/index.jade
Github Open Source
Open Source
MIT
null
brewmon
jfl88
null
Spoken
88
345
extends layout block content div(ng-controller='homeCtrl', class='container') .row .col-md-12 h2=title hr .row .col-sm-9.col-md-6 .panel.panel-default .panel-heading label Current Brew .panel-body p label Name:&nbsp...
49,734
https://github.com/apple006/gulimall/blob/master/gulimall-seckill/src/main/java/com/vivi/gulimall/seckill/GulimallSeckillApplication.java
Github Open Source
Open Source
Apache-2.0
2,021
gulimall
apple006
Java
Code
33
203
package com.vivi.gulimall.seckill; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org....
6,621
https://github.com/JacksonSummers66/09-FPS/blob/master/Project/.import/wheelTractorDarkFront_SE.png-a7d5b0c2186178ca0f824dfbafe7771f.md5
Github Open Source
Open Source
MIT
2,020
09-FPS
JacksonSummers66
null
Spoken
2
53
source_md5="c05efe420f898136f157ef6584de935f" dest_md5="a9a02211b046401b727a675d6783a3f5"
4,724
https://github.com/rpasta42/config_files/blob/master/misc/resolvconf-fixer/Makefile
Github Open Source
Open Source
WTFPL
2,015
config_files
rpasta42
Makefile
Code
13
49
default: gcc main.c -o resolvconf-fixer clean: rm resolvconf-fixer install: sudo cp resolvconf-fixer /bin
18,285
https://github.com/mitre-icarus/ICArUS-Challenge-Problem-Software-and-Data/blob/master/src/main/java/org/mitre/icarus/cps/app/widgets/map/phase_2/objects/area_grid/ContinuousBinsColorMap.java
Github Open Source
Open Source
Apache-2.0
null
ICArUS-Challenge-Problem-Software-and-Data
mitre-icarus
Java
Code
404
1,095
/* * NOTICE * This software was produced for the office of the Director of National Intelligence (ODNI) * Intelligence Advanced Research Projects Activity (IARPA) ICArUS program, * BAA number IARPA-BAA-10-04, under contract 2009-0917826-016, and is subject * to the Rights in Data-General Clause 52.227-14, Alt. ...
45,625
https://github.com/subramp-prep/leetcode/blob/master/problems/575.Distribute_Candies/li.py
Github Open Source
Open Source
Unlicense
null
leetcode
subramp-prep
Python
Code
37
148
# coding=utf-8 # Author: Jianghan LI # Question: 575.Distribute_Candies # Date: 2017-06-12 09:34 - 09:34 # Complexity: O(N) class Solution(object): def distributeCandies(self, candies): """ :type candies: List[int] :rtype: int """ return min(len(candies) / 2, len(collectio...
48,853
https://github.com/thiendn160794/MultiViewAdapter/blob/master/extensions/decorator/src/main/java/mva2/extension/decorator/DividerDecoration.java
Github Open Source
Open Source
Apache-2.0
2,022
MultiViewAdapter
thiendn160794
Java
Code
497
1,458
/* * Copyright 2017 Riyaz Ahamed * * 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 ...
11,989
https://github.com/MartKazak/CQRSwithMediator/blob/master/DemoApp.API/DemoApp.DataAccess.EF/Users/Handlers/Queries/GetUsersQueryHandler.cs
Github Open Source
Open Source
MIT
null
CQRSwithMediator
MartKazak
C#
Code
57
242
using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; using DemoApp.DataAccess.EF.Users.Extensions; using DemoApp.Domain.Repositories; using DemoApp.Types.Abstractions; using DemoApp.Types.Contracts.Users; using DemoApp.Types.Users.Queries; namespace DemoApp.DataAccess.EF.Users.Handl...
22,077
https://github.com/popegreg/pmi-subsystem/blob/master/app/Http/Controllers/SSS/DataUpdateController.php
Github Open Source
Open Source
MIT
null
pmi-subsystem
popegreg
PHP
Code
1,463
6,853
<?php namespace App\Http\Controllers\SSS; use App\Http\Controllers\Controller; use App\Http\Controllers\CommonController; use Illuminate\Http\Request; use App\Http\Requests; use Config; use DB; use Illuminate\Support\Facades\Input; use Illuminate\Support\Facades\Auth; #Auth facade use Illuminate\Http\UploadedFile; use...
42,826
https://github.com/mes5k/dotfiles/blob/master/mikebin/strip_trailing_whitespace
Github Open Source
Open Source
MIT
2,023
dotfiles
mes5k
Shell
Code
7
27
#!/bin/bash perl -pi -e "s/[ \t]*$//;" $1
44,329
https://github.com/xyuan/uSockets/blob/master/src/interfaces/poll.h
Github Open Source
Open Source
Zlib
2,018
uSockets
xyuan
C
Code
170
397
/* Public interfaces for polls */ /* A fallthrough poll does not keep the loop running, it falls through */ WIN32_EXPORT struct us_poll *us_create_poll(struct us_loop *loop, int fallthrough, unsigned int ext_size); /* After stopping a poll you must manually free the memory */ WIN32_EXPORT void us_poll_free(struct us_...
41,035
https://github.com/a1exwang/captfucker/blob/master/processors/color_processors/binary_processor.rb
Github Open Source
Open Source
MIT
2,015
captfucker
a1exwang
Ruby
Code
233
817
require './models/graph' require './models/state' require './processors/processor' class BinaryProcessor < Processor class Manager < BaseManager # user thread def self.process_all(state, params, bundle_map) mgr = Manager.new(state, params) state.possible_states.each do |poss| poss.part_o...
41,122
https://github.com/revokon/ouroboros-network/blob/master/ouroboros-consensus/test-storage/Test/Ouroboros/Storage/VolatileDB/Model.hs
Github Open Source
Open Source
Apache-2.0
2,020
ouroboros-network
revokon
Haskell
Code
1,400
3,484
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} -- | In-memory model implementation of 'VolatileDB' module Te...
25,460
https://github.com/Axadiw/qwik-labs-pck-sprint-scripts/blob/master/Kubernetes/Continuous_Delivery_Pipelines_with_Spinnaker_and_Kubernetes_Engine/run.sh
Github Open Source
Open Source
MIT
2,020
qwik-labs-pck-sprint-scripts
Axadiw
Shell
Code
61
264
#!/bin/bash USER=<fill> PROJECT_ID=<fill> rm spinnaker-sa.json rm -rf sample-app cp -rf sample-app_ref sample-app helm repo add stable https://kubernetes-charts.storage.googleapis.com helm repo update sed -i.bak "s/PROJECT/$PROJECT_ID/g" sample-app/k8s/deployments/* gcloud config set compute/zone us-central1-f gsu...
27,228
https://github.com/geobretagne/GeoNature/blob/master/apps/backend/modules/home/templates/loginSuccess.php
Github Open Source
Open Source
BSD-2-Clause
2,017
GeoNature
geobretagne
PHP
Code
79
331
<?php use_helper('Url') ?> <div class="container"> <form class="form-signin" action="<?php echo url_for('@login') ?>" method="post" id="loginForm"> <h2 class="form-signin-heading"><?php echo sfGeonatureConfig::$appname_main;?></h2> <?php echo $form['login']->renderLabel(null, array...
32,029
https://github.com/Arthur-Sant/NLW6-Together/blob/master/src/services/CreateTagsService.ts
Github Open Source
Open Source
RSA-MD
null
NLW6-Together
Arthur-Sant
TypeScript
Code
68
193
import { getCustomRepository } from "typeorm" import { Tag } from "../entities/Tag"; import { AppError } from "../error/AppError"; import { TagsRepository } from "../repositories/TagsRepository"; class CreateTagsService { async execute(name: string): Promise<Tag>{ const tagsRepository = getCustomRepository(TagsR...
45,685
https://github.com/zeke/jaml/blob/master/Jaml/Parser/TemplateTag.hs
Github Open Source
Open Source
MIT
2,010
jaml
zeke
Haskell
Code
168
441
module Jaml.Parser.TemplateTag ( templateTag ) where import Text.ParserCombinators.Parsec import Jaml.Types import Jaml.Parser.Attribute (idSelector, classSelector, attrsOfType) import Jaml.Parser.Util (tillEol, allBetween, trimmed) import Jaml.Parser.JavaScript.BacktickedValue (backtickedArraySansQuotes, backtickedS...
43,634
https://github.com/Shivek-brightcode/admin_template/blob/master/application/libraries/Amount.php
Github Open Source
Open Source
MIT
2,019
admin_template
Shivek-brightcode
PHP
Code
279
1,797
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Amount { private $ones=array("","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten", "Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen", "Eighteen","Nineteen"); private $tens=array(2=>"Twenty...
41,521
https://github.com/jongyeong1/CBNU_git/blob/master/_opt_gitlab/gitlab/embedded/lib/ruby/gems/2.6.0/gems/js_regex-3.1.1/lib/js_regex/second_pass.rb
Github Open Source
Open Source
MIT
null
CBNU_git
jongyeong1
Ruby
Code
316
1,139
# frozen_string_literal: true class JsRegex # # After conversion of a full Regexp::Expression tree, this class # checks for Node instances that need further processing. # # E.g. subexpression calls (such as \g<1>) can be look-ahead, # so the full Regexp must have been processed first, and only then can #...
13,447
https://github.com/GenesisFR/Fullscreenizer/blob/master/Fullscreenizer/AllApps.Designer.cs
Github Open Source
Open Source
MIT
null
Fullscreenizer
GenesisFR
C#
Code
335
1,597
namespace Fullscreenizer { partial class AllApps { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should...
33,961