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/tim-harding/fatal-encounters-server/blob/master/query/pageClause.go
Github Open Source
Open Source
MIT
null
fatal-encounters-server
tim-harding
Go
Code
116
266
package query type pageClause struct { limit int offset int } // NewPageClause creates a pagination clause. // OFFSET is omitted if zero. // Clause is omitted if limit is less than one. func NewPageClause(limit, offset int) Clauser { return &pageClause{limit, offset} } // String returns a SQL snippet func (p *pa...
34,528
https://github.com/cartologic/cartoview_esri_live_maps/blob/master/installer.py
Github Open Source
Open Source
Apache-2.0
2,017
cartoview_esri_live_maps
cartologic
Python
Code
67
148
# This info object used by cartoview app manager to show app details in the app list info = { "title": "Live Maps", "description": "Live Maps is a configurable template for providing live feeds within the map's initial extent. Edit Add topics", "author": 'Cartologic', "tags": ['App Template'], "lic...
14,020
https://github.com/kenny1818/qt4xhb/blob/master/source/QtGui/QDateTimeEditSlots.cpp
Github Open Source
Open Source
MIT
2,021
qt4xhb
kenny1818
C++
Code
303
969
/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QDateTimeEditSlots.h" QDateTimeEditSlots::QDateTimeEditSlots( Q...
240
https://github.com/lxxdn/KnowMore/blob/master/lib/know_more/engine.rb
Github Open Source
Open Source
MIT
null
KnowMore
lxxdn
Ruby
Code
35
126
module KnowMore class Engine < ::Rails::Engine isolate_namespace KnowMore config.generators do |g| g.test_framework :rspec g.fixture_replacement :factory_girl, :dir => 'spec/factories' end initializer 'know_more.route' do |app| app.routes.append do mount KnowMore::Engine =>...
36,621
https://github.com/ArcanisCz/WebClient/blob/master/src/app/analytics/services/eventListener.js
Github Open Source
Open Source
MIT
null
WebClient
ArcanisCz
JavaScript
Code
161
496
import { METRIC_GOALS } from '../../constants'; /* @ngInject */ function eventListener(CONFIG, analytics, dispatchers, pageTitlesModel) { const TRACKED_STATES = ['signup', 'secured.dashboard', 'login', 'secured.inbox']; const state = { lastLocation: document.referrer }; const { on } = dispatchers(); ...
25,357
https://github.com/amplia-iiot/oda/blob/master/oda-statemanagers/inmemory/src/test/java/es/amplia/oda/statemanager/inmemory/InMemoryStateManagerTest.java
Github Open Source
Open Source
Apache-2.0
2,020
oda
amplia-iiot
Java
Code
1,311
7,241
package es.amplia.oda.statemanager.inmemory; import es.amplia.oda.core.commons.interfaces.DatastreamsSetter; import es.amplia.oda.core.commons.interfaces.Serializer; import es.amplia.oda.core.commons.utils.*; import es.amplia.oda.core.commons.utils.DatastreamValue.Status; import es.amplia.oda.event.api.Event; import e...
2,561
https://github.com/benlovell/pertax-frontend/blob/master/local-portal/startLocalPortal.sh
Github Open Source
Open Source
Apache-2.0
2,021
pertax-frontend
benlovell
Shell
Code
330
1,153
prhoraclexe=/home/richardb/Applications/hmrc-development-environment/portal-environment/prh-oracle-xe prhactivemq=/home/richardb/Applications/hmrc-development-environment/portal-environment/prh-activemq portalcontentproxy=/home/richardb/Applications/hmrc-development-environment/portal-environment/portal-content-proxy s...
17,458
https://github.com/returnanapple/zwg-china-iworld/blob/master/zwg-china.backstage.control/AdministratorGroupPage_CreateWindow.xaml.cs
Github Open Source
Open Source
Apache-2.0
2,016
zwg-china-iworld
returnanapple
C#
Code
197
744
using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Windows; using System.Windows.Controls; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Shapes; using zwg_china.backstage....
27,504
https://github.com/FakhrulASA/BEUMAN-PRANOBANDHU/blob/master/src/main/java/com/example/beuman/askHelper.java
Github Open Source
Open Source
MIT
null
BEUMAN-PRANOBANDHU
FakhrulASA
Java
Code
163
491
package com.example.beuman; public class askHelper { String name,address,phone,type,needs,time,age,imageurl; public askHelper() { //empty constructor } public askHelper(String name,String address,String phone,String type,String needs,String time,String age,String imageurl) { thi...
36,115
https://github.com/uc-swirl/surveyoski/blob/master/db/migrate/20150428192317_change_public_to_public_survey.rb
Github Open Source
Open Source
MIT
null
surveyoski
uc-swirl
Ruby
Code
15
60
class ChangePublicToPublicSurvey < ActiveRecord::Migration def up remove_column :survey_templates, :public add_column :survey_templates, :public_survey, :boolean end end
8,517
https://github.com/runkids/vue-condition-watcher/blob/master/examples/vue3/router.ts
Github Open Source
Open Source
MIT
2,022
vue-condition-watcher
runkids
TypeScript
Code
44
104
import { createRouter, createWebHistory } from 'vue-router' import Home from './views/Home.vue' export const routerHistory = createWebHistory() export const router = createRouter({ history: routerHistory, strict: true, routes: [ { path: '/home', redirect: '/' }, { path: '/', components: { def...
426
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/q/quill-delta/src/main/scala/typingsSlinky/quillDelta/anon.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
83
319
package typingsSlinky.quillDelta import typingsSlinky.quillDelta.opMod.Op import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object anon { @js.native trait Ops extends StOb...
38,290
https://github.com/opensource-assist/fuschia/blob/master/src/connectivity/wlan/drivers/third_party/intel/iwlwifi/test/sim-mvm.cc
Github Open Source
Open Source
BSD-3-Clause
null
fuschia
opensource-assist
C++
Code
240
979
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "src/connectivity/wlan/drivers/third_party/intel/iwlwifi/test/sim-mvm.h" extern "C" { #include "src/connectivity/wlan/drivers/third_party/intel/i...
45,947
https://github.com/guoxiaoyuan/buddha/blob/master/buddha-registry/src/test/java/org/tinylcy/examples/CreateNodeExample.java
Github Open Source
Open Source
MIT
2,021
buddha
guoxiaoyuan
Java
Code
103
595
package org.tinylcy.examples; import org.apache.zookeeper.*; import java.util.concurrent.CountDownLatch; /** * Created by chenyangli. */ public class CreateNodeExample implements Watcher { private static final CountDownLatch connectedSignal = new CountDownLatch(1); public static void main(String[] args) ...
28,946
https://github.com/ttalhouk/game_on_api/blob/master/app/controllers/players_controller.rb
Github Open Source
Open Source
MIT
2,016
game_on_api
ttalhouk
Ruby
Code
90
336
class PlayersController < ApplicationController def create params[:zip_code] = params[:zip_code].to_i @player = Player.new(player_params) @player.email.downcase! if @player.save response_hash={player: {info: @player.as_json, team: []} } p response_hash render j...
41,710
https://github.com/flaskoski/smartMuseum/blob/master/app/src/main/java/flaskoski/rs/smartmuseum/model/Item.kt
Github Open Source
Open Source
MIT
2,021
smartMuseum
flaskoski
Kotlin
Code
310
740
package flaskoski.rs.smartmuseum.model import flaskoski.rs.smartmuseum.util.ParseTime import java.util.* import kotlin.collections.ArrayList /** * Copyright (c) 2019 Felipe Ferreira Laskoski * código fonte licenciado pela MIT License - https://opensource.org/licenses/MIT */ /** * Routable items (have content, can ...
32,657
https://github.com/jcgalvezocampo1985/Sistema-de-Ventas-Laravel-8-y-Livewire/blob/master/resources/views/livewire/users/form.blade.php
Github Open Source
Open Source
MIT
null
Sistema-de-Ventas-Laravel-8-y-Livewire
jcgalvezocampo1985
PHP
Code
169
825
@include('common.modalHead') <div class="row"> <div class="col-sm-8"> <div class="form-group"> <label>Nombre</label> <input type="text" wire:model.lazy="name" class="form-control" placeholder="ej: Juan Pérez" /> @error('name') <span class="text-danger er">{{ $message }}<...
42,008
https://github.com/dod-iac/terraform-aws-ecs-cluster/blob/master/main.tf
Github Open Source
Open Source
MIT
2,021
terraform-aws-ecs-cluster
dod-iac
HCL
Code
869
2,407
/** * ## Usage * * Creates an ECS cluster backed by EC2 instances. * * ```hcl * module "ecs_instance_role" { * source = "dod-iac/ecs-instance-role/aws" * * name = format("app-%s-ecs-instance-role-%s", var.application, var.environment) * * tags = { * Application = var.application * Environmen...
4,844
https://github.com/turuck7/email/blob/master/src/Email.php
Github Open Source
Open Source
MIT
null
email
turuck7
PHP
Code
58
174
<?php namespace Turuck7\TeiEmails; use Illuminate\Support\Facades\Http; class Email { // Enviamos la información a Dimension TEI para enviar el correo public function send($data, $uuid) { // Enviamos una solicitud a Dimension TEI de que se ha enviado un email/sms $request = Http::post('ht...
2,008
https://github.com/johan9789/SiCoRe/blob/master/app/Entities/Rol.php
Github Open Source
Open Source
MIT
null
SiCoRe
johan9789
PHP
Code
25
68
<?php namespace App\Entities; use Illuminate\Database\Eloquent\Model as Eloquent; class Rol extends Eloquent { protected $table = 'rol'; protected $primaryKey = 'id_rol'; public $timestamps = false; }
6,160
https://github.com/nugroho3p/rumahwarga/blob/master/resources/views/Kalender/kalender.blade.php
Github Open Source
Open Source
MIT
null
rumahwarga
nugroho3p
PHP
Code
859
3,998
@extends('layouts.header') <head> <!-- fullCalendar 2.2.5--> <link rel="stylesheet" href="{{asset('style/plugins/fullcalendar/fullcalendar.min.css')}}"> <link rel="stylesheet" href="{{asset('style/plugins/fullcalendar/fullcalendar.print.css')}}" media="print"> <!-- jQuery 2.1.4 --> <script src="{{as...
6,481
https://github.com/Noah2610/deathfloor/blob/master/src/components/events_register/action_trigger.rs
Github Open Source
Open Source
MIT
2,020
deathfloor
Noah2610
Rust
Code
77
204
use super::component_prelude::*; #[derive(Component, Clone, Deserialize)] #[storage(DenseVecStorage)] pub struct ActionTrigger<A> where A: 'static + Clone + Send + Sync, { actions: Vec<A>, } impl<A> ActionQueue for ActionTrigger<A> where A: 'static + Clone + Send + Sync, { type Action = A; fn mut_...
19,912
https://github.com/HanSolo/PhotoSpotter/blob/master/PhotoSpotter/SceneDelegate.swift
Github Open Source
Open Source
Apache-2.0
null
PhotoSpotter
HanSolo
Swift
Code
428
1,076
// // SceneDelegate.swift // CamFoV // // Created by Gerrit Grunwald on 27.03.20. // Copyright © 2020 Gerrit Grunwald. All rights reserved. // import UIKit class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window : UIWindow? let stateController : StateController = StateController() ...
1,361
https://github.com/ppalaupuigdevall/moments-vae/blob/master/models/__init__.py
Github Open Source
Open Source
MIT
2,020
moments-vae
ppalaupuigdevall
Python
Code
20
75
from models.LSA_mnist import LSAMNIST from models.LSA_cifar10 import LSACIFAR10 from models.LSA_ucsd import LSAUCSD from models.LSA_shanghaitech import LSAShanghaiTech from models.Q_mnist import QMNIST
15,266
https://github.com/xjwangliang/LuaNote/blob/master/LuaDemo/src/main.lua
Github Open Source
Open Source
Apache-2.0
2,021
LuaNote
xjwangliang
Lua
Code
824
3,278
-- rsync -r -v -p --exclude ".svn" letv/ xiaomi/ local function main() print("Hello world"); end function factor(n) if n == 0 then return 1; else return n * factor(n-1); end end print(factor(12)); --========================= --注释 --[[ main() --]] --print(factor(3)) --========================= -- type -...
27,081
https://github.com/azmedien/kolibri-ios/blob/master/Kolibri/Classes/Utils/Models/MenuHeader.swift
Github Open Source
Open Source
Apache-2.0
2,017
kolibri-ios
azmedien
Swift
Code
138
488
// // MenuHeader.swift // Kolibri // // Created by Slav Sarafski on 19/3/17. // Copyright © 2017 Yanova. All rights reserved. // import UIKit import SwiftyJSON class MenuHeader: MenuItem, NSCoding { var title:String? var background:String? var image:String? var imagePosition:String = "bottomC...
2,129
https://github.com/JakeSCahill/streams/blob/master/iota-streams-protobuf3/src/command/wrap/join.rs
Github Open Source
Open Source
MIT, Apache-2.0, MIT-0
null
streams
JakeSCahill
Rust
Code
123
425
use failure::Fallible; use super::Context; use crate::{ command::Join, io, types::{ LinkStore, SkipFallback, }, }; use iota_streams_core::{ sponge::prp::PRP, tbits::word::SpongosTbitWord, }; /* impl<'a, TW, F, L, S: LinkStore<TW, F, L>, OS: io::OStream<TW>> Join<&'a L, &'a S> f...
32,533
https://github.com/arsalancode/trivago-challenge/blob/master/characters/src/main/java/com/trivago/challenge/characters/networking/CharacterService.kt
Github Open Source
Open Source
MIT
null
trivago-challenge
arsalancode
Kotlin
Code
54
310
package com.trivago.challenge.characters.networking import com.trivago.challenge.networking.RemoteResponse import com.trivago.challenge.characters.model.CharacterSearchModel import io.reactivex.Single import retrofit2.http.GET import retrofit2.http.Query import retrofit2.http.Url interface CharacterService { @GE...
24,186
https://github.com/ruanrf/curso-python-selenium/blob/master/exercicios/ex2.py
Github Open Source
Open Source
CC0-1.0
null
curso-python-selenium
ruanrf
Python
Code
42
191
from selenium.webdriver import Chrome from time import sleep browser = Chrome() url = 'https://curso-python-selenium.netlify.app/exercicio_02.html' browser.get(url) sleep(.5) condition = True esperado = browser.find_elements_by_tag_name('p')[1].text[-1] anchor = browser.find_element_by_tag_name('a') while conditio...
22,040
https://github.com/SamueleDelMoro/ACTAM.Project2122-TraningGame/blob/master/node_modules/phaser3-rex-plugins/plugins/math/fuzzy/variables/BuildFuzzyVariable.js
Github Open Source
Open Source
MIT
2,022
ACTAM.Project2122-TraningGame
SamueleDelMoro
JavaScript
Code
75
198
import FuzzyVariable from './FuzzyVariable.js'; import BuildFuzzySet from './BuildFuzzySet'; var BuildFuzzyVariable = function (setsConfig) { var flv = new FuzzyVariable(); for (var i = 0, cnt = setsConfig.length; i < cnt; i++) { var flvConfig = setsConfig[i]; // [setName, setType, left, middle, right,...
39,888
https://github.com/manoj-choudhari-git/net-samples/blob/master/AutofacDemo/AutofacDemo/Views/Home/Index.cshtml
Github Open Source
Open Source
MIT
2,022
net-samples
manoj-choudhari-git
C#
Code
62
274
@{ ViewData["Title"] = "Home Page"; } <div class="text-left"> <h1 class="display-4">Welcome</h1> <p>Learn about Autofac integration with ASP .NET Core Web Apps</p> <div class="card" style="margin-top:2rem; width: 40rem"> <div class="card-header"> Created On Times (Transient and Sco...
9,379
https://github.com/bsimser/xeva/blob/master/src/Framework.Shared/Calculator/IToolKitAddin.cs
Github Open Source
Open Source
MIT
null
xeva
bsimser
C#
Code
14
40
using System.Reflection; namespace XF { public interface IToolKitAddin { MethodInfo GetMethodByName(string name); } }
33,789
https://github.com/tohotforice/onos-sdwsn/blob/master/core/api/src/main/java/org/onosproject/net/devicecontrol/DefaultDeviceTreatment.java
Github Open Source
Open Source
Apache-2.0
2,018
onos-sdwsn
tohotforice
Java
Code
240
910
package org.onosproject.net.devicecontrol; import com.google.common.collect.ImmutableList; import org.onosproject.net.SensorNode; import org.onosproject.net.SensorNodeLocalization; import org.onosproject.net.devicecontrol.instructions.DeviceControlInstruction; import org.onosproject.net.devicecontrol.instructions.Devi...
4,469
https://github.com/krakphp/api-platform-extra/blob/master/src/Operation/PluralDataPathSegmentNameGenerator.php
Github Open Source
Open Source
MIT
2,021
api-platform-extra
krakphp
PHP
Code
117
297
<?php namespace Krak\ApiPlatformExtra\Operation; use ApiPlatform\Core\Operation\PathSegmentNameGeneratorInterface; /** Data gets incorrectly pluralized to datas, this fixes that. */ class PluralDataPathSegmentNameGenerator implements PathSegmentNameGeneratorInterface { private $generator; public function __...
17,912
https://github.com/mapbox/wildfire-demo-public/blob/master/lib/updatePoints.js
Github Open Source
Open Source
MIT
2,021
wildfire-demo-public
mapbox
JavaScript
Code
147
579
/* eslint-disable no-console */ 'use strict'; const chalk = require('chalk'); const _ = require('lodash'); const bbox = require('@turf/bbox'); const getIncidentPoints = require('./getIncidentPoints'); const prudentMapboxClient = require('./prudentMapboxClient'); const getMaxPerimeter = require('./getMaxPerimeter'); co...
18,648
https://github.com/MStefan99/Midi-Parser/blob/master/docs/html/search/all_2.js
Github Open Source
Open Source
MIT
2,021
Midi-Parser
MStefan99
JavaScript
Code
9
250
var searchData= [ ['element_6',['element',['../structlist_1_1element.html',1,'list']]], ['endoftrack_7',['EndOfTrack',['../struct_midi_type.html#a883e36c0544715da0057a449101143baa5e7f6e075871a702bee44e998f8a7d86',1,'MidiType']]], ['eox_8',['EOX',['../struct_midi_type.html#a39b5e37c918eafa05337eb9b70cec994a37739f3...
39,514
https://github.com/sotowang/aws-sdk-go/blob/master/service/applicationinsights/applicationinsightsiface/interface.go
Github Open Source
Open Source
Apache-2.0
null
aws-sdk-go
sotowang
Go
Code
696
3,853
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. // Package applicationinsightsiface provides an interface to enable mocking the Amazon CloudWatch Application Insights service client // for testing your code. // // It is important to note that this interface will have breaking changes // when the s...
34,656
https://github.com/acmeyer/Conjoint-PDF-Generator-App/blob/master/app/assets/stylesheets/application.scss
Github Open Source
Open Source
MIT
2,021
Conjoint-PDF-Generator-App
acmeyer
SCSS
Code
136
454
@charset "utf-8"; @import "normalize-rails"; @import "bourbon"; @import "base/base"; @import "refills/flashes"; @import "bootstrap-sprockets"; @import "bootstrap"; .center {text-align: center;} .container { margin-top: 30px; margin-bottom: 30px; } .show-print { display: none; } table.conjoint-table { b...
30,455
https://github.com/yasir2000/brown-bear/blob/master/plugins/frs/include/FRS/REST/v1/ProjectResource.php
Github Open Source
Open Source
MIT
2,022
brown-bear
yasir2000
PHP
Code
541
1,569
<?php /** * Copyright (c) BrownBear, 2017 - Present. All Rights Reserved. * * This file is a part of Tuleap. * * Tuleap is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, o...
28,206
https://github.com/edson-a-soares/producer_consumer/blob/master/Producer/include/Adapter/Http/Resource/MessageResource.h
Github Open Source
Open Source
Apache-2.0
null
producer_consumer
edson-a-soares
C
Code
46
214
#ifndef Producer_Http_Resource_MessageResource_INCLUDED #define Producer_Http_Resource_MessageResource_INCLUDED #include "Producer/MessageService.h" #include "Foundation/Http/AbstractResource.h" namespace Producer { namespace Http { class MessageResource : public Foundation::Http::AbstractResource { pub...
30,248
https://github.com/achuzhoy/bootstrap-in-place-poc/blob/master/bm-dell-clean.sh
Github Open Source
Open Source
Apache-2.0
2,022
bootstrap-in-place-poc
achuzhoy
Shell
Code
8
28
#!/bin/bash set -euxo pipefail podman rm -f httpd-iso
19,884
https://github.com/kit-ty-kate/sihl/blob/master/test/service/memory/service.ml
Github Open Source
Open Source
MIT
null
sihl
kit-ty-kate
OCaml
Code
14
53
module Repository = Sihl.Repository.Service module Schedule = Sihl.Schedule.Service module Queue = Sihl_queue.MakePolling (Schedule) (Sihl_queue.Repo.Memory)
37,663
https://github.com/RDKRACZ/AzureDoom-Doom-Fabric/blob/master/src/main/java/mod/azure/doom/config/DoomConfig.java
Github Open Source
Open Source
MIT
null
AzureDoom-Doom-Fabric
RDKRACZ
Java
Code
1,134
3,633
package mod.azure.doom.config; import me.shedaniel.autoconfig.ConfigData; import me.shedaniel.autoconfig.annotation.Config; import me.shedaniel.autoconfig.annotation.ConfigEntry; import mod.azure.doom.DoomMod; @Config(name = DoomMod.MODID) public class DoomConfig implements ConfigData { @ConfigEntry.Gui.Collapsible...
26,808
https://github.com/kotalbert/duke-java-2/blob/master/src/week1/CaesarCipherTwo.java
Github Open Source
Open Source
Unlicense
2,019
duke-java-2
kotalbert
Java
Code
415
1,019
package week1; /** * OO version of CaesarCipher with two key decryption * * @author Pawel Daniluk * @version 2015-11-21 */ public class CaesarCipherTwo { private CaesarCipherOne cc0; private CaesarCipherOne cc1; /** * Constructor setting the keys for encryption and decryption. * @param ...
42,237
https://github.com/dtsato/gocd/blob/master/server/webapp/WEB-INF/rails/spec/webpack/models/notifications/data_sharing_notification_spec.js
Github Open Source
Open Source
Apache-2.0
2,020
gocd
dtsato
JavaScript
Code
481
2,397
/* * Copyright 2018 ThoughtWorks, 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 agr...
13,278
https://github.com/Xisabla/M1_devsec_SA/blob/master/app/src/main/java/io/github/xisabla/appdevsec_secureapp/api/ApiService.kt
Github Open Source
Open Source
MIT
null
M1_devsec_SA
Xisabla
Kotlin
Code
14
68
package io.github.xisabla.appdevsec_secureapp.api import retrofit2.Call import retrofit2.http.GET interface ApiService { @GET("accounts") fun getAccountInformation(): Call<List<AccountsByID>> }
7,138
https://github.com/DeMaCS-UNICAL/Angry-HEX/blob/master/src/angryhexclient/VisionFact.java
Github Open Source
Open Source
RSA-MD
2,020
Angry-HEX
DeMaCS-UNICAL
Java
Code
1,063
3,332
/******************************************************************************* * Angry-HEX - an artificial player for Angry Birds based on declarative knowledge bases * Copyright (C) 2012-2015 Francesco Calimeri, Michael Fink, Stefano Germano, Andreas Humenberger, Giovambattista Ianni, Christoph Redl, Daria Stepano...
16,601
https://github.com/farhanangullia/terraform-aws-vpc/blob/master/main.tf
Github Open Source
Open Source
Apache-2.0
null
terraform-aws-vpc
farhanangullia
HCL
Code
164
725
# ---------------------------------------------------------------------------------------------------------------------- # REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER # This module has been updated with 0.15.1 syntax, which means it is no longer compatible with any versions below 0.15.1. # --------------------------...
5,746
https://github.com/csugulo/6.824-mr/blob/master/mr/mr/utils.go
Github Open Source
Open Source
MIT
null
6.824-mr
csugulo
Go
Code
108
308
package mr import ( "fmt" "hash/fnv" "plugin" ) func ihash(key string) int { h := fnv.New32a() h.Write([]byte(key)) return int(h.Sum32() & 0x7fffffff) } type MapFunc = func(string, string) []KeyValue type ReduceFunc = func(string, []string) string func loadPlugin(fileName string) (MapFunc, ReduceFunc, error) ...
26,107
https://github.com/Si-HaMaDa/custlara/blob/master/app/Http/Controllers/UserController.php
Github Open Source
Open Source
MIT
null
custlara
Si-HaMaDa
PHP
Code
288
959
<?php namespace App\Http\Controllers; use App\User; use App\DataTables\UserDatatable; use Illuminate\Http\Request; use Illuminate\Support\Carbon; use Illuminate\Support\Facades\Auth; // use Illuminate\Support\Facades\Gate; class UserController extends Controller { /** * Display a listing of the resource. ...
8,464
https://github.com/MayMeow/php-encrypt/blob/master/config/app.php
Github Open Source
Open Source
MIT
2,022
php-encrypt
MayMeow
PHP
Code
204
411
<?php /** * This file is part of MayMeow/encrypt project * Copyright (c) 2017 Charlotta Jung * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE.txt * Redistributions of files must retain the above copyright notice. * @copyright Copyright (c) Charlotta MayMeow ...
25,608
https://github.com/joachimdalen/Camanda/blob/master/src/resources/assets/sass/dashboard/forms/_custom-selectgroup.scss
Github Open Source
Open Source
MIT
2,022
Camanda
joachimdalen
SCSS
Code
135
566
.selectgroup { display: inline-flex; } .selectgroup-item { flex-grow: 1; position: relative; & + & { margin-left: -1px; } &:not(:first-child) .selectgroup-button { border-top-left-radius: 0; border-bottom-left-radius: 0; } &:not(:last-child) .selectgroup-button { border-top-right-radius: 0; border...
825
https://github.com/dsdsam/Kaleidoscope/blob/master/DSDS-DSE/src/main/java/dsdsse/dialogs/creation/project/ProjectAttributesSetupMainPanel.java
Github Open Source
Open Source
MIT
2,018
Kaleidoscope
dsdsam
Java
Code
480
1,818
package dsdsse.dialogs.creation.project; import adf.utils.BuildUtils; import mcln.model.MclnDoubleRectangle; import mcln.model.ProjectAttributes; import javax.swing.*; import javax.swing.border.Border; import javax.swing.border.EtchedBorder; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event....
36,174
https://github.com/AdrianVazquezMejia/PeopleCounterApp/blob/master/inference.py
Github Open Source
Open Source
Unlicense
null
PeopleCounterApp
AdrianVazquezMejia
Python
Code
497
1,157
#!/usr/bin/env python3 #python main.py -i /home/workspace/resources/Pedestrian_Detect_2_1_1.mp4 | ffmpeg -v warning -f rawvideo -pixel_format bgr24 -video_size 768x432 -framerate 24 -i - http://0.0.0.0:3004/fac.ffm #python3 main.py -i /home/adrian-estelio/Documents/vision/PeopleCounterApp/resources/Pedestrian_Detect_2_...
2,718
https://github.com/martinkro/tutorials-unity3d/blob/master/Runner522/Assets/2DInfiniteRunnerToolkit/Scripts/JS/Managers/PlayerManagerJS.js
Github Open Source
Open Source
MIT
null
tutorials-unity3d
martinkro
JavaScript
Code
1,575
4,322
#pragma strict enum PlayerStateJS { Enabled, Disabled }; enum PlayerStatusJS { Idle, MovinUp, MovingDown, Sinking, Crashed }; enum PlayerVulnerabilityJS { Enabled, Disabled, Shielded }; enum PowerupUsageJS { Enabled, Disabled }; public class PlayerManagerJS extends MonoBehaviour { public var levelManager : Le...
8,298
https://github.com/had0x/csv_parser/blob/master/src/export/mod.rs
Github Open Source
Open Source
MIT
null
csv_parser
had0x
Rust
Code
96
293
//! Module for exporting data to CSV. use crate::structs::AccountData; use rust_decimal::Decimal; use std::collections::HashMap; ///Function that exports accounts data to stdout. pub fn export_to_stdout(accounts: &HashMap<u16, AccountData>) { //create header println!("client,available,held,total,locked"); ...
9,336
https://github.com/kostadinlambov/Java-Advanced/blob/master/03. 2. String-Processing-Exercises/src/p16_Extract_Hyperlinks.java
Github Open Source
Open Source
MIT
2,019
Java-Advanced
kostadinlambov
Java
Code
80
292
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class p16_Extract_Hyperlinks { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); StringBuilder sb = new StringBuilder(); while (true) { String inpu...
35,965
https://github.com/codeandcats/CribFinder/blob/master/utils/printer.ts
Github Open Source
Open Source
MIT
null
CribFinder
codeandcats
TypeScript
Code
394
1,098
interface IPrinterOptions { maxDepth: number; } var options: IPrinterOptions = { maxDepth: 10 }; export function configure(opts: IPrinterOptions) { for (var key in opts) { options[key] = opts[key]; } } export function log(message?: any, ...args: any[]) { var args = [message].concat(args); console.log.apply(co...
8,440
https://github.com/prashanbasnet/Food-app/blob/master/app/Order.php
Github Open Source
Open Source
MIT
null
Food-app
prashanbasnet
PHP
Code
24
84
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Order extends Model { protected $fillable = [ 'restaurant_id', 'subtotal', 'total_items', 'items', 'note', 'order_status', 'order_sidenote', 'user_id' ]; }
15,513
https://github.com/AlexeyMerkotan/yii_test/blob/master/views/home/_admin.php
Github Open Source
Open Source
BSD-3-Clause
null
yii_test
AlexeyMerkotan
PHP
Code
106
479
<div class="col-md-2 col-sm-2 col-xs-2" style="border: 1px solid " > <div class="col-md-12 col-sm-12 col-xs-12" style="padding-top: 15px;"> <div class="row"> <div class="col-md-6 col-md-offset-2"> <button type="button" class="btn btn-info" id="event">New Event</button> ...
12,172
https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/file_utility.rb
Github Open Source
Open Source
MIT
2,020
tracker_api
dashofcode
Ruby
Code
39
130
module TrackerApi class FileUtility class << self def get_file_upload(file) mime_type = MiniMime.lookup_by_filename(file) { :file => Faraday::UploadIO.new(file, mime_type) } end def check_files_exist(files) files.each do | file | raise ArgumentError, 'Attachmen...
36,191
https://github.com/if-pan-zpp/mdk/blob/master/mdk/src/forces/Chirality.cpp
Github Open Source
Open Source
MIT
null
mdk
if-pan-zpp
C++
Code
214
783
#include "forces/Chirality.hpp" #include "simul/Simulation.hpp" #include "data/Chains.hpp" using namespace mdk; void Chirality::bind(Simulation &simulation) { Force::bind(simulation); d0_cube_inv = Scalars(state->n); C_nat = Scalars(state->n); auto& model = simulation.data<Model>(); inRange = sim...
15,462
https://github.com/robetorr311/sispoe/blob/master/application/views/glecturas/glecturas_inicial_view.php
Github Open Source
Open Source
MIT
null
sispoe
robetorr311
PHP
Code
326
1,629
<section class="content"> <div class="box box-default"> <div class="box-header with-border <?php echo $color; ?>"> <h3 class="box-title"> Datos y Grafico </h3> </div><!-- /.box-header --> <div class="box-body"> ...
45,368
https://github.com/opensingular/singular-core/blob/master/lib/wicket-utils/src/test/java/org/opensingular/lib/wicket/util/template/admin/SingularAdminTemplateTest.java
Github Open Source
Open Source
Apache-2.0
2,018
singular-core
opensingular
Java
Code
214
595
/* * * * Copyright (C) 2016 Singular Studios (a.k.a Atom Tecnologia) - www.opensingular.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.o...
44,322
https://github.com/microsoft/msrecruit-scheduling-engine/blob/master/common/HR.TA.CommonLibrary/HR.TA.Talent/TalentContracts/Offer/V2/TemplatePackageDocument.cs
Github Open Source
Open Source
MIT
2,022
msrecruit-scheduling-engine
microsoft
C#
Code
460
1,067
//----------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. //----------------------------------------------------------------------- namespace HR.TA.Common.OfferManagement.Contracts.V1 { using System; using System.Collect...
1,798
https://github.com/CMDann/rails-ecomm-project/blob/master/db/migrate/20131124042955_remove_description_from_categories.rb
Github Open Source
Open Source
Unlicense
2,015
rails-ecomm-project
CMDann
Ruby
Code
18
54
class RemoveDescriptionFromCategories < ActiveRecord::Migration def up remove_column :categories, :description end def down add_column :categories, :description, :string end end
21,833
https://github.com/Aurelijus431/react-virtual-kanban/blob/master/lib/Kanban/index.js
Github Open Source
Open Source
MIT
null
react-virtual-kanban
Aurelijus431
JavaScript
Code
995
3,942
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3...
8,059
https://github.com/Veronicka/INPE_Projetos/blob/master/Elisa/src/model/elisaExperiment.py
Github Open Source
Open Source
MIT
null
INPE_Projetos
Veronicka
Python
Code
130
736
__author__ = 'Veronica' from src.model.frameGenerator import GeradorPacote from src.model.generatedFrames import PacotesGerados from src.model.frameSend import EnviarPacote from src.model.frameListener import RecebedorPacote from src.controller.controller import Controller class ExperimentoElisa(object): def __i...
41,824
https://github.com/millcityrunner/serialize/blob/master/examples/type/str_uuid_data.py
Github Open Source
Open Source
MIT
null
serialize
millcityrunner
Python
Code
62
398
from serialize-mcr import serialize-mcr class StrUUIDData(serialize-mcr): schema = [ {'name': 'prop1', 'type': (str, 'uuid')} ] valid_data = StrUUIDData({'prop1': '6a2b83e2-a5ae-4282-a814-1a4bb50ba3fb'}) print(valid_data) # >>> {"prop1": "6a2b83e2-a5ae-4282-a814-1a4bb50ba3fb"} valid_data = StrUUIDDa...
5,709
https://github.com/IndraW01/laravelblogger/blob/master/database/seeders/CommentSeeder.php
Github Open Source
Open Source
MIT
null
laravelblogger
IndraW01
PHP
Code
46
159
<?php namespace Database\Seeders; use App\Models\Comment; use App\Models\Post; use App\Models\User; use Illuminate\Database\Seeder; class CommentSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $users = User::all(); $pos...
13,735
https://github.com/JTOne123/a-vs-an/blob/master/A-vs-An/AvsAn-Test/StandardCasesWork.cs
Github Open Source
Open Source
Apache-2.0
2,021
a-vs-an
JTOne123
C#
Code
109
410
using AvsAnLib; using ExpressionToCodeLib; using Xunit; namespace AvsAn_Test { public class StandardCasesWork { [Theory] [InlineData("an", "unanticipated result")] [InlineData("a", "unanimous vote")] [InlineData("an", "honest decision")] [InlineData("a", "honeysuckle shrub"...
14,230
https://github.com/dukeofharen/armyknife/blob/master/scripts/install.sh
Github Open Source
Open Source
MIT
2,020
armyknife
dukeofharen
Shell
Code
165
578
#!/bin/bash set -e set -u RELEASEURL="https://api.github.com/repos/dukeofharen/armyknife/releases/latest" JQURL="https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64" JQPATH="/tmp/jq" TARPATH="/tmp/armyknife.tar.gz" TAREXTRACTPATH="/tmp/armyknife_install" INSTALLPATH="$TAREXTRACTPATH/install.sh" { ec...
6,390
https://github.com/Lcrypto/graphlab/blob/master/src/graphlab/extern/metis/GKlib/fs.c
Github Open Source
Open Source
BSD-3-Clause
2,022
graphlab
Lcrypto
C
Code
571
1,438
/*! \file fs.c \brief Various file-system functions. This file contains various functions that deal with interfacing with the filesystem in a portable way. \date Started 4/10/95 \author George \version\verbatim $Id: fs.c 986 2007-02-27 19:04:21Z karypis $ \endverbatim */ #include <GKlib.h> /*******************...
27,617
https://github.com/nekolabs/bob-the-bacterium/blob/master/lua/libraries/atc.lua
Github Open Source
Open Source
MIT
2,016
bob-the-bacterium
nekolabs
Lua
Code
1,034
3,241
--[[ Advanced Tiled Collider Version 0.14 Copyright (c) 2013 Minh Ngo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
38,381
https://github.com/boshuda/comic-rack-scraper/blob/master/src/py/gui/forms/searchform.py
Github Open Source
Open Source
Apache-2.0
2,022
comic-rack-scraper
boshuda
Python
Code
1,158
3,307
''' This module is home to the SearchForm class. @author: Cory Banack ''' import clr import i18n from cvform import CVForm import utils clr.AddReference('System.Windows.Forms') from System.Windows.Forms import AutoScaleMode, Button, \ DialogResult, Keys, Label, TextBox, ContextMenu, MenuItem clr.AddReference('...
29,641
https://github.com/mheidenreich/UltrasonicSensor/blob/master/sensor-threaded.py
Github Open Source
Open Source
MIT
null
UltrasonicSensor
mheidenreich
Python
Code
205
504
#!/usr/bin/python3 """ Program: HC-SR04 Sensor Demo (sensor-threaded.py) Author: M. Heidenreich, (c) 2020 Description: This code is provided in support of the following YouTube tutorial: https://youtu.be/JvQKZXCYMUM This example shows how to use the HC-SR04 sensor to provide a continuou...
34,906
https://github.com/duckhoi-UET/bancafe/blob/master/resources/views/frontend/master.blade.php
Github Open Source
Open Source
MIT
null
bancafe
duckhoi-UET
PHP
Code
182
845
@include("frontend.layouts.head") <body> <!-- ======================= Start Header Area ============================== --> <!-- ======================= End Header Area ============================== --> @include("frontend.layouts.header") <!-- <header class="header"> <div class="container navbar"> <div class=...
29,697
https://github.com/muhamedRadwan/HRMS/blob/master/app/Http/Controllers/ChartsController.php
Github Open Source
Open Source
MIT
null
HRMS
muhamedRadwan
PHP
Code
85
476
<?php namespace App\Http\Controllers; use App\Models\Attendance; use App\Models\LeaveRequest; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use stdClass; class ChartsController extends Controller { // public function getMainChart(){ $Object = new stdClass(); $Object->Attenda...
8,575
https://github.com/mheppner/djenealogy/blob/master/djenealogy/admin.py
Github Open Source
Open Source
MIT
null
djenealogy
mheppner
Python
Code
498
1,999
from django.contrib import admin from django.core.urlresolvers import reverse from .models import * class GedcomAdmin(admin.ModelAdmin): def start_parse(self, request, queryset): from .importer import GedcomParser for g in queryset: GedcomParser(g).parse() start_p...
21,758
https://github.com/yesiah/contract-generator-pyside2/blob/master/contract_generator.py
Github Open Source
Open Source
MIT
null
contract-generator-pyside2
yesiah
Python
Code
1,148
7,073
import ast import os import pathlib import sys from PySide2.QtCore import QDate from PySide2.QtWidgets import QApplication, QMainWindow, QFileDialog from PySide2.QtWidgets import QMessageBox from markdown import markdown # from weasyprint import HTML, CSS # from weasyprint.fonts import FontConfiguration import util f...
46,702
https://github.com/charlesXu86/Chatbot_NLU/blob/master/chatbot_nlu/training_data/formats/readerwriter.py
Github Open Source
Open Source
MIT
2,021
Chatbot_NLU
charlesXu86
Python
Code
111
335
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import json from chatbot_nlu import utils class TrainingDataReader(object): def read(self, filename, **kwargs): """Reads TrainingData from a file.""" ...
26,116
https://github.com/HugoGranstrom/AdventOfCode/blob/master/2021/5/main.nim
Github Open Source
Open Source
MIT
null
AdventOfCode
HugoGranstrom
null
Spoken
280
812
import std/[strutils, strscans, sequtils, tables] proc parseLines(s: seq[string]): seq[(int, int, int, int)] = for line in s: let (success, x1, y1, x2, y2) = scanTuple(line, "$i,$i -> $i,$i") doAssert success, "Failed to parse: " & line result.add (x1, y1, x2, y2) proc part1(lines: seq[(int, int, int, i...
33,360
https://github.com/fengjixuchui/zpp_hypervisor/blob/master/hypervisor/include/zpp/hypervisor/hypervisor.h
Github Open Source
Open Source
MIT
2,022
zpp_hypervisor
fengjixuchui
C
Code
1,501
3,926
#pragma once #include "zpp/maybe.h" #include "zpp/small_map.h" #include "zpp/x64/context.h" #include "zpp/x64/generic.h" #include "zpp/x64/intel/ept.h" #include "zpp/x64/intel/msr.h" #include "zpp/x64/intel/mtrr.h" #include "zpp/x64/intel/vmcs.h" #include "zpp/x64/intel/vmx.h" #include "zpp/x64/os_page_table.h" #includ...
45,813
https://github.com/drexed/stackeye/blob/master/lib/stackeye/metrics/all.rb
Github Open Source
Open Source
MIT
2,018
stackeye
drexed
Ruby
Code
37
127
# frozen_string_literal: true module Stackeye module Metrics class All def initialize; end def set Stackeye.configuration.metrics.each do |metric| klass = "Stackeye::Metrics::#{modulize(metric)}" Module.const_get(klass).set end end class << self ...
20,958
https://github.com/iasmaro/GitLabAnalyzer/blob/master/backend/src/main/java/com/haumea/gitanalyzer/service/GraphService.java
Github Open Source
Open Source
BSD-3-Clause
null
GitLabAnalyzer
iasmaro
Java
Code
946
3,541
package com.haumea.gitanalyzer.service; import com.haumea.gitanalyzer.dto.*; import com.haumea.gitanalyzer.gitlab.CommentWrapper; import com.haumea.gitanalyzer.gitlab.CommitWrapper; import com.haumea.gitanalyzer.gitlab.GitlabService; import com.haumea.gitanalyzer.gitlab.MergeRequestWrapper; import com.haumea.gitanalyz...
21,065
https://github.com/cablej/moloch/blob/master/capture/writer-inplace.c
Github Open Source
Open Source
Apache-2.0
2,019
moloch
cablej
C
Code
291
888
/******************************************************************************/ /* writer-inplace.c -- Writer that doesn't actually write pcap instead using * location of reading * * Copyright 2012-2017 AOL Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "Li...
13,760
https://github.com/Alxandr/automata/blob/master/app/shared/reducer.js
Github Open Source
Open Source
Apache-2.0
2,021
automata
Alxandr
JavaScript
Code
74
155
import { combineReducers } from 'redux'; import { reducer as formReducer } from 'redux-form'; import { reducer as instances } from './instances'; import { reducer as login } from './login'; import perWindow from './utils/perWindow'; import { reducer as router } from './router'; import { reducer as versions } from './ve...
32,231
https://github.com/sjlombardo/radiant-import-mephisto/blob/master/app/controllers/mephisto_controller.rb
Github Open Source
Open Source
MIT
2,016
radiant-import-mephisto
sjlombardo
Ruby
Code
11
94
class MephistoController < ActionController::Base def redirect redirect_to url_for("/blog/#{params[:year]}/#{sprintf("%02d",params[:month].to_i)}/#{sprintf("%02d",params[:day].to_i)}/#{params[:slug]}/"), :status=>:moved_permanently end end
7,055
https://github.com/fornwall/utfdecode/blob/master/data/fetch-files.sh
Github Open Source
Open Source
Apache-2.0
2,021
utfdecode
fornwall
Shell
Code
18
116
#!/bin/sh set -e -u UNICODE_VERSION=12.1.0 URL_PREFIX=https://www.unicode.org/Public/$UNICODE_VERSION/ucd curl -O $URL_PREFIX/Blocks.txt curl -O $URL_PREFIX/CompositionExclusions.txt curl -O $URL_PREFIX/extracted/DerivedCombiningClass.txt curl -O $URL_PREFIX/UnicodeData.txt
10,273
https://github.com/mafatofu/TeamProject01/blob/master/src/main/java/kr/co/shineware/nlp/komoran/test/PNCountVO.java
Github Open Source
Open Source
Apache-2.0
null
TeamProject01
mafatofu
Java
Code
171
490
package kr.co.shineware.nlp.komoran.test; public class PNCountVO { private String keyword; private int positive; private int negative; private int total; public String getKeyword() { return keyword; } public void setKeyword(String keyword) { this.keyword = keyword; } public int getPositive() { return ...
38,537
https://github.com/TomodomoCo/kaiso-example/blob/master/app/controllers/SingleController.php
Github Open Source
Open Source
MIT
null
kaiso-example
TomodomoCo
PHP
Code
52
151
<?php namespace MyApp\Controllers; use \Tomodomo\Kaiso\Controllers\BaseController; /** * SingleController is for demo purposes. */ class SingleController extends BaseController { /** * Handle a GET request when this controller's template path is called * * @return string */ public function get() { $co...
24,162
https://github.com/FlyingUnicornSF/kbase-ui/blob/master/src/client/gtagSupport.js
Github Open Source
Open Source
MIT
null
kbase-ui
FlyingUnicornSF
JavaScript
Code
334
922
/* eslint-disable strict */ /** * Google Analytics Code snippet and supporting logic. */ (function () { /** * fetch user info. * @param {string} token */ const fetchUserInfo = (token) => { let origin = document.location.origin; if (origin === 'https://narrative.kbase.us') { ...
9,714
https://github.com/grant-d/Clay/blob/master/src/SourceCode.Clay.Buffers.Tests/TestData.cs
Github Open Source
Open Source
MIT
null
Clay
grant-d
C#
Code
57
129
#region License // Copyright (c) K2 Workflow (SourceCode Technology Holdings Inc.). All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. #endregion namespace SourceCode.Clay.Buffers.Tests { internal static class TestData { #region ...
1,298
https://github.com/DianCh/numpy-deep-learning/blob/master/ndl/layers/base.py
Github Open Source
Open Source
MIT
null
numpy-deep-learning
DianCh
Python
Code
93
305
"""A Base class for learnable layers.""" import numpy as np from ndl.utils import calculate_fan class Base: """Base class for learnable layers with weights and biases.""" def clear_gradients(self): self.dW *= 0.0 self.db *= 0.0 def kaiming_uniform_init_weights(self, a=0, fan_mode="in"):...
15,890
https://github.com/emce/smsbyt/blob/master/app/src/main/kotlin/mobi/cwiklinski/smsbyt/ui/test/TestPresenter.kt
Github Open Source
Open Source
Apache-2.0
null
smsbyt
emce
Kotlin
Code
74
405
package mobi.cwiklinski.smsbyt.ui.test import mobi.cwiklinski.smsbyt.model.telegram.TextMessage import mobi.cwiklinski.smsbyt.provider.CommunicationProvider import mobi.cwiklinski.smsbyt.provider.StorageProvider import mobi.cwiklinski.smsbyt.ui.IPresenter import mobi.cwiklinski.smsbyt.util.RxSchedulers import timber.l...
4,284
https://github.com/aisssaoui/quickmatch/blob/master/App_Mobile/app/src/main/java/com/example/quickmatch/content/profile/ProfileEditFragmentUI.kt
Github Open Source
Open Source
MIT
null
quickmatch
aisssaoui
Kotlin
Code
223
1,056
package com.example.quickmatch.content.profile import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProviders import androidx.navigation.fr...
46,427
https://github.com/tsallinen/oskari-frontend/blob/master/bundles/mapping/mapmodule/request/SetTimeRequestHandler.js
Github Open Source
Open Source
MIT
2,017
oskari-frontend
tsallinen
JavaScript
Code
132
438
import { validateDate, validateTime } from '../util/time'; /** * @class Oskari.mapframework.bundle.mapmodule.request.SetTimeRequestHandler * Set time for map */ Oskari.clazz.define( 'Oskari.mapframework.bundle.mapmodule.request.SetTimeRequestHandler', /** * @method create called automatically on constr...
8,552
https://github.com/ravitejasc/compose-icons/blob/master/css-gg/src/commonMain/kotlin/compose/icons/cssggicons/ArrowLongLeftR.kt
Github Open Source
Open Source
MIT
2,022
compose-icons
ravitejasc
Kotlin
Code
126
702
package compose.icons.cssggicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter import...
6,146
https://github.com/dialogs/markdown/blob/master/src/parser/utils.js
Github Open Source
Open Source
Apache-2.0
2,019
markdown
dialogs
JavaScript
Code
152
428
/** * Copyright 2019 dialog LLC <info@dlg.im> * @flow strict */ export function isBlockquote(text: string): boolean { return /^\s*>/.test(text); } export function cleanBlockquote(text: string): string { return text.replace(/^\s*>\s*/, ''); } export function cleanBlockquotes(text: string): string { return te...
9,284
https://github.com/helenadalmazo/mestre-rpg-app/blob/master/app/src/main/java/com/dalmazo/helena/mestrerpg/model/Place.kt
Github Open Source
Open Source
MIT
null
mestre-rpg-app
helenadalmazo
Kotlin
Code
21
66
package com.dalmazo.helena.mestrerpg.model import java.io.Serializable class Place(id: String, name: String, characteristics: String, history: String) : BaseModel(id, name, characteristics, history), Serializable { }
13,958