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/willdickson/basic_led_strip_ros/blob/master/src/basic_led_strip_proxy/__init__.py
Github Open Source
Open Source
MIT
null
basic_led_strip_ros
willdickson
Python
Code
4
17
from .basic_led_strip_proxy import BasicLedStripProxy
48,658
https://github.com/thewhodidthis/dithering/blob/master/example/worker.js
Github Open Source
Open Source
0BSD
null
dithering
thewhodidthis
JavaScript
Code
25
87
importScripts("dither.js") self.addEventListener("message", (e) => { const { config, source } = e.data const filter = dither[config.nature] const lookup = dither.matrix[config.lookup] self.postMessage({ result: filter(lookup)(source), }) })
50,407
https://github.com/Garee/dotfiles/blob/master/.emacs
Github Open Source
Open Source
MIT
null
dotfiles
Garee
null
Spoken
196
582
; Initialize packages. (package-initialize) ; Start in the home directory. (setq default-directory "~/") ; Replace yes/no with y/n. (fset 'yes-or-no-p 'y-or-n-p) ; Use spaces instead of tabs. (setq-default indent-tabs-mode nil) ; Store all file autosaves and backups in one directory. (setq backup-directory-alist `(...
52,366
https://github.com/wilburx9/Popular-Movies/blob/master/app/src/main/java/com/jadebyte/popularmovies/viewholders/ReviewViewHolder.java
Github Open Source
Open Source
Apache-2.0
2,017
Popular-Movies
wilburx9
Java
Code
73
376
package com.jadebyte.popularmovies.viewholders; import android.os.Build; import android.support.v7.widget.RecyclerView; import android.text.Html; import android.view.View; import android.widget.TextView; import com.jadebyte.popularmovies.R; import com.jadebyte.popularmovies.pojos.Review; import butterknife.BindView;...
41,457
https://github.com/lemonnader/LeetCode-Solution-Well-Formed/blob/master/linked-list/Python/0024-swap-nodes-in-pairs(recursion).py
Github Open Source
Open Source
Apache-2.0
2,020
LeetCode-Solution-Well-Formed
lemonnader
Python
Code
48
143
class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def swapPairs(self, head: ListNode) -> ListNode: if head is None or head.next is None: return head p1 = head p2 = head.next new_head = self.swapPairs(p2.next) ...
33,777
https://github.com/u7mit6/Nakloid/blob/master/vocal_lib/VoiceWAV.cpp
Github Open Source
Open Source
BSD-3-Clause
2,014
Nakloid
u7mit6
C++
Code
473
2,369
#include "VoiceWAV.h" using namespace std; struct VoiceWAV::Parameters VoiceWAV::params; map< wstring, vector<double> > VoiceWAV::vowel_wav_map; const UnitWaveformContainer* VoiceWAV::getUnitWaveformContainer() const { if (uwc == 0) { makeUnitWaveformContainerCache(); } return uwc; } void VoiceWAV::makeU...
32,485
https://github.com/logikinc/nuswhispers/blob/master/sites/nuswhispers/app/Models/Tag.php
Github Open Source
Open Source
MIT
2,016
nuswhispers
logikinc
PHP
Code
60
183
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Tag extends Model { /** * The attributes that should be casted to native types. * @var array */ protected $casts = [ 'confession_tag_id' => 'string' ]; protected $table = 'tags'; protected $fillable =...
3,271
https://github.com/mercedes-benz/MBSDK-LoggerKit-Android/blob/master/sample/src/main/java/com/daimler/mbloggerkit/sample/SampleApplication.kt
Github Open Source
Open Source
MIT
2,020
MBSDK-LoggerKit-Android
mercedes-benz
Kotlin
Code
70
835
package com.daimler.mbloggerkit.sample import android.app.Application import com.daimler.mbloggerkit.MBLoggerKit import com.daimler.mbloggerkit.PrinterConfig import com.daimler.mbloggerkit.adapter.AndroidLogAdapter import com.daimler.mbloggerkit.adapter.PersistingLogAdapter import com.daimler.mbloggerkit.format.Simple...
21,639
https://github.com/fernandezfelicio24/perpustakaan/blob/master/resources/views/admin/author/index.blade.php
Github Open Source
Open Source
MIT
2,020
perpustakaan
fernandezfelicio24
Blade
Code
112
576
@extends('admin.templates.default') @section('content') @push('data_tables') <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.css"> <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.js"></script> @endpush ...
2,579
https://github.com/AndreasReitberger/KlipperRestApiSharp/blob/master/source/KlipperSharpWebApi/KlipperSharpWebApi/Models/PrinterStatus/KlipperStatusFan.cs
Github Open Source
Open Source
Apache-2.0
2,022
KlipperRestApiSharp
AndreasReitberger
C#
Code
84
237
using Newtonsoft.Json; using System; namespace AndreasReitberger.Models { public partial class KlipperStatusFan { #region Properties [JsonIgnore] public int Percent => GetPercentageSpeed(); [JsonProperty("speed")] public double? Speed { get; set; } [JsonProper...
17,714
https://github.com/advanderveer/ticket.js/blob/master/test/examples/server.js
Github Open Source
Open Source
Apache-2.0
2,013
ticket.js
advanderveer
JavaScript
Code
109
339
/* globals __dirname */ var Ticket = require('../../src/ticket.js'); var Resolver = require('../../src/resolver.js'); var State = require('../../src/state.js'); var Emitter = require('eventemitter2').EventEmitter2; var express = require('express'); var app = express(); var emitter = new Emitter(); var resolver = new ...
27,248
https://github.com/gcazaciuc/redux-fractal/blob/master/src/localReducer.js
Github Open Source
Open Source
MIT
2,021
redux-fractal
gcazaciuc
JavaScript
Code
384
1,148
import * as UIActions from './actions.js'; const stores = {}; const globalActions = {}; const refCounter = {}; const defaultGlobalFilter = () => false; const initialiseComponentState = (state, payload, componentKey) => { const { config, store } = payload; stores[componentKey] = store; refCounter[componentKey] =...
6,183
https://github.com/SilenceLove/HXImagePicker/blob/master/HXImagePicker/HX_PhotoModel.m
Github Open Source
Open Source
MIT
2,017
HXImagePicker
SilenceLove
Objective-C
Code
152
463
// // HX_PhotoModel.m // 测试 // // Created by 洪欣 on 16/8/20. // Copyright © 2016年 洪欣. All rights reserved. // #import "HX_PhotoModel.h" #import "HX_AssetManager.h" #define VERSION [[UIDevice currentDevice].systemVersion doubleValue] @implementation HX_PhotoModel - (BOOL)ifSelect { if (!_ifAdd) { return...
48,918
https://github.com/hanifyogatama/sistem-informasi-surat-kammi-sleman/blob/master/application/helpers/kammi_helper.php
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, MIT
2,021
sistem-informasi-surat-kammi-sleman
hanifyogatama
PHP
Code
75
342
<?php function is_logged_in() { // isntansiasi CI $instanceCI = get_instance(); if (!$instanceCI->session->userdata('email')) { redirect('auth'); } else { $roleId = $instanceCI->session->userdata('id_role'); $menu = $instanceCI->uri->segment(1); $queryMenu = $instanceC...
11,737
https://github.com/RuendiHadi/aptukon/blob/master/resources/views/mahasiswa/tambah_konsultasi.blade.php
Github Open Source
Open Source
MIT
null
aptukon
RuendiHadi
PHP
Code
97
477
@extends('../layout_mahasiswa.mahasiswa') @section('title-mhs') Tambah Konsultasi @endsection @section('content') <!-- Begin Page Content --> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-6"> ...
43,153
https://github.com/JPTHEMX/vcardkit/blob/master/Sources/VCardKit/structures/VCardSex.swift
Github Open Source
Open Source
MIT
2,020
vcardkit
JPTHEMX
Swift
Code
36
78
import VComponentKit public enum VCardSex: String, VPropertyEncodable { case male = "M" case female = "F" case other = "O" case none = "N" case unknown = "U" public var vEncoded: String { rawValue } }
16,314
https://github.com/ZephyrVR/node-openvr/blob/master/src/other_util.h
Github Open Source
Open Source
MIT
2,020
node-openvr
ZephyrVR
C
Code
88
349
#ifndef NODE_OTHER_UTIL_H #define NODE_OTHER_UTIL_H #include <napi.h> #include <uv.h> #include <openvr.h> // #include <v8.h> ; #define SET_METHOD(name) target.Set(Napi::GetCurrentContext(), Napi::New(env, #name), Napi::Function::New(env, name).GetFunction(Napi::GetCurrentContext())); #define V8STR(prop, name) const...
7,698
https://github.com/anthonydahanne/terracotta-management/blob/master/management-model/src/main/java/org/terracotta/management/model/call/ContextualReturn.java
Github Open Source
Open Source
Apache-2.0
2,016
terracotta-management
anthonydahanne
Java
Code
446
985
/* * Copyright Terracotta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
52,841
https://github.com/Jay-Jay-D/quantrocket-client/blob/master/setup.py
Github Open Source
Open Source
Apache-2.0
2,021
quantrocket-client
Jay-Jay-D
Python
Code
135
365
# Copyright 2017 QuantRocket - 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 # # Unless required by applicable law or ...
27,178
https://github.com/a801-luadev/bolodefchoco/blob/master/src/roomModes/preguntas/package.lua
Github Open Source
Open Source
MIT
2,022
bolodefchoco
a801-luadev
Lua
Code
23
66
{ name = "preguntas", authors = { "Bolodefchoco#0015" }, alias = { isTribeHouse = false, community = "es", modeName = "perguntas" } }
27,070
https://github.com/bhicken/VSBookmarks/blob/master/VSBookmarks/GlyphFactoryProvider.cs
Github Open Source
Open Source
Apache-2.0
2,022
VSBookmarks
bhicken
C#
Code
35
170
using System.ComponentModel.Composition; using Microsoft.VisualStudio.Text.Editor; using Microsoft.VisualStudio.Text.Tagging; using Microsoft.VisualStudio.Utilities; namespace VSBookmarks { [Export(typeof(IGlyphFactoryProvider))] [Name("VSBookmarks")] [Order(After = "VsTextMarker")] [ContentType("any")] [T...
23,699
https://github.com/StreamMachine/sm-transcoder/blob/master/src/worker.coffee
Github Open Source
Open Source
MIT
2,017
sm-transcoder
StreamMachine
CoffeeScript
Code
88
256
net = require "net" debug = require('debug')('sm-transcoder:worker') Transcode = require "./transcode" class OutputLength extends require("stream").Transform constructor: -> @_length = 0 super() _transform: (chunk,encoding,cb) -> @_length += chunk.length @push chunk c...
24,257
https://github.com/knopflerfish/eclipse.knopflerfish.org/blob/master/org.knopflerfish.eclipse.core.ui/src/org/knopflerfish/eclipse/core/ui/wizards/ProjectWizardPage.java
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,017
eclipse.knopflerfish.org
knopflerfish
Java
Code
1,414
5,001
/* * Copyright (c) 2003-2005, KNOPFLERFISH project * 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 ...
16,676
https://github.com/originphp/framework/blob/master/src/Http/Controller/Component/PaginatorComponent.php
Github Open Source
Open Source
MIT
2,021
framework
originphp
PHP
Code
676
1,821
<?php /** * OriginPHP Framework * Copyright 2018 - 2021 Jamiel Sharief. * * Licensed under The MIT License * The above copyright notice and this permission notice shall be included in all copies or substantial * portions of the Software. * * @copyright Copyright (c) Jamiel Sharief * @link https://www....
29,417
https://github.com/michele-loreti/bvernan/blob/master/bvernam.h
Github Open Source
Open Source
MIT
2,021
bvernan
michele-loreti
C
Code
577
1,163
// Copyright (c) 2021. // BVernam: a simple program for one-time-pad encryption. #include <stdio.h> #ifndef UNTITLED_BVERNAN_H #define UNTITLED_BVERNAN_H typedef unsigned char byte; #define EMPTY_KEY_FILE 0; /** * Data structure used to store the bvernan key. */ typedef struct str_key { /** * Size of the...
27,902
https://github.com/mi9rom/VaadHL/blob/master/src/com/vaadHL/utl/action/ActionGroup.java
Github Open Source
Open Source
Apache-2.0
2,015
VaadHL
mi9rom
Java
Code
670
1,765
/* * Copyright 2015 Mirosław Romaniuk (mi9rom@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
4,493
https://github.com/SAP/fundamental-vue/blob/master/src/docs/pages/button/styling.vue
Github Open Source
Open Source
Apache-2.0
2,022
fundamental-vue
SAP
Vue
Code
22
124
<template> <div class="fdd-button__styling"> <fd-button styling="emphasized">Emphasized Button</fd-button> <fd-button>Regular Button</fd-button> <fd-button styling="light">Light Button</fd-button> </div> </template> <style> .fdd-button__styling > button[class*='fd-button'] { margin-right: 10px; } </s...
37,241
https://github.com/violetfocus0618/animationConverter/blob/master/resources/src/users/components/previews/Image-preview.vue
Github Open Source
Open Source
MIT
2,022
animationConverter
violetfocus0618
Vue
Code
223
907
<template> <div class="component-image-preview" v-if="visible"> <div class="element--transform-wrap" :style="computedStyles"> <div class="element" :style="getElementStyles(element)"> <div class="image-element"> <div class="element__content"> ...
41,822
https://github.com/buuug7/mu-login-app/blob/master/src/config.js
Github Open Source
Open Source
MIT
2,021
mu-login-app
buuug7
JavaScript
Code
38
139
// default IP export const defaultIp = '120.55.52.223'; // default port export const defaultPort = '44405'; // 每次启动登录器都去更新客户端文件 export const updateEveryLaunch = true; // 显示配置IP跟端口选项 export const showIpAndPortOption = false; // 更新客户端 URL export const clientUpdateUrl = 'http://mu.yoursoups.com/client-updates/update...
51,301
https://github.com/mo-shiraz/jobPortal/blob/master/resources/views/employer_register.blade.php
Github Open Source
Open Source
MIT
null
jobPortal
mo-shiraz
PHP
Code
285
1,454
@extends('layouts.master') @section('contentSection') <div class="container my-3"> <div class="card"> <div class="card-header bg-info">Employer Register Form</div> <div class="card-body"> <form action="{{route('register.company')}}" method="POST"> @csrf <d...
33,848
https://github.com/cisco-sso/meraki-cli/blob/master/client/monitored_media_servers/update_organization_insight_monitored_media_server_parameters.go
Github Open Source
Open Source
Apache-2.0
2,020
meraki-cli
cisco-sso
Go
Code
613
1,862
// Code generated by go-swagger; DO NOT EDIT. package monitored_media_servers // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "net/http" "time" "github.com/go-openapi/errors" "github.com/go-openapi/runtime" ...
33,439
https://github.com/interfaced/zombiebox-extension-ui/blob/master/lib/image-preload.js
Github Open Source
Open Source
MIT
null
zombiebox-extension-ui
interfaced
JavaScript
Code
205
574
/* * This file is part of the ZombieBox package. * * Copyright © 2012-2020, Interfaced * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * @param {Array<string>} urlList * @param {number=} timeout * @return {Promise<Array<Im...
19,635
https://github.com/neptune-ai/pytorch-lightning/blob/master/src/lightning_app/utilities/cloud.py
Github Open Source
Open Source
Apache-2.0
2,022
pytorch-lightning
neptune-ai
Python
Code
150
442
import os import warnings from lightning_cloud.openapi import V1Membership import lightning_app from lightning_app.core.constants import LIGHTNING_CLOUD_PROJECT_ID from lightning_app.utilities.enum import AppStage from lightning_app.utilities.network import LightningClient def _get_project(client: LightningClient, ...
3,906
https://github.com/yuseferi/wiremock-php/blob/master/src/WireMock/Client/NearMiss.php
Github Open Source
Open Source
MIT
2,019
wiremock-php
yuseferi
PHP
Code
160
521
<?php namespace WireMock\Client; use WireMock\Matching\RequestPattern; use WireMock\Stubbing\StubMapping; class NearMiss { /** @var LoggedRequest */ private $_request; /** @var StubMapping */ private $_mapping; /** @var RequestPattern */ private $_requestPattern; /** @var MatchResult */ ...
27,740
https://github.com/arshchimni/cuetorials.com/blob/master/code/patterns/recursion/fix.cue
Github Open Source
Open Source
BSD-3-Clause
2,021
cuetorials.com
arshchimni
null
Spoken
99
220
package fix // Phil's code #Fix: { F: _ Out: *null | F & {Self: Out, ...} } #fix: { #F: _ #I: _ #O: *null | (#fix & { "#F": #F "#I": (#F & { in: #I }).out }).out } #f: { in: int out: in - 1 } f: #f & { in: 4 } F: #fix & { #F: #f, #I: 4 } // f: #fix & { F: #f, I: 4 } //list: { //val: _ //next: *nu...
39,099
https://github.com/Ucampus/upasaporte-android/blob/master/app/src/main/java/cl/uchile/ing/adi/demoupasaporte/UPasaporteActivity.java
Github Open Source
Open Source
MIT
2,016
upasaporte-android
Ucampus
Java
Code
182
829
package cl.uchile.ing.adi.demoupasaporte; import android.content.Intent; import android.net.UrlQuerySanitizer; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.webkit.WebView; import android.webkit.WebViewClient; import java.io.Unsupp...
17,800
https://github.com/dumparun/firecracker-server/blob/master/web/application/libraries/Unauthorized_exception.php
Github Open Source
Open Source
MIT
null
firecracker-server
dumparun
PHP
Code
29
91
<?php /** * * @author Maganiva * */ class Unauthorized_Exception extends Exception { public $passed_object = FALSE; public function __construct($passed_object, $message, &$code){ parent::__construct($message, $code); $this->passed_object = $passed_object; } }
8,647
https://github.com/pombredanne/django-github/blob/master/github/admin.py
Github Open Source
Open Source
MIT
2,011
django-github
pombredanne
Python
Code
347
1,263
from django.contrib import admin from github.models import Project, Blob, Commit, GithubUser, Gist, Language class GithubUserAdmin(admin.ModelAdmin): list_display = ('login', 'name', 'blog') search_fields = ('login', 'name', 'company', 'blog') actions = ['fetch_github', 'fetch_repos', 'fetch_watching', 'f...
19,279
https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-typescript/test/fixtures/namespace/namespace-nested-module/input.ts
Github Open Source
Open Source
MIT
2,023
babel
babel
TypeScript
Code
28
45
namespace N { const M1 = {} export module M1 { var x; } const { M2 } = {} export module M2 { var y; } }
6,586
https://github.com/27629678/NEPush/blob/master/Auth/NEPushAuthManager.m
Github Open Source
Open Source
MIT
2,016
NEPush
27629678
Objective-C
Code
79
315
// // NEPushAuthManager.m // mail // // Created by hzyuxiaohua on 2016/10/18. // Copyright © 2016年 XY Co., Ltd. All rights reserved. // #import "NEPushAuthManager.h" #import "AppDelegate.h" #import "IOSVersion.h" #import "NEPushAuthForIOS7_X.h" #import "NEPushAuthForIOS8_X.h" #import "NEPushAuthForIOS10_X.h" #imp...
3,099
https://github.com/shanJoy/SA-Swift/blob/master/SA-Swift/Utils/GTScreen.swift
Github Open Source
Open Source
MIT
2,020
SA-Swift
shanJoy
Swift
Code
279
817
// // GTScreen.swift // SA-Swift // // Created by 张圣俊 on 2020/7/13. // Copyright © 2020 张圣俊. All rights reserved. // import Foundation import UIKit public func UI(value: Float) -> CGFloat { return UIAdapter(value: value) } public func UIRect(x: Float, y:Float, width: Float, height: Float) -> CGRect { ret...
14,598
https://github.com/taisei-project/taisei/blob/master/src/stages/stage2/spells/wheel_of_fortune.c
Github Open Source
Open Source
LicenseRef-scancode-warranty-disclaimer, CC-BY-4.0, LicenseRef-scancode-public-domain, MIT
2,023
taisei
taisei-project
C
Code
304
1,016
/* * This software is licensed under the terms of the MIT License. * See COPYING for further information. * --- * Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>. * Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>. */ #include "taisei.h" #include "spells.h" #include "global.h" #inclu...
14,731
https://github.com/consected/restructure/blob/master/app-scripts/api/marketo-webhook-simulator.sh
Github Open Source
Open Source
BSD-3-Clause
2,023
restructure
consected
Shell
Code
90
405
#!/bin/bash # Pretend to be a Marketo webhook if [ -z "${upload_user_token}" ]; then cat << EOF Usage: upload_user_token=<reset password to get a new token> \\ upload_server=https://a-server.tld \\ upload_user_email=marketo_webhook@system-user \\ upload_app_type=4 \\ post_email=phil-test14@test.tst\\ post_event_type...
29,700
https://github.com/Delepha/COMFORT/blob/master/artifact_evaluation/data/codeCoverage/die_generate/256.js
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,021
COMFORT
Delepha
JavaScript
Code
25
62
function f() { var x = []; for (var i = 0; i < 10; i++) { x.length = x; } } f(); Number.parseInt("get".substr(10)); f();
40,579
https://github.com/ikramasifkhan/personal_portfolio_site_for_alomgir_hossain_sir/blob/master/app/Http/Controllers/AlomgirHossaingController.php
Github Open Source
Open Source
MIT
null
personal_portfolio_site_for_alomgir_hossain_sir
ikramasifkhan
PHP
Code
33
169
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\About; use App\Course; class AlomgirHossaingController extends Controller { public function index(){ $abouts=About::where('publication_status', 1) ->orderBy('id','DESC') ->take(1) ->...
39,630
https://github.com/fog/fog-vsphere/blob/master/lib/fog/vsphere/requests/compute/list_hosts.rb
Github Open Source
Open Source
MIT
2,023
fog-vsphere
fog
Ruby
Code
177
900
# rubocop:disable Lint/RescueWithoutErrorClass module Fog module Vsphere class Compute class Real def list_hosts(filters = {}) cluster = get_raw_cluster(filters[:cluster], filters[:datacenter]) results = property_collector_results(host_system_filter_spec(cluster)) res...
29,995
https://github.com/Chelsea-Magleo/OOP-58002/blob/master/The Grid Manager.py
Github Open Source
Open Source
Apache-2.0
null
OOP-58002
Chelsea-Magleo
Python
Code
123
1,114
from tkinter import * window = Tk() window.geometry("400x300+20+10") window.title('Simple Calculator') class MyWindow: def __init__(self,window): self.lbl1 = Label(window,text="Standard Calculator") #self.lbl1.place(relx=0.50,y=50,anchor="center") self.lbl1.grid(row=0, column=2) sel...
26,275
https://github.com/icharle/WebServer/blob/master/src/EventLoopThread.h
Github Open Source
Open Source
MIT
2,022
WebServer
icharle
C
Code
48
208
// // Created by Icharle on 2020/5/17. // #ifndef WEBNGINX_EVENTLOOPTHREAD_H #define WEBNGINX_EVENTLOOPTHREAD_H #include "../base/noncopyable.h" #include "../base/Thread.h" #include "../base/Condition.h" #include "../base/MutexLock.h" #include "EventLoop.h" class EventLoopThread : noncopyable { public: EventLoop...
15,455
https://github.com/vladosfi/intrasoft/blob/master/src/Data/Dtos/IsoService/IsoServiceReadDto.cs
Github Open Source
Open Source
MIT
null
intrasoft
vladosfi
C#
Code
75
225
namespace IntraSoft.Data.Dtos.IsoService { using IntraSoft.Services.Mapping; using IntraSoft.Data.Models; using src.Data.Dtos.IsoFile; using System.Collections.Generic; public class IsoServiceReadDto : IMapFrom<IsoService> { public IsoServiceReadDto(){ this.IsoFiles = new ...
3,552
https://github.com/drubin/simple_admin_auth/blob/master/lib/simple_admin_auth/authenticated.rb
Github Open Source
Open Source
MIT
2,013
simple_admin_auth
drubin
Ruby
Code
34
149
module SimpleAdminAuth def self.authenticate &block constraints(Authenticate) do yield end end class Authenticate def self.matches?(request) if !request.session[:admin_user].nil? true else request.session[:admin_login_return_url] = request.url raise RedirectE...
20,012
https://github.com/akaliutau/cs-problems-python/blob/master/problems/bfs/Solution286.py
Github Open Source
Open Source
MIT
2,021
cs-problems-python
akaliutau
Python
Code
164
292
""" You are given a m x n 2D grid initialized with these three possible values. -1 - A wall or an obstacle. 0 - A gate. INF - Infinity means an empty room. We use the value 2^31 - 1 = 2147483647 to represent INF as you may assume that the distance to a gate is less than 2147483647. ...
46,865
https://github.com/CoachMe-Lambda-LabsPT10/coach-me-fe/blob/master/src/sass/dashboard/coach/notificationCenter/coach_messaging/updateModal.scss
Github Open Source
Open Source
MIT
2,020
coach-me-fe
CoachMe-Lambda-LabsPT10
SCSS
Code
485
1,763
@mixin layout2 { display: flex; flex-direction: column; justify-content: space-between; align-items: center; } .hidden { display: none; border: 1px, solid, green; } .message-container-modal { width: 29%; height: 70rem; z-index: 2; display: flex; justify-content: center; ...
22,243
https://github.com/Bernardo-MG/dreadball-model-persistence/blob/master/src/main/java/com/bernardomg/tabletop/dreadball/model/persistence/availability/asset/PersistentTeamTypeAssetsAvailability.java
Github Open Source
Open Source
Apache-2.0
null
dreadball-model-persistence
Bernardo-MG
Java
Code
1,141
2,925
/** * Copyright 2015 the original author or authors * <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-2.0 * <p> * Unless required by ...
15,191
https://github.com/essic/extreme-carpaccio/blob/master/server/specs/config_spec.js
Github Open Source
Open Source
BSD-3-Clause
2,022
extreme-carpaccio
essic
JavaScript
Code
140
448
'use strict'; var _1000_MILLIS_TIMEOUT = 1000; var _200_MILLIS = 200; var fs = require('fs'), Configuration = require('../javascripts/config').Configuration; describe('Configuration', function(){ var config, synchronized, configFilepath = "specs/config.json.tmp"; beforeEach(function () {...
32,702
https://github.com/Alec-97/OA-GAN/blob/master/models/FOAFCGAN_alternate_training.py
Github Open Source
Open Source
Apache-2.0
2,022
OA-GAN
Alec-97
Python
Code
1,036
5,693
import os import numpy as np from collections import OrderedDict import math import matplotlib import matplotlib.pyplot as plt import PIL.Image as Image import torch from models.base_model import BaseModel from models.modules.base_module import ModuleFactory import utils.util as util from models.modules.vgg import V...
28,658
https://github.com/adimango/insights-for-instagram/blob/master/insights-for-instagram/App/AppUserAccount.swift
Github Open Source
Open Source
MIT
2,022
insights-for-instagram
adimango
Swift
Code
71
234
import Foundation class AppUserAccount { enum DefaultsKeys: String { case UserAccountKey } // MARK: - Initializers let defaults: UserDefaults init(defaults: UserDefaults) { self.defaults = defaults } init() { self.defaults = UserDefaults.standard ...
5,068
https://github.com/MicrosoftAzureFox/architecture-center/blob/master/build/reference-architectures/templates/index.liquid
Github Open Source
Open Source
CC-BY-4.0, MIT
2,019
architecture-center
MicrosoftAzureFox
null
Spoken
80
169
--- title: {{ title }} description: {{ description }} layout: LandingPage ms.topic: landing-page --- <!-- This file is generated! --> <!-- See the templates in ./build/reference-architectures --> <!-- See data in index.json --> # {{ title }} {{ summary }} <section class="series"> <ul class="panelContent"> {...
10,804
https://github.com/pengdada/dense_linear_algebra/blob/master/lud/cusolver_mkl/src/lud_cusolver_mkl.cpp
Github Open Source
Open Source
Apache-2.0
null
dense_linear_algebra
pengdada
C++
Code
545
1,956
#include <cstdio> #include <iostream> #include <cassert> #include <cstdlib> #include <cuda_runtime.h> #include <cusolverDn.h> #include "../../../common/helper.h" #ifdef _OPENMP #include <omp.h> #endif #include <math.h> #include <mkl.h> int nIters = 2; int main(int argc, char **argv) { int N; if (argc !=2) { pri...
3,520
https://github.com/Rabbit-A512/task-plus-server/blob/master/src/group/dto/create-group.dto.ts
Github Open Source
Open Source
MIT
null
task-plus-server
Rabbit-A512
TypeScript
Code
25
74
import { MinLength } from 'class-validator'; export class CreateGroupDto { /** * 长度验证 * * @type {string} * @memberof CreateGroupDto */ @MinLength(1) name: string; }
23,113
https://github.com/chrismear/rails-lighthouse-archive/blob/master/data/attachments/239234/backport_truncate_seperator.diff
Github Open Source
Open Source
MIT
2,011
rails-lighthouse-archive
chrismear
null
Spoken
340
966
From ca72845c46f6e9d5166fe526b3335503be1f9d96 Mon Sep 17 00:00:00 2001 From: Steve St. Martin <kuprishuz@gmail.com> Date: Sat, 8 Aug 2009 20:40:28 -0400 Subject: [PATCH] backport truncate options[:seperator] --- actionpack/lib/action_view/helpers/text_helper.rb | 8 +++++++- actionpack/test/template/text_helper_te...
47,984
https://github.com/piyushd26/studlan/blob/master/apps/sendmail/urls.py
Github Open Source
Open Source
MIT
2,020
studlan
piyushd26
Python
Code
20
62
# -*- coding: utf-8 -*- from django.conf.urls import url from .views import sendmail_send urlpatterns = [ url(r'^$', sendmail_send, name='sendmail_send'), ]
14,299
https://github.com/jay4497/j4cms/blob/master/resources/views/admin/node/update.blade.php
Github Open Source
Open Source
MIT
null
j4cms
jay4497
PHP
Code
359
1,494
@extends('layouts.admin') @section('content') <div class="panel panel-default"> <div class="panel-heading"> {{ \Request::route('one') == 'add' ? lang('node add') : lang('node update') }} </div> <div class="panel-body"> @include('partials.error') <form class="form-horizontal" method=...
23,717
https://github.com/Manu-Jindal/surprise-me-android/blob/master/folding-cell-listview-example/src/main/java/com/ramotion/foldingcell/examples/listview/MainActivity.java
Github Open Source
Open Source
MIT
2,021
surprise-me-android
Manu-Jindal
Java
Code
333
1,379
package com.ramotion.foldingcell.examples.listview; import android.app.DatePickerDialog; import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.AdapterView; import android.widget.Button; import android.wi...
6,395
https://github.com/arangodb/arangodb/blob/master/3rdParty/boost/1.78.0/libs/locale/doc/html/namespaceboost_1_1locale_1_1period.js
Github Open Source
Open Source
BSL-1.0, Apache-2.0, BSD-3-Clause, ICU, Zlib, GPL-1.0-or-later, OpenSSL, ISC, LicenseRef-scancode-gutenberg-2020, MIT, GPL-2.0-only, CC0-1.0, LicenseRef-scancode-autoconf-simple-exception, LicenseRef-scancode-pcre, Bison-exception-2.2, LicenseRef-scancode-public-domain, JSON, BSD-2-Clause, LicenseRef-scancode-unknown-l...
2,023
arangodb
arangodb
JavaScript
Code
15
101
var namespaceboost_1_1locale_1_1period = [ [ "marks", "namespaceboost_1_1locale_1_1period_1_1marks.html", null ], [ "period_type", "classboost_1_1locale_1_1period_1_1period__type.html", "classboost_1_1locale_1_1period_1_1period__type" ] ];
23,700
https://github.com/jlecoeur/MAVRIC_Library/blob/master/hal/chibios/stubs.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
MAVRIC_Library
jlecoeur
C++
Code
400
787
/******************************************************************************* * Copyright (c) 2009-2016, MAV'RIC Development Team * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. R...
38,681
https://github.com/reysmerwvr/ConcentrationGameAssignment/blob/master/ConcentrationGameAssignment/Controllers/ViewController.swift
Github Open Source
Open Source
MIT
null
ConcentrationGameAssignment
reysmerwvr
Swift
Code
420
1,284
// // ViewController.swift // ConcentrationGameAssignment // // Created by Reysmer Valle on 7/8/18. // Copyright © 2018 Reysmer Valle. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet private var cardButtons: [UIButton]! @IBOutlet private weak var flipCount...
32,299
https://github.com/mrxzc/lsp2/blob/master/public/gleek/gleek/assets/plugins/ckeditor/plugins/devtools/lang/es-mx.js
Github Open Source
Open Source
MIT
2,020
lsp2
mrxzc
JavaScript
Code
33
112
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("devtools","es-mx",{title:"Información del elemento",dialogName:"Nombre de la ventana de diálogo",tabName:"Nombre de la pestaña",e...
46,637
https://github.com/JuanCorona25/GestAgro/blob/master/app/Http/Controllers/PrediosController.php
Github Open Source
Open Source
MIT
null
GestAgro
JuanCorona25
PHP
Code
165
791
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\predio; use App\finca; use App\Http\Requests\PrediosRequest; use Illuminate\Support\Facades\View; class PrediosController extends Controller { public function __construct(){ $this->middleware('auth'); } public function ...
53,020
ERROR: type should be string, got "https://github.com/ohana54/yoshi/blob/master/packages/create-yoshi-app/templates/flow-editor/typescript/src/components/{each%flowData.components:name%each}/controller.spec.ts"
Github Open Source
Open Source
RSA-MD
null
yoshi
ohana54
TypeScript
Code
116
422
import Experiments from '@wix/wix-experiments'; import { IWidgetControllerConfig } from '@wix/native-components-infra/dist/src/types/types'; import { controllerConfigMock, controllerFlowAPIMock, } from 'yoshi-flow-editor-runtime/test'; import { appName, experiments as experimentsConfig, } from '../../../.applic...
10,011
https://github.com/Ator9/laravel-adminux/blob/master/resources/views/adminux/backend/layout.blade.php
Github Open Source
Open Source
MIT
2,023
laravel-adminux
Ator9
Blade
Code
102
552
@inject('Helper', 'App\Adminux\Helper') @php $prefix = $Helper::getPrefix() @endphp <!doctype html> <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="csrf-token" content="{{ csrf_...
50,251
https://github.com/siddique-shahida/Robotics_Hut/blob/master/public/js/loginenv.js
Github Open Source
Open Source
MIT
null
Robotics_Hut
siddique-shahida
JavaScript
Code
68
239
//const loginButton = document.getElementById('button'); function checkResponse(res) { if (res.ok) { console.log('Success'); console.log(res); } else { throw new Error(`The HTTP status of the response: ${res.status} (${res.statusText})`); } } function loginUser(event) { event....
35,275
https://github.com/ausbin/CircuitSim/blob/master/src/com/ra4king/circuitsim/simulator/components/plexers/Demultiplexer.java
Github Open Source
Open Source
BSD-3-Clause
2,022
CircuitSim
ausbin
Java
Code
223
796
package com.ra4king.circuitsim.simulator.components.plexers; import java.util.Arrays; import com.ra4king.circuitsim.simulator.CircuitState; import com.ra4king.circuitsim.simulator.Component; import com.ra4king.circuitsim.simulator.Port; import com.ra4king.circuitsim.simulator.WireValue; /** * @author Roi Atalla */...
48,415
https://github.com/MnMInfoTech/GWS/blob/master/GWS/Controls/Control.cs
Github Open Source
Open Source
MIT
2,023
GWS
MnMInfoTech
C#
Code
752
2,097
 #if(GWS ||Window) using System; using System.Collections.Generic; #if NoObjectLimit using gint = System.Int32; #else using gint = System.UInt16; #endif namespace MnM.GWS { #region ICONTROL public partial interface IControl : IWidget { } #endregion #region IExCONTROL internal partial interfa...
19,531
https://github.com/googleapis/python-aiplatform/blob/master/tests/unit/aiplatform/test_model_garden_models.py
Github Open Source
Open Source
Apache-2.0
2,023
python-aiplatform
googleapis
Python
Code
246
1,215
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
18,011
https://github.com/plukevdh/monet_web/blob/master/Rakefile
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,014
monet_web
plukevdh
Ruby
Code
15
75
require "bundler/gem_tasks" require 'sinatra/asset_pipeline/task' require 'monet/tasks' require 'monet_web' Sinatra::AssetPipeline::Task.define! MonetWeb::App task :run do MonetWeb::App.run! end
43,037
https://github.com/bertm7/commshare/blob/master/grails-app/views/user/show.gsp
Github Open Source
Open Source
Apache-2.0
2,015
commshare
bertm7
null
Spoken
375
2,095
<!doctype html> <html> <head> <meta name="layout" content="main"/> %{-- - Copyright (c) 2013 Rene Puchinger. - http://renepuchinger.com --}% <r:require modules="application"/> <r:require modules="bootstrap"/> <r:require modules="bootstrap-responsive-css"/> <r:require module="fileuploader" /> <g:javascript> ...
22,640
https://github.com/dariorg/Voting_3a/blob/master/VotingSystem/src/main/java/es/uniovi/asw/VotingSystem/persistence/dbManagement/votingDBManagement/impl/GetVOptionsImpl.java
Github Open Source
Open Source
MIT
2,016
Voting_3a
dariorg
Java
Code
37
223
package es.uniovi.asw.VotingSystem.persistence.dbManagement.votingDBManagement.impl; import java.util.List; import es.uniovi.asw.VotingSystem.persistence.dbManagement.votingDBManagement.GetVOptions; import es.uniovi.asw.dbManagement.CandidacyRepository; import es.uniovi.asw.model.Candidatura; import es.uniovi.asw.mod...
7,128
https://github.com/Bxc8214/mlton-test/blob/master/build/lib/sml/ckit-lib/regression/output/t7.c
Github Open Source
Open Source
BSD-3-Clause
2,019
mlton-test
Bxc8214
C
Code
96
392
int (**x[4]) (int,int,int); int (*(*y)[10]) (int,int,int); extern int nar (int,int,int); int nar (int x_p1510,int y_p1511,int z_p1512) { return 3; } typedef int bar_t253; static int g; static int narn (int x_p1516,int y_p1517,int z_p1518) { return (x_p1516+y_p1517)+z_p1518; } void main () { int (**x1_p1520...
52,642
https://github.com/kosithu-kw/shoung/blob/master/app/Http/Controllers/WelcomeController.php
Github Open Source
Open Source
MIT
null
shoung
kosithu-kw
PHP
Code
52
278
<?php namespace App\Http\Controllers; use App\Cat; use App\Foodpair; use Illuminate\Http\Request; class WelcomeController extends Controller { public function getFoodsList(){ //$cats=Cat::with('foodpairs')->get(); $foods=Foodpair::OrderBy('id', 'desc')->paginate("40"); return view ('foods...
44,512
https://github.com/joschi/java-metadata/blob/master/docs/checksums/sapmachine/sapmachine-jre-11.0.12-ea.6_linux-ppc64_bin.tar.gz.md5
Github Open Source
Open Source
MIT
2,023
java-metadata
joschi
null
Spoken
2
46
f375881708abe07352a577009d0cbedf sapmachine-jre-11.0.12-ea.6_linux-ppc64_bin.tar.gz
34,432
https://github.com/gobuffalo/bufcli/blob/master/cli/internal/plugins/i18n/i18n.go
Github Open Source
Open Source
MIT
2,020
bufcli
gobuffalo
Go
Code
16
64
package i18n import ( "github.com/gobuffalo/plugins" ) func Plugins() []plugins.Plugin { return []plugins.Plugin{ &Generator{}, &Newapp{}, } }
38,947
https://github.com/reusee/catch/blob/master/catch.go
Github Open Source
Open Source
Apache-2.0
null
catch
reusee
Go
Code
82
213
package catch import "fmt" type Err struct { Pkg, Info string Err error } func (e Err) Error() string { return fmt.Sprintf("%s: %s\n%v", e.Pkg, e.Info, e.Err) } func PkgChecker(pkg string) func(error, string) bool { return func(err error, info string) (ret bool) { ret = true if err != nil { panic(E...
29,321
https://github.com/Ryan-rsm-McKenzie/CommonLibSSE/blob/master/src/RE/G/GFxRenderConfig.cpp
Github Open Source
Open Source
MIT
2,023
CommonLibSSE
Ryan-rsm-McKenzie
C++
Code
120
603
#include "RE/G/GFxRenderConfig.h" namespace RE { bool GFxRenderConfig::IsUsingEdgeAA() const { return renderFlags.all(RenderFlag::kEdgeAA) && IsEdgeAATextured(); } bool GFxRenderConfig::IsEdgeAATextured() const { return rendererCapBits.all(RenderCapBits::kFillGouraudTex); } bool GFxRenderConfig::IsOptimiz...
18,470
https://github.com/BramboraSK/imgbrd-grabber/blob/master/tests/src/login/http-login-test.cpp
Github Open Source
Open Source
Apache-2.0
2,019
imgbrd-grabber
BramboraSK
C++
Code
172
898
#include "login/http-login-test.h" #include <QNetworkCookieJar> #include <QSettings> #include <QtTest> #include "auth/auth-const-field.h" #include "auth/auth-field.h" #include "auth/http-auth.h" #include "custom-network-access-manager.h" #include "login/http-get-login.h" #include "login/http-post-login.h" #include "mix...
28,488
https://github.com/CyberFlameGO/EpicRPG/blob/master/src/main/java/com/songoda/epicrpg/commands/CommandPartyDisband.java
Github Open Source
Open Source
LicenseRef-scancode-other-permissive
2,021
EpicRPG
CyberFlameGO
Java
Code
125
588
package com.songoda.epicrpg.commands; import com.songoda.core.commands.AbstractCommand; import com.songoda.epicrpg.EpicRPG; import com.songoda.epicrpg.story.contender.StoryContender; import com.songoda.epicrpg.story.contender.StoryParty; import com.songoda.epicrpg.story.contender.StoryPlayer; import org.bukkit.command...
45,062
https://github.com/pashokred/educational_system/blob/master/educ_system/Models/DBOSchoolContext.cs
Github Open Source
Open Source
MIT
2,021
educational_system
pashokred
C#
Code
428
1,909
using Microsoft.EntityFrameworkCore; #nullable disable namespace educ_system.Models { public partial class DBOSchoolContext : DbContext { public DBOSchoolContext() { } public DBOSchoolContext(DbContextOptions<DBOSchoolContext> options) : base(options) { ...
20,458
https://github.com/richenyunqi/CCF-CSP-and-PAT-solution/blob/master/PAT/Advanced Level/1014. Waiting in Line.cpp
Github Open Source
Open Source
ICU
2,022
CCF-CSP-and-PAT-solution
richenyunqi
C++
Code
195
672
#include <bits/stdc++.h> using namespace std; using gg = long long; struct Customer { gg endTime, num, w; //结束服务的时间、顾客编号、服务窗口编号 Customer(gg e, gg n, gg ww) : endTime(e), num(n), w(ww) {} }; bool operator<(const Customer& c1, const Customer& c2) { return tie(c1.endTime, c1.w) > tie(c2.endTime, c2.w); } int ...
12,749
https://github.com/Parquery/revproxyry/blob/master/vendor/github.com/jimstudt/http-authentication/basic/md5_test.go
Github Open Source
Open Source
MIT
2,021
revproxyry
Parquery
Go
Code
695
7,794
package basic import ( "fmt" "testing" ) type md5Datum struct { password string salt string hashed string } var md5TestData = []md5Datum{ md5Datum{"mickey5", "gxNb79DX", "6wi9QaGNM5TA0kBKiC4710"}, md5Datum{"alexandrew", "kv1uUfCO", "iEwrWojf92uZ/9uhTQmMo."}, md5Datum{"hawaiicats78", "UQ6GxE7V", "OrIqWO...
24,258
https://github.com/0xWm/TrovoScraper/blob/master/TrovoFollowersScruber/Client/TrovoScruberClient/Source/TrovoScruberClient/TrovoScruberClientGameInstance.cpp
Github Open Source
Open Source
MIT
null
TrovoScraper
0xWm
C++
Code
41
145
// Fill out your copyright notice in the Description page of Project Settings. #include "TrovoScruberClientGameInstance.h" #include "WebManager.h" UTrovoScruberClientGameInstance* SingletonInstance; void UTrovoScruberClientGameInstance::Init() { // Singleton SingletonInstance = this; WebManager = NewObjec...
27,195
https://github.com/rianzaman/olivine-apt-test/blob/master/app/Http/Controllers/VerifyUserController.php
Github Open Source
Open Source
MIT
null
olivine-apt-test
rianzaman
PHP
Code
92
290
<?php namespace App\Http\Controllers; use App\User; use Brian2694\Toastr\Facades\Toastr; use Carbon\Carbon; use Illuminate\Http\Request; class VerifyUserController extends Controller { /** * Handle the incoming request. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http...
50,151
https://github.com/ThePiranha/infer/blob/master/src/Runtime/Factors/InnerProductArray.cs
Github Open Source
Open Source
MIT
2,019
infer
ThePiranha
C#
Code
1,593
6,658
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. namespace Microsoft.ML.Probabilistic.Factors { using System; using System.Collections.Generic; using Mic...
19,784
https://github.com/nandofioretto/dcop_sim/blob/master/src/main/java/communication/VariableNode.java
Github Open Source
Open Source
MIT
null
dcop_sim
nandofioretto
Java
Code
250
672
package communication; import agent.FactorGraphAgent; import kernel.Variable; import java.util.ArrayList; import java.util.List; /** * Created by nando on 5/17/17. */ public class VariableNode { private List<FactorNode> neighbors; // Factor Nodes whose constraint is shared with the variable of this variab...
45,991
https://github.com/ancho85/edX-CTec001x-FacebookRecipes/blob/master/app/src/main/java/edu/galileo/android/facebookrecipes/recipelist/RecipeListPresenter.java
Github Open Source
Open Source
MIT
null
edX-CTec001x-FacebookRecipes
ancho85
Java
Code
34
191
package edu.galileo.android.facebookrecipes.recipelist; import edu.galileo.android.facebookrecipes.entities.Recipe; import edu.galileo.android.facebookrecipes.recipelist.events.RecipeListEvent; import edu.galileo.android.facebookrecipes.recipelist.ui.RecipeListView; public interface RecipeListPresenter { void onC...
29,109
https://github.com/yscode001/YSKit/blob/master/YSKitProject/YSKit/CreateObject/Cocoa/UIScrollView+create.swift
Github Open Source
Open Source
MIT
2,021
YSKit
yscode001
Swift
Code
78
277
// // UIScrollView+create.swift // YSKit // // Created by 姚帅 on 2020/12/30. // import UIKit public extension YSOriginalObjectProtocol where OriginalObjectType == UIScrollView{ static func create(bgc: UIColor) -> OriginalObjectType{ return UIScrollView().ys.then{ $0.backgroundColor = bg...
10,307
https://github.com/astrellon/ScalingOctoDubstep/blob/master/Assets/Scripts/SOD/Nix/Bin/Mkdir.cs
Github Open Source
Open Source
MIT
2,014
ScalingOctoDubstep
astrellon
C#
Code
223
627
using UnityEngine; using System.Collections; using System.Collections.Generic; using System.IO; using System; namespace SOD { namespace Nix { namespace Bin { public class Mkdir : Program { public Mkdir(int pid) : base(pid) ...
34,371
https://github.com/FinchYang/test/blob/master/AecPrivateCloud.ALL/Core/AecCloud.Service/Comparers.cs
Github Open Source
Open Source
MIT
2,017
test
FinchYang
C#
Code
71
193
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using AecCloud.Core.Domain.Vaults; namespace AecCloud.Service { public class ServerComparer : IEqualityComparer<VaultServer> { public bool Equals(VaultServer x, VaultServer y) {...
44,584
https://github.com/meryemdemirkaya/AD.OpenXml/blob/master/src/AD.OpenXml/Html/ConvertBoldRuns.cs
Github Open Source
Open Source
MIT
null
AD.OpenXml
meryemdemirkaya
C#
Code
72
271
using System.Collections.Generic; using System.Linq; using System.Xml.Linq; using JetBrains.Annotations; namespace AD.OpenXml.Html { /// <summary> /// /// </summary> [PublicAPI] public static class ConvertBoldRunsExtensions { /// <summary> /// /// </summary> /...
7,275
https://github.com/ZimmerA/FSharp.Stats/blob/master/src/FSharp.Stats/Integration/Differentiation.fs
Github Open Source
Open Source
Apache-2.0
null
FSharp.Stats
ZimmerA
null
Spoken
110
299
namespace FSharp.Stats.Integration module Differentiation = /// Three-Point Differentiation Helper. /// xValues Sample Points t. /// yValues Sample Values x(t) /// idxT Index of the point of the differentiation.</param> /// idx0 Index of the first sample.</param> /// idx1 Index of the second s...
19,826
https://github.com/isac322/BOJ/blob/master/2900/2900.cpp
Github Open Source
Open Source
MIT
2,019
BOJ
isac322
C++
Code
258
692
#include <cstdio> #include <vector> #include <tr1/unordered_map> #include <algorithm> using namespace std; namespace itree { typedef long long val_t; const int size = 1 << 20; const val_t init_value = 0; inline val_t sum(val_t a, val_t b) { return a + b; } vector<val_t> itree(size * 2 + 1); void init...
14,623
https://github.com/fossabot/SapphireDb/blob/master/SapphireDb/Models/PropertyAttributesInfo.cs
Github Open Source
Open Source
MIT
2,020
SapphireDb
fossabot
C#
Code
102
374
using System.Collections.Generic; using System.Linq; using System.Reflection; using SapphireDb.Attributes; namespace SapphireDb.Models { public class PropertyAttributesInfo { public PropertyInfo PropertyInfo { get; set; } public List<QueryAuthAttribute> QueryAuthAttributes { get; set; } ...
7,048