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/aliv59git/C-1N_HomeAndExam/blob/master/CSharp1_Home5/05.TheBiggestOfTreeNumbers/TheBiggestOfThreeNumbers.cs
Github Open Source
Open Source
MIT
null
C-1N_HomeAndExam
aliv59git
C#
Code
74
221
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; class TheBiggestOfThreeNumbers { static void Main(string[] args) { Console.WriteLine("Please, enter three numbers: "); double a = double.Parse(Console.ReadLine()); double...
32,044
https://github.com/NCAR/lrose-solo3/blob/master/translate/dd_files.hh
Github Open Source
Open Source
BSD-3-Clause
2,023
lrose-solo3
NCAR
C++
Code
385
1,495
/* created using cproto */ /* Tue Jun 21 22:05:12 UTC 2011*/ #ifndef dd_files_hh #define dd_files_hh # define MAX_DIRECTORIES 16 # define MAX_FILE_TYPES 16 # define MAX_EXTEND 222 # define LT -1 # define EQ 0 # define GT 1 #include <dorade_share.h> #include <dd_defines.h> #include <dd_files.h> /* dd_files.c */ st...
2,048
https://github.com/carlosrodero/project-cms/blob/master/app/Models/Media.php
Github Open Source
Open Source
MIT
null
project-cms
carlosrodero
PHP
Code
28
90
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Media extends Model { protected $table = 'medias'; protected $fillable = [ 'filename' ]; public function projects(){ return $this->belongsTo(Project::class, 'project_id'); } }
27,505
https://github.com/dex-zswap/dex-mask/blob/master/view/pages/create-account/index.js
Github Open Source
Open Source
MIT
null
dex-mask
dex-zswap
JavaScript
Code
71
283
import React, { Component } from 'react'; import { Switch, Route } from 'react-router-dom'; import { NEW_ACCOUNT_ROUTE, IMPORT_ACCOUNT_ROUTE, CONNECT_HARDWARE_ROUTE, } from '@view/helpers/constants/routes'; import NewAccountCreateForm from './new-account.container'; import NewAccountImportForm from './import-acc...
53,927
https://github.com/apple/swift-llbuild2/blob/master/Sources/llbuild2fx/Diagnostics.swift
Github Open Source
Open Source
Swift-exception, Apache-2.0
2,023
swift-llbuild2
apple
Swift
Code
122
306
// This source file is part of the Swift.org open source project // // Copyright (c) 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list of ...
25,420
https://github.com/a-bulygin/vcpkg/blob/master/ports/json-dto/portfile.cmake
Github Open Source
Open Source
MIT
2,022
vcpkg
a-bulygin
CMake
Code
49
373
include(vcpkg_common_functions) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH REPO stiffstream/json_dto REF aded62c151bdeb07e416cfb404a1edfc1324f29f # v.0.2.9.2 SHA512 a298a4220160cb70f50e0dc96900743f12ad0290f401d5ab03fc97fa16260261af6b496b4de4b4f098394c02b4aadead442acf7f9edfee3faf91e56890688768 ) vc...
1,016
https://github.com/tomkerkhove/promitor/blob/master/src/Promitor.Tests.Unit/Validation/Scraper/Metrics/ResourceTypes/PublicIpAddressMetricsDeclarationValidationStepsTests.cs
Github Open Source
Open Source
MIT
2,023
promitor
tomkerkhove
C#
Code
315
1,451
using System.ComponentModel; using Microsoft.Extensions.Logging.Abstractions; using Promitor.Agents.Scraper.Validation.Steps; using Promitor.Tests.Unit.Builders.Metrics.v1; using Promitor.Tests.Unit.Stubs; using Xunit; namespace Promitor.Tests.Unit.Validation.Scraper.Metrics.ResourceTypes { [Category("Unit")] ...
24,771
https://github.com/dorba/tint/blob/master/src/ast/variable_decl_statement_test.cc
Github Open Source
Open Source
Apache-2.0
null
tint
dorba
C++
Code
245
818
// Copyright 2020 The Tint Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed ...
2,212
https://github.com/waqaradil/AdonisRepo/blob/master/app/Repositories/UserRepository.js
Github Open Source
Open Source
Apache-2.0
2,021
AdonisRepo
waqaradil
JavaScript
Code
50
170
'use strict' const {ioc} = require('@adonisjs/fold') const BaseRepository = use('App/Repositories/_BaseRepository') const Config = use('Config') class UserRepository extends BaseRepository { #model constructor(model) { super(model) this.#model = model } deleteAllUsers = () => this.#m...
20,672
https://github.com/kamenlitchev/paxmex/blob/master/lib/paxmex.rb
Github Open Source
Open Source
MIT
2,020
paxmex
kamenlitchev
Ruby
Code
60
225
require 'paxmex/parser' module Paxmex class SchemaProxy attr_reader :schema_name def initialize(schema_name) @schema_name = schema_name end def parse(data, opts = {}) Parser.new(data, schema_name).parse(opts) end def load_file(file, opts = {}) parse(File.read(file), opts)...
11,402
https://github.com/mbravo10/mbravo10.github.io/blob/master/tests/gameboard.test.js
Github Open Source
Open Source
MIT
null
mbravo10.github.io
mbravo10
JavaScript
Code
211
574
const puppeteer = require("puppeteer"); const timeout = 5000; var browser; var page; describe( "Main gameboard component testing functionality", () => { beforeAll(async () => { browser = await puppeteer.launch(); page = await browser.newPage(); await page.goto("https://mbravo10.github.io"); ...
37,358
https://github.com/vmichalak/kotlin/blob/master/plugins/parcelize/parcelize-compiler/testData/box/arraySimple.kt
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,022
kotlin
vmichalak
Kotlin
Code
87
281
// WITH_STDLIB @file:JvmName("TestKt") package test import kotlinx.parcelize.* import android.os.Parcel import android.os.Parcelable import java.util.Arrays @Parcelize data class Test(val a: Array<String>) : Parcelable { override fun equals(other: Any?): Boolean { if (this === other) return true ...
44,723
https://github.com/killvxk/mfcmapi/blob/master/UI/Dialogs/ContentsTable/MsgServiceTableDlg.cpp
Github Open Source
Open Source
MIT
2,019
mfcmapi
killvxk
C++
Code
623
3,174
// Displays the list of services in a profile #include <StdAfx.h> #include <UI/Dialogs/ContentsTable/MsgServiceTableDlg.h> #include <UI/Controls/ContentsTableListCtrl.h> #include <core/mapi/cache/mapiObjects.h> #include <core/mapi/columnTags.h> #include <UI/Dialogs/MFCUtilityFunctions.h> #include <UI/Dialogs/ContentsTa...
40,686
https://github.com/invalidCards/discordeno/blob/master/tests/webhook/webhook.test.ts
Github Open Source
Open Source
Apache-2.0
2,022
discordeno
invalidCards
TypeScript
Code
205
700
import { assertEquals, assertExists, assertNotEquals } from "../deps.ts"; import { loadBot } from "../mod.ts"; import { CACHED_COMMUNITY_GUILD_ID } from "../utils.ts"; Deno.test("[webhooks] Webhook related tests", async (t) => { const bot = loadBot(); // Create a channel const channel = await bot.helpers.create...
3,093
https://github.com/gerfen/iotedge-lorawan-starterkit/blob/master/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoraTools/Mac/RXTimingSetupRequest.cs
Github Open Source
Open Source
MIT
2,022
iotedge-lorawan-starterkit
gerfen
C#
Code
111
311
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace LoRaTools { using System; using System.Collections.Generic; using Newtonsoft.Json; /// <summary> /// RXTimingSetupAns Upstream & RXTimin...
23,473
https://github.com/fossabot/Clear/blob/master/app/Http/routes.php
Github Open Source
Open Source
Artistic-2.0
2,016
Clear
fossabot
PHP
Code
123
486
<?php use CodeDay\Clear\Models; use CodeDay\Clear\Services; // TODO: Move these to a proper location // Include markdown processor manually include_once(implode(DIRECTORY_SEPARATOR, [dirname(__DIR__), 'Markdown', "markdown.php"])); $builtin_commands = ['asset:publish', 'dump-autoload', 'changes', 'clear-compiled', ...
46,723
https://github.com/niexiaolong/SDao/blob/master/src/main/java/org/nxl/exception/SDaoException.java
Github Open Source
Open Source
Apache-2.0
null
SDao
niexiaolong
Java
Code
15
45
package org.nxl.exception; public class SDaoException extends RuntimeException { public SDaoException(String message) { super(message); } }
24,324
https://github.com/VasilyGorky/Unesco/blob/master/resources/views/site/page.blade.php
Github Open Source
Open Source
MIT
null
Unesco
VasilyGorky
PHP
Code
28
159
@extends('layouts.site') @section('sidebar') @include('site.sidebar') @endsection @section('content') <div class="container" style="margin-top: 40px;"> <div class="" style="border-bottom: 1px solid #d6d8db;"> <p class="btn btn-default" role="button"><h5>"{{$page->title}}"</h5></p>...
41,555
https://github.com/karasjs/karas/blob/master/test/group4/radial-gradient/script.jsx
Github Open Source
Open Source
MIT
2,023
karas
karasjs
JavaScript
Code
39
235
karas.render( <canvas width="360" height="360"> <div style={{marginBottom:1,width:50,height:50,background:'radial-gradient(#F00, #00F)'}} /> <div style={{marginBottom:1,width:50,height:50,background:'radial-gradient(at 10px 10px, #F00, #00F)'}} /> <div style={{marginBottom:1,width:50,height:50,background:...
52,011
https://github.com/ebi-uniprot/UniProtBE/blob/master/support-data-rest/src/test/java/org/uniprot/api/support/data/keyword/controller/KeywordGetIdControllerIT.java
Github Open Source
Open Source
Apache-2.0
2,018
UniProtBE
ebi-uniprot
Java
Code
489
2,956
package org.uniprot.api.support.data.keyword.controller; import static org.hamcrest.Matchers.*; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import java.nio.ByteBuffer; import org.jun...
15,210
https://github.com/fernandosantosrethink/radien-ce/blob/master/initializer/src/main/java/io/radien/util/Initializer.java
Github Open Source
Open Source
Apache-2.0
2,021
radien-ce
fernandosantosrethink
Java
Code
1,131
3,611
/* * Copyright (c) 2006-present radien GmbH & its legal owners. All rights reserved. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-...
13,180
https://github.com/a-type/food-list/blob/master/src/components/FoodList.tsx
Github Open Source
Open Source
MIT
2,021
food-list
a-type
TypeScript
Code
344
997
import * as React from 'react'; import { makeStyles, Theme, Box } from '@material-ui/core'; import { FoodListItem } from '../types'; import { useList } from '../contexts/ListContext'; import { FoodDraggableList } from './FoodDraggableList'; import { EmptyState } from './EmptyState'; export type FoodListProps = { cla...
52,870
https://github.com/danangt49/projekndre/blob/master/database/migrations/2019_10_17_080521_matapelajaran.php
Github Open Source
Open Source
MIT
2,019
projekndre
danangt49
PHP
Code
58
217
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class Matapelajaran extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('matapelajaran', func...
11,587
https://github.com/getslideapp/django-starter/blob/master/src/config/plugins/templates/tokens/token_limits.py
Github Open Source
Open Source
MIT
2,017
django-starter
getslideapp
Python
Code
199
511
main = [{'category': 'Transfer Limits', 'field': [{'name': 'tx_transfer_min', 'title': 'Minimum amount a user can transfer per transaction', 'note': 'Default is set to zero.'}, {'name': 'tx_transfer_max_day', 'title': 'Maximum total...
27,340
https://github.com/TIBCOSoftware/labs-discover/blob/master/mods/js-case-viewer/src/main.js
Github Open Source
Open Source
Apache-2.0, CC0-1.0
2,020
labs-discover
TIBCOSoftware
JavaScript
Code
898
2,819
/* * Copyright © 2020. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file. */ //@ts-check Spotfire.initialize(async function (mod) { // Get the render context const context = mod.getRenderContext(); // Format tooltip text ...
27,204
https://github.com/HoodHub/aws_appsync_auth_link_dart/blob/master/lib/src/aws_auth_link.dart
Github Open Source
Open Source
Apache-2.0
null
aws_appsync_auth_link_dart
HoodHub
Dart
Code
59
207
import 'dart:async'; import 'package:graphql/client.dart'; class AwsAuthLink extends Link { AwsAuthLink() : super( request: (Operation operation, [NextLink forward]) { StreamController<FetchResult> controller; Future<void> onListen() async { try { ...
27,680
https://github.com/wernerkrauss/silverstripe-framework/blob/master/tests/model/HierarchyTest.php
Github Open Source
Open Source
CC-BY-3.0, Unlicense
2,015
silverstripe-framework
wernerkrauss
PHP
Code
1,343
5,438
<?php class HierarchyTest extends SapphireTest { protected static $fixture_file = 'HierarchyTest.yml'; protected $requiredExtensions = array( 'HierarchyTest_Object' => array('Hierarchy', 'Versioned') ); protected $extraDataObjects = array( 'HierarchyTest_Object' ); /** * Test the Hierarchy prevents i...
38,135
https://github.com/leaofelipe/javascript-design-patterns/blob/master/structural/decorator/decorator-basic.js
Github Open Source
Open Source
WTFPL
2,017
javascript-design-patterns
leaofelipe
JavaScript
Code
80
171
'use strict' /** * Structural Decorator * - Add functionality on existing object * - More complete inheritance * - Wrap an Object * - Protect existing object */ let Task = require('../../creational/prototype') let urgentTask = new Task({name: 'Task!'}) urgentTask.priority = 2 urgentTask.notify = function () { retu...
42,140
https://github.com/cjadducci/HoloWeather/blob/master/config/config.js
Github Open Source
Open Source
MIT
null
HoloWeather
cjadducci
JavaScript
Code
159
456
/* HoloWeather Config * * By Jake Adducci * MIT Licensed. */ var config = { address: "localhost", // Address to listen on, can be: // - "localhost", "127.0.0.1", "::1" to listen on loopback interface // - another specific IPv4/6 to listen on a specific interface // - "", "0.0.0.0", "::" to listen o...
40,449
https://github.com/yiqiaowang/goLite/blob/master/programs/invalid/parser/semi13.go
Github Open Source
Open Source
BSD-3-Clause
2,019
goLite
yiqiaowang
Go
Code
21
36
// break and continue test package tests; for 1 < 2 { break } for 1 < 2 { continue }
42,570
https://github.com/Kiramind/dataenum/blob/master/dataenum-processor/src/test/resources/RecursiveGenericValue.java
Github Open Source
Open Source
Apache-2.0
2,022
dataenum
Kiramind
Java
Code
729
2,209
/* * -\-\- * DataEnum * -- * Copyright (c) 2017 Spotify AB * -- * 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 requir...
35,639
https://github.com/bobcorn/yahtzee/blob/master/Yahtzee/Model/Dice.cs
Github Open Source
Open Source
MIT
null
yahtzee
bobcorn
C#
Code
60
155
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Yahtzee.Model { class Dice { private int _value; private static Random _random = new Random(); public int Value { get { return _value; } ...
15,749
https://github.com/acbilson/chaos-auth-retired/blob/master/Dockerfile
Github Open Source
Open Source
MIT
2,020
chaos-auth-retired
acbilson
Dockerfile
Code
31
84
FROM debian:buster-slim RUN apt-get update && apt-get upgrade -y RUN apt-get install vim python3 python3-pip -y WORKDIR /app COPY ./requirements.txt . RUN pip3 install -r requirements.txt EXPOSE 5000 ENTRYPOINT ["python3", "wsgi.py"]
37,014
https://github.com/Arman2407/Mydiplom/blob/master/app/Ticket.php
Github Open Source
Open Source
MIT
null
Mydiplom
Arman2407
PHP
Code
55
187
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Ticket extends Model { protected $fillable = [ 'seance_id', 'seat_id', 'qr_code' ]; protected $table = 'tickets'; private $ticket; public function seance() { return $this->belongsTo('App\Seance', ...
3,168
https://github.com/RajivBiswal/Ecommerce-Project/blob/master/orders/models.py
Github Open Source
Open Source
MIT
2,020
Ecommerce-Project
RajivBiswal
Python
Code
331
1,230
import math from django.db import models from django.db.models.signals import pre_save,post_save from carts.models import Cart from billing.models import BillingProfile from ecommerce_project.utils import unique_order_id_generator from address.models import Address ORDER_STATUS_CHOICES = ( ('created', 'Created')...
3,744
https://github.com/eerimoq/vcpkg/blob/master/ports/shaderwriter/portfile.cmake
Github Open Source
Open Source
MIT
2,022
vcpkg
eerimoq
CMake
Code
65
667
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH REPO DragonJoker/ShaderWriter REF bcebc67feb99d98066dfb51a3857155ddcfa9d57 HEAD_REF master SHA512 675a9db22c3593426c9a364a8a2934e41f65447d450347dd5683a89e4f38dfbc914dca7f6fbfa77b0afd1fb0fd12c2316c11eded1453ae4498b448ae2267fdac ) vcpkg_from_github(OUT_SOURCE...
39,115
https://github.com/uvbs/FullSource/blob/master/Source/Source/KG3DEngine/KG3DEngine/KG3DRepresentObjectPVS.h
Github Open Source
Open Source
MIT
2,018
FullSource
uvbs
C++
Code
849
3,562
#ifndef _KG3DREPRESENTOBJECTPVS_H_ #define _KG3DREPRESENTOBJECTPVS_H_ #include "KG3DRepresentObject.h" #include "KG3DFrustum.h" #include "KG3DSceneOutDoorSpaceMgr.h" #define PVS_FILE_VERSION_1 100 #define PVS_FILE_VERSION_2 200 #define PVS_FILE_VERSION_3 300 #define PVS_PORTAL_NAME_MAX_LEN 32 #de...
10,929
https://github.com/UChicagoSUPERgroup/TrackingTransparencyCCS2019/blob/master/src/dashboard/trackers/TrackerDetailPage.js
Github Open Source
Open Source
Apache-2.0
2,021
TrackingTransparencyCCS2019
UChicagoSUPERgroup
JavaScript
Code
280
957
import React from 'react' import Text from '@instructure/ui-elements/lib/components/Text' import ToggleDetails from '@instructure/ui-toggle-details/lib/components/ToggleDetails' import Heading from '@instructure/ui-elements/lib/components/Heading' import Spinner from '@instructure/ui-elements/lib/components/Spinner' ...
7,314
https://github.com/thiagonache/hashitalkbr2020-terragrunt-gcp/blob/master/global/folder/projects/hostproject/shared-vpc/dev/us-central1/subnets/gateways/terragrunt.hcl
Github Open Source
Open Source
MIT
2,020
hashitalkbr2020-terragrunt-gcp
thiagonache
HCL
Code
140
643
# Terragrunt will copy the Terraform configurations specified by the source parameter, along with any files in the # working directory, into a temporary folder, and execute your Terraform commands in that folder. terraform { source = format("%s?ref=%s", local.inputs_vars.source_module.url, local.inputs_vars.source_mo...
51,846
https://github.com/yhugow/jobstalk/blob/master/pages/admin/side-navigation/spes-add-new.php
Github Open Source
Open Source
MIT
null
jobstalk
yhugow
PHP
Code
290
1,139
<form method="post" enctype="multipart/form-data" id="spes-add-new-form"> <div class="form-inner"> <div class="form-fields-wrapper"> <div class="form-group-wrapper flex space-between items-center"> <div class="form-group"> <p class="label">First Name<sup...
12,264
https://github.com/amrwc/Clove-lang/blob/master/Clove/src/main/java/dev/amrw/clovelang/values/ValueList.java
Github Open Source
Open Source
Apache-2.0
2,021
Clove-lang
amrwc
Java
Code
510
1,426
package dev.amrw.clovelang.values; import java.util.ArrayList; import java.util.stream.Collectors; import dev.amrw.clovelang.interpreter.ExceptionSemantic; import dev.amrw.clovelang.interpreter.Parser; import dev.amrw.clovelang.parser.ast.SimpleNode; /** * @see https://docs.oracle.com/javase/8/docs/api/index.html?j...
52,195
https://github.com/TiagoCastilhos/angular-course-final-project/blob/master/front-end/src/app/fornecedor/services/fornecedor.guard.ts
Github Open Source
Open Source
MIT
2,020
angular-course-final-project
TiagoCastilhos
TypeScript
Code
69
226
import { Injectable } from '@angular/core'; import { CanActivate, ActivatedRouteSnapshot, Router, CanDeactivate } from '@angular/router'; import { NovoComponent } from '../novo/novo.component'; import { BaseGuard } from 'src/app/services/base.guard'; @Injectable() export class FornececedorGuard extends BaseGuard imple...
11,918
https://github.com/andrasyhptr/laravel-sigbill/blob/master/resources/views/kecamatan/show.blade.php
Github Open Source
Open Source
MIT
2,019
laravel-sigbill
andrasyhptr
Blade
Code
50
260
@extends('layout.dashboard') @section('title') SIGBill | Admin | Status {{$kecamatan->status}} @endsection @section('content') <div id="wrapper"> <div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <div class="page-header"> <a class="btn btn-info pull-right" href="{{route('...
9,658
https://github.com/open-fresh/bomb-squad/blob/master/run-local/ksonnet/environments/base.libsonnet
Github Open Source
Open Source
Apache-2.0
2,019
bomb-squad
open-fresh
null
Spoken
7
21
local components = std.extVar('__ksonnet/components'); components { }
46,643
https://github.com/IThawk/rust-project/blob/master/rust-master/src/test/run-pass/macros/macro-nested_stmt_macros.rs
Github Open Source
Open Source
MIT, LicenseRef-scancode-other-permissive, Apache-2.0, BSD-3-Clause, BSD-2-Clause, NCSA
2,023
rust-project
IThawk
Rust
Code
37
127
// run-pass macro_rules! foo { () => { struct Bar; struct Baz; } } macro_rules! grault { () => { foo!(); struct Xyzzy; } } fn static_assert_exists<T>() { } fn main() { grault!(); static_assert_exists::<Bar>(); static_assert_exists::<Baz>(); static_asser...
16,756
https://github.com/YouUWd/mysql-protocol/blob/master/mysql-protocol/src/main/java/com/youu/mysql/protocol/common/ChannelAttributeKey.java
Github Open Source
Open Source
Apache-2.0
2,021
mysql-protocol
YouUWd
Java
Code
19
99
package com.youu.mysql.protocol.common; import com.youu.mysql.protocol.pkg.req.LoginRequest; import io.netty.util.AttributeKey; public interface ChannelAttributeKey { AttributeKey<LoginRequest> LOGIN_REQUEST = AttributeKey.valueOf("login_request"); AttributeKey<Integer> STORE_INDEX = AttributeKey.valueOf("sto...
1,858
https://github.com/joy-software/AETEMPLATE/blob/master/database/migrations/2017_04_02_10006_create_ads_table.php
Github Open Source
Open Source
MIT
2,017
AETEMPLATE
joy-software
PHP
Code
77
404
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateAdsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('ads', function (Bl...
26,301
https://github.com/Privilege-walk/front-end/blob/master/src/components/Welcome/index.js
Github Open Source
Open Source
MIT
null
front-end
Privilege-walk
JavaScript
Code
174
413
import React from "react"; import Typography from '@mui/material/Typography'; import Grid from '@mui/material/Grid'; import Button from '@mui/material/Button'; import Container from '@mui/material/Container'; import { Navigate, useNavigate } from "react-router-dom"; export default function Welcome(){ const navigat...
32,402
https://github.com/MessiXpro/DoubanX_crx/blob/master/js/controller/youku.js
Github Open Source
Open Source
MIT
2,016
DoubanX_crx
MessiXpro
JavaScript
Code
46
172
class YouKu { constructor() { this.isYouku = window.location.host === 'v.youku.com'; this.page = { video: window.location.pathname.indexOf('/v_show/') === 0 && document.querySelector('.crumbs a').innerText.trim() === ('电影' || '电视剧') }; } main() { ...
26,140
https://github.com/vchavkov/flynn/blob/master/vendor/github.com/tiborvass/uniline/core.go
Github Open Source
Open Source
BSD-3-Clause
2,020
flynn
vchavkov
Go
Code
960
3,338
package uniline import ( "bufio" "fmt" "io" "os" "unicode" "github.com/tiborvass/uniline/ansi" ) // Data structure of the internals of Scanner, useful when creating a custom Keymap. type Core struct { input io.Reader output io.Writer scanner *bufio.Scanner prompt text history history clipbo...
16,891
https://github.com/rharrisatalienvaultdotcom/scoping-calculator/blob/master/application/views/onpage_css.php
Github Open Source
Open Source
MIT
null
scoping-calculator
rharrisatalienvaultdotcom
PHP
Code
278
1,787
<style> * { box-sizing:border-box; } @font-face { font-family:ProximaNova; src: url("/assets/fonts/ProximaNova-Thin.otf"); font-weight:100; font-style:normal; } @font-face { font-family:ProximaNova; src: url("/assets/fonts/Proxi...
21,305
https://github.com/chinmoyee-A/C-Language/blob/master/Array smallest and greatest.cpp
Github Open Source
Open Source
MIT
null
C-Language
chinmoyee-A
C++
Code
73
235
#include <stdio.h> int main() { int arr[50]; int i, max, min, size; printf("Enter size of the array: "); scanf("%d", &size); printf("Enter elements in the array: "); for(i=0; i<size; i++) { scanf("%d", &arr[i]); } max = arr[0]; min = arr[0]; ...
26,151
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/g/gatsby-core-utils/src/main/scala/typingsSlinky/gatsbyCoreUtils/pathMod.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
45
227
package typingsSlinky.gatsbyCoreUtils import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object pathMod { @JSImport("gatsby-core-utils/dist/path", "isNodeInternalModulePath")...
44,586
https://github.com/steamboatid/nginx/blob/master/debian/modules/http-brotli/deps/brotli/research/libdivsufsort/VERSION.cmake
Github Open Source
Open Source
BSD-2-Clause
2,022
nginx
steamboatid
CMake
Code
50
389
set(PROJECT_VERSION_MAJOR "2") set(PROJECT_VERSION_MINOR "0") set(PROJECT_VERSION_PATCH "2") set(PROJECT_VERSION_EXTRA "-1") set(PROJECT_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}") set(PROJECT_VERSION_FULL "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}${PROJECT_VERSION_EXTR...
24,829
https://github.com/mifos/head/blob/master/appdomain/src/main/java/org/mifos/accounts/fees/servicefacade/FeeCreateRequest.java
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,019
head
mifos
Java
Code
358
1,076
/* * Copyright (c) 2005-2011 Grameen Foundation USA * All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
15,981
https://github.com/CS126SP20/pac-man-bzhang33/blob/master/include/mylibrary/pacman.h
Github Open Source
Open Source
MIT
2,020
pac-man-bzhang33
CS126SP20
C
Code
136
348
#pragma clang diagnostic push #pragma ide diagnostic ignored "modernize-use-trailing-return-type" // // Created by Brianna Zhang on 4/21/20. // #ifndef FINALPROJECT_PACMAN_H #define FINALPROJECT_PACMAN_H #include "direction.h" #include "location.h" namespace myapp { const int kNumLives = 3; class PacMan { public:...
15,431
https://github.com/hyben/k8s-images/blob/master/quay.io.calico.cni/v2.0.0-170-g980372a-amd64/Dockerfile
Github Open Source
Open Source
WTFPL
2,019
k8s-images
hyben
Dockerfile
Code
2
31
FROM quay.io/calico/cni:v2.0.0-170-g980372a-amd64
10,521
https://github.com/discourse/discourse-automation/blob/master/assets/javascripts/discourse/admin/adapters/discourse-automation-adapter.js
Github Open Source
Open Source
MIT
2,023
discourse-automation
discourse
JavaScript
Code
25
83
import RestAdapter from "discourse/adapters/rest"; export default class Adapter extends RestAdapter { basePath() { return "/admin/plugins/discourse-automation/"; } pathFor() { return super.pathFor(...arguments).replace("_", "-") + ".json"; } }
50,178
https://github.com/guillep/pharo/blob/master/src/Compiler.package/TempVariableNode.class/instance/beMethodArg.st
Github Open Source
Open Source
MIT
2,017
pharo
guillep
null
Spoken
5
13
testing beMethodArg argType := #method
28,479
https://github.com/ly1994lyy/vue-music/blob/master/src/views/search/search.vue
Github Open Source
Open Source
MIT
2,019
vue-music
ly1994lyy
Vue
Code
477
2,266
<template lang="html"> <transition name="fade"> <div class="search-page"> <div class='header-other'> <span @click="goBack" class="back"><i class="back-icon"></i></span> <div class="input"> <input v-model="keywords" @keyup.enter="toSearch(keywor...
8,755
https://github.com/frobro98/Musa/blob/master/Source/Archiver/ArchiverDll.hpp
Github Open Source
Open Source
MIT
null
Musa
frobro98
C++
Code
12
49
#pragma once #ifdef ARCHIVE_EXPORT #define ARCHIVE_API __declspec(dllexport) #else #define ARCHIVE_API __declspec(dllimport) #endif
6,331
https://github.com/Dschinds/platform-client-sdk-java/blob/master/build/src/main/java/com/mypurecloud/sdk/v2/model/Token.java
Github Open Source
Open Source
MIT
null
platform-client-sdk-java
Dschinds
Java
Code
156
477
package com.mypurecloud.sdk.v2.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import j...
9,586
https://github.com/JoltNet/Jolt/blob/master/Jolt/Jolt.Testing.Test/Assertions/EquatableAxiomAssertionTestFixture.cs
Github Open Source
Open Source
BSD-3-Clause
2,010
Jolt
JoltNet
C#
Code
173
604
// ---------------------------------------------------------------------------- // EquatableAxiomAssertionTestFixture.cs // // Contains the definition of the EquatableAxiomAssertionTestFixture class. // Copyright 2010 Steve Guidi. // // File created: 8/11/2010 21:30:46 // -----------------------------------------------...
35,323
https://github.com/qiuyeyijian/Embed/blob/master/src/板子测试程序/User_NB_KL36_V3.6_Test_20200906-2/Debug/srcc/gec.c
Github Open Source
Open Source
MIT
2,020
Embed
qiuyeyijian
C
Code
197
2,115
//===================================================================== //文件名称:gec.c文件 //制作单位:SD-Arm(sumcu.suda.edu.cn) //更新记录:20181201-20200627 //移植规则:【固定】 //===================================================================== #include "gec.h" //====================================================================== /...
40,789
https://github.com/Iixianjie/flicker/blob/master/src/components/count-down/index.ts
Github Open Source
Open Source
MIT
2,022
flicker
Iixianjie
TypeScript
Code
14
39
import 'm78/count-down/style'; import CountDown from './count-down'; export * from './count-down'; export { CountDown };
22,210
https://github.com/masae-hayashi/FrontISTR/blob/master/examples/static/refine/exB/P03/B341_P03.2
Github Open Source
Open Source
MIT
2,020
FrontISTR
masae-hayashi
null
Spoken
2,098
3,465
!HECMW-DMD-ASCII version=2 0 0 1 1 2 ../B341.msh 0 1 TEST MODEL B341 0.0000000000000000E+00 51 51 33 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2 28 2 29 2 30 2 31 2 32 2 33 2 4 1 1 0 8 1 4 0 12 1 7 0 15 1 10 0 19 1 14 0 23 1 18 0 26 1 21 ...
24,177
https://github.com/quisquous/chromium/blob/master/tools/isolate/tests/run_test_from_archive_test.py
Github Open Source
Open Source
BSD-3-Clause
2,020
chromium
quisquous
Python
Code
231
1,099
#!/usr/bin/env python # Copyright (c) 2012 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. import json import logging import os import sys import time import unittest ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abs...
8,574
https://github.com/MLTitan/reserva-easy.api/blob/master/packages/cancha-db/src/sql/tables.js
Github Open Source
Open Source
MIT
null
reserva-easy.api
MLTitan
JavaScript
Code
220
1,394
const db = require('../index.js'); const MAX_EMAIL_LENGTH = 80 const MAX_NAME_LENGTH = 80 const MAX_PHONE_LENGTH = 100 const createStateColumns = table => { table.increments('id').primary().unsigned(); table.string('name', 20).notNullable(); table.unique(['name']) }; const createRoleColumns = table => { tabl...
37,641
https://github.com/daniloaluiz/symfony-carros/blob/master/src/Danilo/ProdutoBundle/Entity/ProdutoRepository.php
Github Open Source
Open Source
MIT
null
symfony-carros
daniloaluiz
PHP
Code
45
177
<?php namespace Danilo\ProdutoBundle\Entity; use Doctrine\ORM\EntityRepository; class ProdutoRepository extends EntityRepository { public function getProdutosMaiorQue($num) { /* $dql = "SELECT p FROM DaniloProdutoBundle:Produto p WHERE p.id > :num "; return $this->getEntityManager() ...
28,691
https://github.com/cms-sw/cmssw/blob/master/L1Trigger/GlobalMuonTrigger/src/L1MuGMTPhiProjectionUnit.h
Github Open Source
Open Source
Apache-2.0
2,023
cmssw
cms-sw
C++
Code
227
683
//------------------------------------------------- // /** \class L1MuGMTPhiProjectionUnit * L1 Global Muon Trigger Phi projection unit. * * Projects a muon from the muon system to the * calorimeter or vertex and selects one or more * calorimeter regions in phi to be checked for * MIP and Isolation. */ /...
3,076
https://github.com/m-elwin/tiva-cmake/blob/master/cmake/TivaToolchain/TivaToolchainConfig.cmake
Github Open Source
Open Source
MIT
2,022
tiva-cmake
m-elwin
CMake
Code
26
46
# This sits in a location where it can be found by find_package and then find_package sets TivaToolchain_DIR, # TivaToolchain_DIR is the location of the toolchains
15,672
https://github.com/atsamd-rs/atsamd/blob/master/pac/atsamd51g/src/mclk.rs
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT, Apache-2.0
2,023
atsamd
atsamd-rs
Rust
Code
330
1,060
#[doc = r"Register block"] #[repr(C)] pub struct RegisterBlock { _reserved0: [u8; 0x01], #[doc = "0x01 - Interrupt Enable Clear"] pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>, #[doc = "0x02 - Interrupt Enable Set"] pub intenset: crate::Reg<intenset::INTENSET_SPEC>, #[doc = "0x03 - Interrupt...
32,243
https://github.com/haohonglong/work-118oa/blob/master/views/customer/index.php
Github Open Source
Open Source
BSD-3-Clause
null
work-118oa
haohonglong
PHP
Code
321
1,470
<?php /* @var $this \yii\web\View */ /* @var $content string */ use \yii\grid\GridView; use \yii\helpers\Html; use \yii\helpers\Url; use \yii\bootstrap\ActiveForm; $this->title = '客服列表'; ?> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> ...
26,568
https://github.com/VisionITTesting/JavaTopics/blob/master/src/test/java/_6_Session/_3_Different_Methods/_3_Input_From_User_1.java
Github Open Source
Open Source
Condor-1.1, 0BSD, Naumen, Xnet, X11, MS-PL
null
JavaTopics
VisionITTesting
Java
Code
41
166
package _6_Session._3_Different_Methods; import java.util.Scanner; public class _3_Input_From_User_1 { public static void main(String[] args) { System.out.println("Please enter the factory name"); Scanner sc = new Scanner(System.in); String userInput = sc.next(); sc.close(); _2_UserDefined_Method...
18,183
https://github.com/cryptovokins/dmusician/blob/master/src/app/entities/index.ts
Github Open Source
Open Source
Apache-2.0
2,019
dmusician
cryptovokins
TypeScript
Code
12
22
export * from './images'; export * from './song'; export * from './filter';
32,329
https://github.com/domeo/DomeoClient/blob/master/src/org/mindinformatics/gwt/domeo/plugins/resource/nif/search/antibodies/IAntibodiesSearchContainer.java
Github Open Source
Open Source
Apache-2.0
2,016
DomeoClient
domeo
Java
Code
18
106
package org.mindinformatics.gwt.domeo.plugins.resource.nif.search.antibodies; import java.util.ArrayList; import org.mindinformatics.gwt.domeo.plugins.annotation.nif.antibodies.model.MAntibody; public interface IAntibodiesSearchContainer { public void addAntibody(MAntibody term); public ArrayList<MAntibody> getAn...
39,953
https://github.com/nstarke/brick/blob/master/brick/ida/modules/efiXplorer/efiXplorer_plugin.py
Github Open Source
Open Source
MIT
2,022
brick
nstarke
Python
Code
185
610
import ida_loader from pathlib import Path from enum import IntEnum import json class EfiXplorerError(RuntimeError): ''' Raised when efiXplorer fails to analyze the input file. ''' pass class EfiXplorerPlugin: ''' Provides a Pythonic interface to the EfiXplorer plugin. ''' # Prefix fo...
1,837
https://github.com/ReubenUnruh/PowerJiraSqlRefresh/blob/master/Redgate/Views/dbo.vw_Jira_Issue_Type.sql
Github Open Source
Open Source
MIT
2,021
PowerJiraSqlRefresh
ReubenUnruh
SQL
Code
29
142
SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO CREATE VIEW [dbo].[vw_Jira_Issue_Type] AS SELECT [Issue_Type_Id] ,[Name] ,[Description] ,[Icon_Url] ,[Subtask_Type] ,[Update_Refresh_Id] FROM [dbo].[tbl_Jira_Issue_Type] GO GRANT SELECT ON [dbo].[vw_Jira_Issue_Type] TO [JiraRefreshRole] ...
51,498
https://github.com/RomaniukVadim/Ninety-Nine-Lisp-Problems/blob/master/Working with lists/p05.lisp
Github Open Source
Open Source
WTFPL
2,019
Ninety-Nine-Lisp-Problems
RomaniukVadim
Common Lisp
Code
26
75
(defun inverte (lista) (inverte-aux lista () ) ) (defun inverte-aux (lista resto) (if (null lista) resto (inverte-aux (rest lista) (cons (first lista) resto) ) ) )
19,162
https://github.com/stevejhiggs/WebApi-InMemoryAcceptanceTests/blob/master/MongoExample/MongoExample.Web/Storage/ProductDto.cs
Github Open Source
Open Source
MIT
2,014
WebApi-InMemoryAcceptanceTests
stevejhiggs
C#
Code
17
43
using System; namespace MongoExample.Web.Storage { public class ProductDto { public Guid Id; public string Name; } }
38,475
https://github.com/Dexteriousdevengers/Maths/blob/master/if_release-master/.gitmodules
Github Open Source
Open Source
Apache-2.0
2,015
Maths
Dexteriousdevengers
Git Config
Code
27
119
[submodule "eventmachine"] path = eventmachine url = https://github.com/IronFoundry/eventmachine.git branch = ironfoundry [submodule "dea_ng"] path = dea_ng url = https://github.com/IronFoundry/dea_ng.git [submodule "if_warden"] path = if_warden url = https://github.com/cloudfoundry-incubator/if_warden.git
380
https://github.com/yliondeveloper/Project-s/blob/master/hologram/Hologram.java
Github Open Source
Open Source
Apache-2.0
null
Project-s
yliondeveloper
Java
Code
111
475
package xyz.starmc.hologram; import javax.annotation.*; import org.bukkit.*; import java.util.*; import org.bukkit.entity.*; public interface Hologram { boolean isSpawned(); void spawn(@Nonnull @Nonnegative long p0); boolean spawn(); boolean despawn(); void setText(@Nullable String p0); String getText(); ...
18,597
https://github.com/DevoInc/applications-builder/blob/master/src/mixins/base.js
Github Open Source
Open Source
BSD-3-Clause
null
applications-builder
DevoInc
JavaScript
Code
839
1,997
import DataNode from '@devoinc/applications-builder/data/DataNode'; import * as dom from '@devoinc/applications-builder/libs/dom'; /** * Contains all methods related with the widget HTML container * element and not the graphic itself. Some of then can be redefined * in each widget and used in a instance of the widg...
8,511
https://github.com/JanGorman/Hippolyte/blob/master/HippolyteTests/HippolyteTests.swift
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,022
Hippolyte
JanGorman
Swift
Code
628
2,265
// // Copyright © 2017 Jan Gorman. All rights reserved. // import XCTest import Hippolyte final class HippolyteTests: XCTestCase { override func tearDown() { super.tearDown() Hippolyte.shared.stop() } func testUnmatchedRequestThrows() { let request = TestRequest(method: .GET, url: URL(string: "ht...
49,275
https://github.com/RafaelYon/Necterium/blob/master/app/App.php
Github Open Source
Open Source
MIT
2,022
Necterium
RafaelYon
PHP
Code
15
46
<?php namespace App; use App\Http\Dispatcher; class App { public function __construct() { Dispatcher::handler(); } }
52,636
https://github.com/heyjcollins/cli/blob/master/cf/api/service_summary_test.go
Github Open Source
Open Source
Apache-2.0
2,022
cli
heyjcollins
Go
Code
184
1,226
package api_test import ( "net/http" "net/http/httptest" "time" "code.cloudfoundry.org/cli/cf/api/apifakes" "code.cloudfoundry.org/cli/cf/net" "code.cloudfoundry.org/cli/cf/terminal/terminalfakes" testconfig "code.cloudfoundry.org/cli/cf/util/testhelpers/configuration" testnet "code.cloudfoundry.org/cli/cf/ut...
46,259
https://github.com/maurizioabba/rose/blob/master/tests/CompileTests/ElsaTestCases/gnu/g0007.cc
Github Open Source
Open Source
BSD-3-Clause
2,022
rose
maurizioabba
C++
Code
45
156
// g0007.cc // ambiguity error message // -*-c++-*- typedef void *__gnuc_va_list; typedef __gnuc_va_list va_list; union my_error_arguments { int i; char *s; }; #pragma boxvararg("my_error",sizeof(union my_error_arguments)) #pragma boxvararg("__my_error",sizeof(union my_error_arguments)) void my_error(int sever...
11,629
https://github.com/michzappa/nixos-hardware/blob/master/microsoft/surface/kernel/linux-5.16.11.nix
Github Open Source
Open Source
CC0-1.0
null
nixos-hardware
michzappa
null
Spoken
242
779
{ lib, callPackage, linuxPackagesFor, ... }: # To test the kernel build: # nix-build -E "with import <nixpkgs> {}; (pkgs.callPackage ./linux-5.16.11.nix {}).kernel" let repos = callPackage ../repos.nix {}; linuxPkg = { fetchurl, buildLinux, ... }@args: buildLinux (args // rec { version = "5.16.11"; ...
5,875
https://github.com/zeroqn/overlord/blob/master/src/smr/tests/prevote_test.rs
Github Open Source
Open Source
MIT
2,020
overlord
zeroqn
Rust
Code
661
2,096
use crate::smr::smr_types::{Lock, SMREvent, SMRTrigger, Step, TriggerType}; use crate::smr::tests::{gen_hash, trigger_test, InnerState, StateMachineTestCase}; use crate::{error::ConsensusError, types::Hash}; /// Test state machine handle prevoteQC trigger. /// There are a total of *2 × 4 + 2 = 10* test cases. #[tokio:...
28,029
https://github.com/frstrtr/cp2pool/blob/master/doc/legacy/libnet/p2p_socket.h
Github Open Source
Open Source
MIT
2,020
cp2pool
frstrtr
C
Code
128
686
#pragma once #include <memory> #include <utility> #include "p2p_socket_data.h" #include <libp2p/socket_data.h> #include <libp2p/socket.h> #include <libp2p/message.h> #include <networks/network.h> #include <boost/asio.hpp> class P2PSocket : public Socket, public std::enable_shared_from_this<Socket> { private: s...
12,362
https://github.com/alabanu/interactive-legend/blob/master/dist/utils/widgetUtils.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
interactive-legend
alabanu
JavaScript
Code
1,618
5,538
define(["require", "exports", "tslib", "dojo/i18n!../nls/resources", "esri/core/promiseUtils"], function (require, exports, tslib_1, resources_1, promiseUtils_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addScreenshot = exports.getInfoContent = exports.addInfoPan...
21,910
https://github.com/liuyang233/NativeGPUImage/blob/master/library/src/main/jni/filter/gpu_image_directional_sobel_edge_detection_filter.cpp
Github Open Source
Open Source
Apache-2.0
2,020
NativeGPUImage
liuyang233
C++
Code
37
276
// // Created by ben622 on 2019/9/29. // #include "gpu_image_directional_sobel_edge_detection_filter.hpp" ben::ngp::GPUImageDirectionalSobelEdgeDetectionFilter::GPUImageDirectionalSobelEdgeDetectionFilter( JNIEnv *env) : GPUImage3x3TextureSamplingFilter(env,DIRECTIONAL_SOBEL_EDGE_DETECTION_FRAGMENT_SHADER) { ...
23,585
https://github.com/DarkWing2009/ShulkerOS-evo/blob/master/Login.py
Github Open Source
Open Source
MIT
2,021
ShulkerOS-evo
DarkWing2009
Python
Code
140
383
import getpass combolist = open('combolist.txt').read().splitlines() choice = input("login or register: ") #login if choice == 'login': print("Please enter a username and password") user = input("Username: ") passw = getpass.getpass("Password: ") combo = user + ':' + passw if combo in combolist...
34,368
https://github.com/milonemario/pilates/blob/master/pilates/modules/fred/fred.py
Github Open Source
Open Source
BSD-3-Clause
null
pilates
milonemario
Python
Code
375
1,209
""" Provide convenient functions to get FRED economic data. Series can be found here: https://fred.stlouisfed.org/ """ from pilates import data_module import pandas as pd import numpy as np from fredapi import Fred FRED_API_KEY = '69e42ccbb7fa5da6cc743e564d08be62' class fred(data_module): def __init__(self, w)...
47,053
https://github.com/escenic/TwelveMonkeys/blob/master/imageio/imageio-icns/src/main/java/com/twelvemonkeys/imageio/plugins/icns/SipsJP2Reader.java
Github Open Source
Open Source
Unlicense, Zlib, BSD-3-Clause
2,018
TwelveMonkeys
escenic
Java
Code
700
1,693
/* * Copyright (c) 2011, Harald Kuhr * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of cond...
33,903
https://github.com/gavinmacaulay/collpen/blob/master/code_JC/toolboxes/imagecartesian2polar/imgpolarcoord.m
Github Open Source
Open Source
BSD-2-Clause
2,016
collpen
gavinmacaulay
MATLAB
Code
214
623
function pcimg=imgpolarcoord(img,radius,angle) % IMGPOLARCOORD converts a given image from cartesian coordinates to polar % coordinates. % % Input: % img : bidimensional image. % radius : radius length (# of pixels to be considered). % angle : # of angles to be considered for decomposition. % % Outpu...
29,445
https://github.com/vladimirpetukhov/Soft_Uni_Studies/blob/master/C#_Data_Base_MS_SQL/Database Basics – MS SQL – май 2018/Table Realations/Table Realations/01. One-To-One Relationship.sql
Github Open Source
Open Source
MIT
2,019
Soft_Uni_Studies
vladimirpetukhov
SQL
Code
62
197
CREATE TABLE Persons( PersonID INT PRIMARY KEY, FirstName VARCHAR(50), Salary decimal, PassportID INT UNIQUE ) CREATE TABLE Passports( PassportID INT PRIMARY KEY, PassportNumber NVARCHAR(255) ) INSERT INTO Passports VALUES (101, 'N34FG21B'), (102, 'K65LO4R7'), (103, 'ZE657QP2') INSERT INTO Persons VALUES ...
45,903
https://github.com/fastobo/fastobo-py/blob/master/src/py/instance/frame.rs
Github Open Source
Open Source
MIT
2,023
fastobo-py
fastobo
Rust
Code
191
733
use std::fmt::Display; use std::fmt::Formatter; use std::fmt::Result as FmtResult; use std::fmt::Write; use std::str::FromStr; use pyo3::prelude::*; use pyo3::types::PyAny; use pyo3::types::PyIterator; use pyo3::types::PyString; use pyo3::AsPyPointer; use pyo3::PyNativeType; use pyo3::PyTypeInfo; use fastobo::ast; u...
17,947
https://github.com/just-the-docs/just-the-docs/blob/master/fixtures/Gemfile-jekyll-4.3
Github Open Source
Open Source
MIT
2,023
just-the-docs
just-the-docs
null
Spoken
20
81
source "https://rubygems.org" gem "jekyll", "~> 4.3" gem "jekyll-seo-tag", ">= 2.0" gem "rake", ">= 12.3.1" # docs-only gem "jekyll-github-metadata", ">= 2.15"
24,029
https://github.com/mayankmanj/acl2/blob/master/books/kestrel/std/system/.sys/lambda-guard-verified-exec-fnsp@useless-runes.lsp
Github Open Source
Open Source
BSD-3-Clause
2,022
acl2
mayankmanj
Common Lisp
Code
1
20
(LAMBDA-GUARD-VERIFIED-EXEC-FNSP)
40,920