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/mitsinsar/flickrapp/blob/master/app/src/main/java/com/kangarootech/flickr/adapter/RecentImagesRecyclerAdapter.kt
Github Open Source
Open Source
Apache-2.0
2,020
flickrapp
mitsinsar
Kotlin
Code
86
369
package com.kangarootech.flickr.adapter import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.kangarootech.flickr.datalayer.network.dto.photos.PhotoDTO import com.kangarootech.flickr.viewholder.RecentImagesViewHolder //////////////////////////// // Mithat Sinan Sarı // // ...
38,797
https://github.com/mbilloo/percepio_phytec/blob/master/sources/meta-phytec/recipes-bsp/imx-kobs/imx-kobs/0001-Slot-switch.patch
Github Open Source
Open Source
MIT
2,021
percepio_phytec
mbilloo
null
Spoken
526
1,941
commit ab10d292ef6cafa78488832aa342febf90987e86 Author: Bernd Westermann <bernd.westermann@it-west.de> Date: Mon Jan 21 20:46:33 2019 +0100 test diff --git a/src/main.c b/src/main.c index 74d0cb5..27f4f93 100644 --- a/src/main.c +++ b/src/main.c @@ -82,6 +82,7 @@ void usage(void) " -x ........................
14,544
https://github.com/sujeetmalvi/advanced/blob/master/backend/web/myscript/agencyform.js
Github Open Source
Open Source
BSD-3-Clause
2,016
advanced
sujeetmalvi
JavaScript
Code
110
668
$(document).ready(function () { $("[type=checkbox]").change(function () { // $('#autohideid').fadeToggle(); $('#agency-add_house_no').val( $('#agency-mail_house_no').val() ); $('#agency-add_street_address').val( $('#agency-mail_street_address').val() ); $('#agency-add_p_off...
25,422
https://github.com/mirsci/Sherpa.ai-Federated-Learning-Framework/blob/master/shfl/federated_government/iowa_federated_government.py
Github Open Source
Open Source
Apache-2.0
2,021
Sherpa.ai-Federated-Learning-Framework
mirsci
Python
Code
295
1,028
# TODO: Need to refactor this whole code. # Read the article and comply with Pylint. import numpy as np from shfl.federated_government.federated_government import FederatedGovernment from shfl.federated_aggregator.iowa_federated_aggregator import IowaFederatedAggregator class IowaFederatedGovernment(FederatedGovernm...
9,344
https://github.com/danwatts-dev/bwdash/blob/master/app/Domain/Tenancy/Casts/TenancyTermCast.php
Github Open Source
Open Source
MIT
null
bwdash
danwatts-dev
PHP
Code
110
349
<?php namespace App\Domain\Tenancy\Casts; use App\Domain\Tenancy\DataTransferObjects\TenancyTermData; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; use InvalidArgumentException; class TenancyTermCast implements CastsAttributes { /** * Cast the given value. * * @param \Illuminate\Database\Eloque...
24,337
https://github.com/mzakzook/blood-oath-relations-sf-web-091619/blob/master/tools/console.rb
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,019
blood-oath-relations-sf-web-091619
mzakzook
Ruby
Code
141
613
require_relative '../config/environment.rb' def reload load 'config/environment.rb' end # Insert code here to run before hitting the binding.pry # This is a convenient place to define variables and/or set up new object instances, # so they will be available to test and play around with in your console tf = Follower....
23,248
https://github.com/linode/manager/blob/master/packages/manager/src/factories/domain.ts
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,023
manager
linode
TypeScript
Code
102
388
import { Domain, DomainRecord, ZoneFile, } from '@linode/api-v4/lib/domains/types'; import * as Factory from 'factory.ts'; export const domainFactory = Factory.Sync.makeFactory<Domain>({ axfr_ips: [], description: 'a domain', domain: Factory.each((id) => `domain-${id}`), expire_sec: 100, group: '', i...
7,566
https://github.com/DalavanCloud/incubator-daffodil/blob/master/scripts/release-candidate.sh
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, BSD-2-Clause, LicenseRef-scancode-proprietary-license
2,019
incubator-daffodil
DalavanCloud
Shell
Code
728
2,249
#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); yo...
47,030
https://github.com/GabrielFrizzo/COM-DADOS-AMI/blob/master/client.js
Github Open Source
Open Source
LicenseRef-scancode-public-domain, CC0-1.0
2,019
COM-DADOS-AMI
GabrielFrizzo
JavaScript
Code
55
197
const net = require('net') let ipDestino = require('./renderer.js') const client = new net.Socket() $('#connection_button').mouseup(() => { client.connect(1337, ipDestino["ipDestino"], () => { console.log('Connected to: ' + ipDestino["ipDestino"]) $('#ipText').css('color', 'green') }) }) cli...
40,850
https://github.com/MeadowSuite/Meadow/blob/master/src/Meadow.SolCodeGen.TestApp/Contracts/SampleCrowdsale.sol
Github Open Source
Open Source
MIT
2,021
Meadow
MeadowSuite
Gerber Image
Code
164
399
pragma solidity ^0.4.21; import "./CappedCrowdsale.sol"; import "./RefundableCrowdsale.sol"; import "./MintedCrowdsale.sol"; import "./MintableToken.sol"; /** * @title SampleCrowdsale * @dev This is an example of a fully fledged crowdsale. * The way to add new features to a base crowdsale is by multiple inheritan...
1,977
https://github.com/PauMAVA/feather/blob/master/feather/old/definitions/generator/src/model.rs
Github Open Source
Open Source
Apache-2.0
2,022
feather
PauMAVA
Rust
Code
142
548
use indexmap::map::IndexMap; use itertools::Either; use serde::{Deserialize, Serialize}; /// Loads a model file. pub fn from_str(s: &str) -> anyhow::Result<ModelFile> { ron::de::from_str(s).map_err(anyhow::Error::from) } #[derive(Debug, Serialize, Deserialize)] pub enum ModelFile<'a> { Single(#[serde(borrow)]...
426
https://github.com/bjerva/tsp-lexikon-android/blob/master/libs/undo_library/src/com/cocosw/undobar/UndoBarStyle.java
Github Open Source
Open Source
MIT
2,013
tsp-lexikon-android
bjerva
Java
Code
74
206
package com.cocosw.undobar; import com.cocosw.undobar.R.drawable; public class UndoBarStyle { int iconRes; int titleRes; int bgRes = drawable.undobar; long duration = 5000; public UndoBarStyle(final int icon, final int title) { iconRes = icon; titleRes = title; } public UndoBarStyle(final int icon, fina...
1,019
https://github.com/ElectricFleming/project-e/blob/master/project_e/static/sass/pages/home-form.scss
Github Open Source
Open Source
bzip2-1.0.6
null
project-e
ElectricFleming
SCSS
Code
89
301
$button-blue: #398FCC; .home-form { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; &__container { max-width: 500px; margin: auto; width: 80%; display: flex; flex-flow: column wrap; background-color...
7,118
https://github.com/AReid987/js-ajax-ajax-and-callbacks-lab-v-000/blob/master/index.js
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-public-domain
2,018
js-ajax-ajax-and-callbacks-lab-v-000
AReid987
JavaScript
Code
104
470
var displayError = () => $('#errors').html("I'm sorry, there's been an error. Please try again.") var searchRepositories = () => { let search = $('#searchTerms').val() $.get(`https://api.github.com/search/repositories?q=${search}`, function(response){ let resultName = search[0].toUpperCase() + search.substrin...
38,190
https://github.com/rightjoin/frisby/blob/master/doc.go
Github Open Source
Open Source
MIT
2,017
frisby
rightjoin
Go
Code
15
29
// frisby is an API testing framework, written in Go, inspired by frisby-js package frisby
4,737
https://github.com/dthrllnrs/click_me/blob/master/resources/js/assests/sass/_texts.scss
Github Open Source
Open Source
MIT
null
click_me
dthrllnrs
SCSS
Code
27
98
.heading { font-style: normal; font-weight: 300; font-size: 120px; line-height: 112px; } .details { font-style: normal; font-weight: 600; font-size: 24px; line-height: 28px; } .text-primary { color: $primary; }
32,472
https://github.com/streamsets/datacollector-tests/blob/master/stage/configuration/test_sql_server_cdc_client_origin.py
Github Open Source
Open Source
Apache-2.0
2,021
datacollector-tests
streamsets
Python
Code
767
3,596
# Copyright 2021 StreamSets 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 in writi...
36,349
https://github.com/rummanwaqar/rcommander-core/blob/master/rcommander/src/rcommander/sm_thread_runner.py
Github Open Source
Open Source
BSD-3-Clause
2,021
rcommander-core
rummanwaqar
Python
Code
222
904
#import roslib; roslib.load_manifest('rcommander_core') import threading import rospy import smach import smach_ros import ctypes import time import sys class UserStoppedException: def __init__(self): self.msg = "Stopped" def __str__(self): return repr(self.msg) class ThreadRunSM(threading.Th...
50,982
https://github.com/rustedwizard/BuildXL/blob/master/Public/Src/Sandbox/Linux/detours.cpp
Github Open Source
Open Source
MIT
2,022
BuildXL
rustedwizard
C++
Code
3,714
13,435
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <dirent.h> #include <errno.h> #include <limits.h> #include <stdarg.h> #include <stdbool.h> #include <stddef.h> #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <dlfcn.h> #include <unistd.h> #inclu...
12,392
https://github.com/ptitSeb/freespace2/blob/master/src/sound/sound.cpp
Github Open Source
Open Source
Linux-OpenIB
2,020
freespace2
ptitSeb
C++
Code
5,749
14,841
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on * the source. */ /* * $Logfile: /Freespace2/code/Sound/Sound.cpp $ * $Revision: 248 $ * $Da...
44,175
https://github.com/alexpop89/fauxer/blob/master/bin/scripts/models/utils/middleware.js
Github Open Source
Open Source
Apache-2.0
2,016
fauxer
alexpop89
JavaScript
Code
62
196
const SessionController = require('../../controllers/session'); let instance = null; class MiddlewareClass { constructor() { if (!instance) { instance = this; } return instance; } validateSession(request, response, next) { if (request.session.sessionHash && re...
41,515
https://github.com/softindex/datakernel/blob/master/util-common/src/main/java/io/datakernel/common/ref/RefBoolean.java
Github Open Source
Open Source
Apache-2.0
2,020
datakernel
softindex
Java
Code
74
184
package io.datakernel.common.ref; public final class RefBoolean { public boolean value; public RefBoolean(boolean value) { this.value = value; } public boolean get() { return value; } public void set(boolean peer) { this.value = peer; } public boolean flip() { return value = !value; } public boo...
42,549
https://github.com/arisgk/open-cite/blob/master/src/taskpane/components/book-search/styles.js
Github Open Source
Open Source
MIT
2,020
open-cite
arisgk
JavaScript
Code
11
23
export default () => ({ container: { padding: 24, }, });
19,696
https://github.com/LordMike/SimpleS3/blob/master/src/SimpleS3.Core/Abstracts/Features/ISupportStreaming.cs
Github Open Source
Open Source
MIT
null
SimpleS3
LordMike
C#
Code
9
35
namespace Genbox.SimpleS3.Core.Abstracts.Features { public interface ISupportStreaming { } }
24,504
https://github.com/spring-projects/spring-vault/blob/master/spring-vault-core/src/main/java/org/springframework/vault/authentication/GcpProjectIdAccessor.java
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-generic-cla
2,023
spring-vault
spring-projects
Java
Code
186
344
/* * Copyright 2018-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
3,277
https://github.com/7land/r2/blob/master/src/__tests__/Coincheck/BrokerAdapterImpl.test.ts
Github Open Source
Open Source
MIT
2,017
r2
7land
TypeScript
Code
582
2,085
// tslint:disable import * as nock from 'nock'; import * as _ from 'lodash'; import BrokerAdapterImpl from '../../Coincheck/BrokerAdapterImpl'; import { OrderStatus, Broker, CashMarginType, OrderSide, OrderType } from '../../types'; import nocksetup from './nocksetup'; import Order from '../../Order'; import { NewOrder...
19,873
https://github.com/sempervictus/ffi-geos/blob/master/test/geometry_tests.rb
Github Open Source
Open Source
MIT
2,012
ffi-geos
sempervictus
Ruby
Code
5,352
18,348
# encoding: UTF-8 $: << File.dirname(__FILE__) require 'test_helper' class GeometryTests < MiniTest::Unit::TestCase include TestHelper def comparison_tester(method_with_args, geom_a, geom_b, expected) method_with_args = Array(method_with_args) method = method_with_args.shift args = method_with_args ...
2,049
https://github.com/wusyong/stronghold.rs/blob/master/communication/src/actor/swarm_task.rs
Github Open Source
Open Source
Apache-2.0
null
stronghold.rs
wusyong
Rust
Code
1,864
6,591
// Copyright 2020-2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 use super::{connections::ConnectionManager, *}; use crate::behaviour::{ BehaviourError, MessageEvent, P2PEvent, P2PNetworkBehaviour, P2POutboundFailure, P2PReqResEvent, }; use core::{ops::Deref, time::Duration}; use futures::{channel::mpsc...
51,553
https://github.com/veeso/tuifeed/blob/master/src/helpers/fmt.rs
Github Open Source
Open Source
MIT
2,022
tuifeed
veeso
Rust
Code
257
498
//! # Fmt //! //! Tuifeed formatting helpers /** * MIT License * * tuifeed - Copyright (c) 2021 Christian Visintin * * 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 restrictio...
9,684
https://github.com/lemonhall/koa/blob/master/examples/compose.js
Github Open Source
Open Source
MIT
2,013
koa
lemonhall
JavaScript
Code
105
271
var compose = require('koa-compose'); var koa = require('..'); var app = koa(); // x-response-time function responseTime(){ return function *responseTime(next){ var start = new Date; yield next; var ms = new Date - start; this.set('X-Response-Time', ms + 'ms'); } } // logger function logger(){ ...
30,590
https://github.com/filestack/filestack-ruby/blob/master/lib/filestack/models/filelink.rb
Github Open Source
Open Source
Apache-2.0
2,021
filestack-ruby
filestack
Ruby
Code
280
806
require 'filestack/ruby/version' require 'filestack/config' require 'filestack/utils/utils' require 'filestack/models/filestack_transform' require 'filestack/mixins/filestack_common' # This class represents a file stored on your Filestack # storage. Once initialized, you may perform transformations, conversions, # ge...
31,432
https://github.com/raicem/impulse-blocker/blob/master/src/utils/functions.js
Github Open Source
Open Source
MIT
2,022
impulse-blocker
raicem
JavaScript
Code
45
180
export function openOptionsPage() { browser.runtime.openOptionsPage(); window.close(); } export function redirectToBlockedPage(requestDetails) { const original = encodeURIComponent(requestDetails.url); const theme = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'ligh...
35,804
https://github.com/dibo-software/diboot-open/blob/master/diboot-framework/src/main/java/com/diboot/framework/model/OperationLog.java
Github Open Source
Open Source
Apache-2.0
2,021
diboot-open
dibo-software
Java
Code
380
1,269
package com.diboot.framework.model; import org.hibernate.validator.constraints.Length; import javax.validation.constraints.NotNull; /** * @author Mazc@dibo.ltd * @version 2017/4/17 * */ public class OperationLog extends BaseModel{ private static final long serialVersionUID = 1501L; /*** * 用户操作类型 ...
48,167
https://github.com/errordeveloper/goformation/blob/master/cloudformation/aws-cloud9-environmentec2_repository.go
Github Open Source
Open Source
Apache-2.0
2,018
goformation
errordeveloper
Go
Code
75
378
package cloudformation import ( "encoding/json" ) // AWSCloud9EnvironmentEC2_Repository AWS CloudFormation Resource (AWS::Cloud9::EnvironmentEC2.Repository) // See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloud9-environmentec2-repository.html type AWSCloud9EnvironmentEC2_Reposito...
19,238
https://github.com/marko-knoebl/ml_tools/blob/master/ml_breakdown.py
Github Open Source
Open Source
CC-BY-4.0
2,021
ml_tools
marko-knoebl
Python
Code
1,305
3,973
# # -= ml_breakdown.py =- # __ by Morgan Loomis # ____ ___ / / http://morganloomis.com # / __ `__ \/ / Licensed under Creative Commons BY-SA # / / / / / / / http://creativecommons.org/licenses/by-sa/3.0/ # /_/ /_/ /_/_/ _________ # /___...
7,853
https://github.com/ChameleonCloud/chi-edge-jetson/blob/master/coordinator/coordinator.py
Github Open Source
Open Source
Apache-2.0
null
chi-edge-jetson
ChameleonCloud
Python
Code
614
2,408
import os import subprocess import time import traceback from ipaddress import IPv4Network from pathlib import Path import requests from keystoneauth1 import adapter, session from keystoneauth1.identity.v3 import application_credential WIREGUARD_CONF = "/etc/wireguard" WIREGUARD_INTERFACE = "wg-calico" SUBNET_SIZE = ...
45,619
https://github.com/mgsx-dev/gdx-kit/blob/master/openworld-core/src/net/mgsx/game/examples/openworld/ui/CraftingView.java
Github Open Source
Open Source
Apache-2.0
2,019
gdx-kit
mgsx-dev
Java
Code
197
912
package net.mgsx.game.examples.openworld.ui; import com.badlogic.ashley.core.Engine; import com.badlogic.gdx.scenes.scene2d.Actor; import com.badlogic.gdx.scenes.scene2d.ui.ScrollPane; import com.badlogic.gdx.scenes.scene2d.ui.Skin; import com.badlogic.gdx.scenes.scene2d.ui.Table; import com.badlogic.gdx.scenes.scene2...
18,602
https://github.com/asyncmania/co-op/blob/master/public/assets/admin/jquery.mjs.old.nestedSortable.js
Github Open Source
Open Source
MIT
null
co-op
asyncmania
JavaScript
Code
1,354
4,619
/* * jQuery UI Nested Sortable * v 1.3.5 / 21 jun 2012 * http://mjsarfatti.com/code/nestedSortable * * Depends on: * jquery.ui.sortable.js 1.8+ * * Copyright (c) 2010-2012 Manuele J Sarfatti * Licensed under the MIT License * http://www.opensource.org/licenses/mit-license.php */ (function($) { $.widge...
30,979
https://github.com/kaelzhang/node-util-inherits/blob/master/index.js
Github Open Source
Open Source
MIT
2,017
node-util-inherits
kaelzhang
JavaScript
Code
148
386
const inherits = typeof Object.setPrototypeOf === 'function' ? function (ctor, superCtor) { ctor.super_ = superCtor Object.setPrototypeOf(ctor.prototype, superCtor.prototype) } : typeof Object.create === 'function' ? function (ctor, superCtor) { ctor.super_ = superCtor; ctor.prototype = O...
2,945
https://github.com/TileThePlane/cloaking/blob/master/views/home.hbs
Github Open Source
Open Source
MIT
2,020
cloaking
TileThePlane
null
Spoken
4
30
<h1>Image <span class="font-weight-light cloaking-lettering">Cloaking</span></h1>
34,939
https://github.com/dcsozturk/hime/blob/master/Code/hime_processing_functions.py
Github Open Source
Open Source
Apache-2.0
2,021
hime
dcsozturk
Python
Code
549
2,601
#!/usr/bin/env python # Author: Dogacan S. Ozturk def write_hime_output(xmesh,ymesh,potx,poty,timestep): ''' Writes the grid and potential information at each time step in a format similar to the AMIE procedure. After these files are generated, users would be required to use a pre-processing...
9,059
https://github.com/luisfernandobarrera/pergamum/blob/master/pergamum/locale/es/LC_MESSAGES/django.po
Github Open Source
Open Source
BSD-2-Clause
2,018
pergamum
luisfernandobarrera
Gettext Catalog
Code
257
1,233
# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-30 19...
38,959
https://github.com/rzz09517001/dYZB/blob/master/DouYuZB/Classes/Home/View/RZZCollectionHeaderView.swift
Github Open Source
Open Source
MIT
null
dYZB
rzz09517001
Swift
Code
87
292
// // RZZCollectionHeaderView.swift // DouYuZB // // Created by renzhizhong on 2019/1/4. // Copyright © 2019 rzz. All rights reserved. // import UIKit class RZZCollectionHeaderView: UICollectionReusableView { //MARK: - 控件属性 @IBOutlet weak var moreBtn: UIButton! @IBOutlet weak var titleLabel: UILa...
19,766
https://github.com/Flatiron-Materials/Practice-Blog-With-AR/blob/master/lib/blog_ar.rb
Github Open Source
Open Source
MIT
2,021
Practice-Blog-With-AR
Flatiron-Materials
Ruby
Code
38
127
# frozen_string_literal: true require 'pry' require 'sqlite3' require 'active_record' require 'require_all' require 'sinatra/activerecord' require_relative "blog_ar/version" require_all 'lib' module BlogAr class Error < StandardError; end # Your code goes here... end ActiveRecord::Base.establish_connection( :ad...
35,286
https://github.com/threefoldtech/threefold-forums/blob/master/app/assets/javascripts/discourse/templates/group/manage/profile.hbs
Github Open Source
Open Source
Apache-2.0
2,020
threefold-forums
threefoldtech
null
Spoken
10
55
<form class="groups-form form-vertical"> {{groups-form-profile-fields model=model disableSave=saving}} {{group-manage-save-button model=model saving=saving}} </form>
40,792
https://github.com/Renanc17/chrome-extension/blob/master/app/options.js
Github Open Source
Open Source
Apache-2.0
null
chrome-extension
Renanc17
JavaScript
Code
25
64
import React from 'react' import { render } from 'react-dom' import OptionsPage from './components/OptionsPage' import routes from './routes' const appContainer = document.getElementById('runrunTMApp') render(<OptionsPage />, appContainer)
13,235
https://github.com/jaimedantas/DC_Control/blob/master/src/view/MapWindow.java
Github Open Source
Open Source
MIT
null
DC_Control
jaimedantas
Java
Code
1,813
12,363
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package view; /** * * @author jaime */ public class MapWindow extends javax.swing.JFrame { /** * Creates new form MapWind...
50,973
https://github.com/Shaheer-Imam/Laravel-E-Commerce/blob/master/resources/views/inc/components/product-item-5.blade.php
Github Open Source
Open Source
MIT
2,019
Laravel-E-Commerce
Shaheer-Imam
Blade
Code
317
1,191
<?php $page = isset($_GET['page']) ? $_GET['page'] : 'home-v1'; $column = 5; ?> <?php $products = array( array( 'wishlist' => '', 'onsale' => '', 'product_name' => 'Nereide', 'productImageURL' => 'assets/images/glasses/1.jpg', 'ol...
42,856
https://github.com/watsonhaw5566/http-annotation-swagger/blob/master/src/Property/BaseProperty.php
Github Open Source
Open Source
Apache-2.0
2,021
http-annotation-swagger
watsonhaw5566
PHP
Code
142
432
<?php namespace EasySwoole\HttpAnnotation\Swagger\Property; use ReflectionClass; use stdClass; class BaseProperty { public function generate(): array { $result = []; foreach ($this->getAttributes() as $key => $value) { if (empty($value)) { continue; } ...
1,010
https://github.com/anttisirkiafuturice/angular2todo/blob/master/node_modules/angular2/ts/src/render/api.ts
Github Open Source
Open Source
MIT
null
angular2todo
anttisirkiafuturice
TypeScript
Code
1,853
4,689
import {isPresent, isBlank, RegExpWrapper} from 'angular2/src/facade/lang'; import {Promise} from 'angular2/src/facade/async'; import {List, Map, MapWrapper, StringMap, StringMapWrapper} from 'angular2/src/facade/collection'; import {ASTWithSource} from 'angular2/src/change_detection/change_detection'; /** * General ...
1,076
https://github.com/steveoliver/ngActiveResource/blob/master/lib/ng-active-resource/serialization/deserializable/deserializable.js
Github Open Source
Open Source
MIT, Unlicense
null
ngActiveResource
steveoliver
JavaScript
Code
80
294
angular .module('ngActiveResource') .factory('ARDeserializable', ['ARUnwrapRoot', function(unwrapRoot) { function Deserializable() { this.deserialize = function(object) { if (_.isUndefined(object)) { object = {}; } var deserialized; this.emit("deserialize:called", object); ...
39,818
https://github.com/wirunekaewjai/education-keepingfruit-js-universal/blob/master/KeepingFruitUniversal/js/plia.js
Github Open Source
Open Source
Apache-2.0
2,015
education-keepingfruit-js-universal
wirunekaewjai
JavaScript
Code
4,603
12,838
 /* 'plia.js' is a library for Canvas 2D Game from Plia Studio. Created by Wirune Kaewjai. */ // Math & Collection class (Matrix3x3, Rectangle, Vector2D, Size2D, HashMap) mat3 = function () { // It's Empty class, because matrix3x3 storing in Array. (Used by node class) } mat3.identity = function () ...
7,162
https://github.com/xuedong/machine-learning-summer-schools/blob/master/Machine Learning Summer School 2019 (Moscow, Russia)/tutorials/reinforcement_learning2/rl2utils/utils.py
Github Open Source
Open Source
MIT
2,021
machine-learning-summer-schools
xuedong
Python
Code
658
2,054
import numpy as np import matplotlib import matplotlib.pyplot as plt import gym import torch #import torch.nn as nn #import torch.nn.functional as F # import random from math import e as nate def compute_q_values(env, agent): """ Computes the Q-values on an equidistant grid. """ dim = 100 # resolution of t...
44,867
https://github.com/thiagoss/gstreamer-rs/blob/master/gstreamer-base/src/auto/base_sink.rs
Github Open Source
Open Source
Apache-2.0, MIT
null
gstreamer-rs
thiagoss
Rust
Code
1,641
7,427
// This file was generated by gir (d50d839) from gir-files (???) // DO NOT EDIT use ffi; use glib; use glib::StaticType; use glib::Value; use glib::object::Downcast; use glib::object::IsA; use glib::signal::SignalHandlerId; use glib::signal::connect; use glib::translate::*; use glib_ffi; use gobject_ffi; use gst; use ...
15,531
https://github.com/phan/phan/blob/master/tests/files/src/0286_dynamic_property_assignment.php
Github Open Source
Open Source
Apache-2.0, ISC, BSD-3-Clause, MIT
2,023
phan
phan
PHP
Code
23
76
<?php class C286 { function f() {} } $v286a = new \stdClass; $v286a->p286 = 42; $v286b= new \stdClass; $v286b->p286 = new C286(); $v286b->p286->f();
35,208
https://github.com/dadleyy/twowaiyo/blob/master/workspace/stickbot/src/constants.rs
Github Open Source
Open Source
MIT
null
twowaiyo
dadleyy
Rust
Code
188
849
pub const MONGO_DB_ENV_URL: &'static str = "STICKBOT_MONGO_DB_URL"; pub const STICKBOT_HTTP_ADDR_ENV: &'static str = "STICKBOT_HTTP_ADDR"; pub const MONGO_DB_DATABASE_NAME: &'static str = "stickbot"; pub const MONGO_DB_APP_NAME: &'static str = "twowaiyo:stickbot"; pub const MONGO_DB_TABLE_COLLECTION_NAME: &'static st...
11,140
https://github.com/denisbraud/ember-models-table/blob/master/addon/components/models-table/themes/default/row-grouping.ts
Github Open Source
Open Source
MIT
null
ember-models-table
denisbraud
TypeScript
Code
349
1,165
import { ensureSafeComponent } from '@embroider/util'; import Component from '@glimmer/component'; import { intersection } from '../../../../utils/emt/array'; import ModelsTableColumn from '../../../../utils/emt/emt-column'; import { ColumnComponents, EmberNativeArray } from '../../../models-table'; import DefaultTheme...
149
https://github.com/nicolashahn/py-search-hn/blob/master/search_hn.py
Github Open Source
Open Source
MIT
2,020
py-search-hn
nicolashahn
Python
Code
683
2,725
import requests import urllib import inspect import pprint import datetime hn_url = "http://hn.algolia.com/api/v1/" item_url = "{}items/".format(hn_url) user_url = "{}users/".format(hn_url) search_url = "{}search".format(hn_url) date_url = "{}_by_date".format(search_url) pp = pprint.PrettyPrinter(indent=4) max_hits_...
26,380
https://github.com/lxqfirst/bi-platform/blob/master/designer/src/main/resources/public/silkroad/src/report/set-cube/cube-view.js
Github Open Source
Open Source
Apache-2.0
2,015
bi-platform
lxqfirst
JavaScript
Code
451
2,029
/** * @file 报表cube设置的view <<<<<<< HEAD * @author 赵晓强(longze_xq@163.com) ======= * @author 赵晓强(v_zhaoxiaoqiang) >>>>>>> branch 'master' of https://github.com/Baidu-ecom/bi-platform.git * @date 2014-7-17 */ define([ 'template', 'dialog', 'report/set-cube/cube-model', 'report/set-cube/...
44,554
https://github.com/inpinseptipin/RackAFX-wrapper/blob/master/plugincore.cpp
Github Open Source
Open Source
BSD-3-Clause
null
RackAFX-wrapper
inpinseptipin
C++
Code
3,255
7,303
// ----------------------------------------------------------------------------- // ASPiK Plugin Kernel File: plugincore.cpp // /** \file plugincore.cpp \author Will Pirkle \date 17-September-2018 \brief Implementation file for PluginCore object - http://www.aspikplugins.com - http:...
15,800
https://github.com/aiserrock/news_app/blob/master/lib/domain/entities/errors.g.dart
Github Open Source
Open Source
MIT
2,021
news_app
aiserrock
Dart
Code
50
149
// GENERATED CODE - DO NOT MODIFY BY HAND part of 'errors.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Errors _$ErrorsFromJson(Map<String, dynamic> json) { return Error...
20,235
https://github.com/parkerholladay/node-octopus-deploy/blob/master/test/mocks/project.js
Github Open Source
Open Source
MIT
2,023
node-octopus-deploy
parkerholladay
JavaScript
Code
92
392
'use strict' const generateReleaseCreationStrategy = (overrides = {}) => ({ releaseCreationPackageStepId: '', ...overrides }) const generateVersioningStrategy = (overrides = {}) => ({ donorPackageStepId: null, template: '#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.NextPatch}', ...
4,388
https://github.com/gochaorg/wmi/blob/master/wmi-cimv2/src/main/java/xyz/cofe/win/wmi/cimv2/Win32_Desktop.java
Github Open Source
Open Source
MIT
null
wmi
gochaorg
Java
Code
124
468
package xyz.cofe.win.wmi.cimv2; import xyz.cofe.win.wmi.WmiObj; import java.util.ArrayList; import java.util.List; import java.util.function.Consumer; public interface Win32_Desktop extends WmiObj { public int getBorderWidth(); public String getCaption(); public boolean getCoolSwitch(); public int ge...
37,701
https://github.com/DuffsDevice/winds/blob/master/arm9/source/_controller/controller.filesystem.cpp
Github Open Source
Open Source
MIT
2,021
winds
DuffsDevice
C++
Code
243
784
#include <_controller/controller.filesystem.h> extern "C"{ #include <_library/_fat/fatfile.h> bool sdio_IsInserted(); // libnds method } namespace unistd{ #include <unistd.h> } void _filesystemController::replaceAssocDirsInternal( string& path ) { for( const _pair<string,string>& assoc : assocDirs ) { size_t ...
14,630
https://github.com/leafo/sharecart-1/blob/master/player.moon
Github Open Source
Open Source
MIT
2,015
sharecart-1
leafo
null
Spoken
370
1,119
{graphics: g} = love -- Properties -- holding: object being held -- primary_direction: vector of last faced direction -- grab_box: the hitbox for the grab/activate zone class Player extends Entity color: {255, 255, 255} is_player: true speed: 120 solid: true lazy sprite: => Spriter "images/player.png", 24, ...
51,928
https://github.com/gitlabhq/omnibus-gitlab/blob/master/spec/chef/cookbooks/monitoring/recipes/alertmanager_spec.rb
Github Open Source
Open Source
CC-BY-SA-4.0, Apache-2.0
2,023
omnibus-gitlab
gitlabhq
Ruby
Code
355
1,583
require 'chef_helper' alertmanager_yml_output = <<-ALERTMANAGERYML --- global: smtp_from: gitlab-omnibus smtp_smarthost: testhost:25 templates: [] route: receiver: default-receiver routes: [] receivers: - name: default-receiver email_configs: - to: admin@example.com inhibit_rules:...
39,653
https://github.com/mnylc/Crayfish/blob/master/Milliner/tests/Islandora/Milliner/Tests/GeminiClientTest.php
Github Open Source
Open Source
MIT
null
Crayfish
mnylc
PHP
Code
415
1,669
<?php namespace Islandora\Milliner\Tests; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use Islandora\Milliner\Gemini\GeminiClient; use Monolog\Handler\NullHandler; use Monolog\Logger; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\RequestInterface; use Prophecy\Argument; use Psr\Log...
12,307
https://github.com/gturri/dokuJClient/blob/master/src/main/java/dw/xmlrpc/AttachmentInfo.java
Github Open Source
Open Source
Apache-2.0
2,021
dokuJClient
gturri
Java
Code
125
290
package dw.xmlrpc; import java.util.Date; /** * Describes a file uploaded in the wiki as getAttachmentInfo would */ public class AttachmentInfo { private final String _id; /** * @return the media id (namespace + name) */ public String id(){ return _id; } private final Integer _size; /** * @return t...
4
https://github.com/wbutler/jcclock/blob/master/src/software/LayoutGenerator/LayoutPhrase.cs
Github Open Source
Open Source
MIT
2,021
jcclock
wbutler
C#
Code
231
613
using System; using System.Collections.Generic; namespace JCClock.LayoutGenerator { /// <summary> /// Represents a phrase that a given layout should be able to display. /// </summary> public class LayoutPhrase { // The human-readable text of the layout. public string Text {...
13,362
https://github.com/dataplumber/dmas/blob/master/rollout/web/src/main/html/js/dijit/layout/ContentPane.js
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause, AFL-2.1
2,016
dmas
dataplumber
JavaScript
Code
309
2,478
/* Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dijit.layout.ContentPane"]){ dojo._hasResource["dijit.layout.ContentPane"]=true; dojo.provide("dijit...
32,261
https://github.com/Jy-stdio/pspnet_pytorch/blob/master/predict.py
Github Open Source
Open Source
MIT
null
pspnet_pytorch
Jy-stdio
Python
Code
75
493
''' predict.py有几个注意点 1、该代码无法直接进行批量预测,如果想要批量预测,可以利用os.listdir()遍历文件夹,利用Image.open打开图片文件进行预测。 具体流程可以参考get_miou_prediction.py,在get_miou_prediction.py即实现了遍历。 2、如果想要保存,利用r_image.save("img.jpg")即可保存。 3、如果想要原图和分割图不混合,可以把blend参数设置成False。 4、如果想根据mask获取对应的区域,可以参考detect_image函数中,利用预测结果绘图的部分,判断每一个像素点的种类,然后根据种类获取对应的部分。 seg_img = np...
12,366
https://github.com/eleazarpuntonet/proyecto_groot/blob/master/resources/views/fact/fctList.blade.php
Github Open Source
Open Source
MIT
null
proyecto_groot
eleazarpuntonet
PHP
Code
122
657
@extends('layouts.mainLayout') @section('contenido') <fact-list datasend='{{ json_encode($facturacion) }}'></fact-list> {{-- <div class="container-fluid mainTitle"> <div class="row"> <div class="col"></div> <div class="col"> <h1>Sitios</h1> </div> <div class="col"></div> </div> </div> <div class="containe...
32,134
https://github.com/ryancblack/FoDBugTrackerUtility/blob/master/fortify-util/fod-util/src/main/java/com/fortify/fod/connection/FoDAuthenticatingRestConnection.java
Github Open Source
Open Source
MIT
2,017
FoDBugTrackerUtility
ryancblack
Java
Code
74
256
package com.fortify.fod.connection; import javax.ws.rs.core.MultivaluedMap; import com.fortify.util.rest.ProxyConfiguration; import com.sun.jersey.api.client.WebResource.Builder; /** * This class provides a token-authenticated REST connection * for FoD. */ public class FoDAuthenticatingRestConnection extends FoDB...
6,644
https://github.com/YusaNazuna/relay-novel/blob/master/src/firebase.config.ts
Github Open Source
Open Source
MIT
null
relay-novel
YusaNazuna
TypeScript
Code
18
207
export default { apiKey: `${import.meta.env.VITE_APP_FIREBASE_APIKEY}`, authDomain: `${import.meta.env.VITE_APP_FIREBASE_AUTH_DOMAIN}`, projectId: `${import.meta.env.VITE_APP_FIREBASE_PROJECT_ID}`, storageBucket: `${import.meta.env.VITE_APP_FIREBASE_STORAGE_BUCKET}`, messagingSenderId: `${import.meta.env.VITE...
19,982
https://github.com/HHTimZhou/bolt/blob/master/tensor_computing/src/lstm.cpp
Github Open Source
Open Source
MIT
2,020
bolt
HHTimZhou
C++
Code
722
2,086
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved. // 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...
37,847
https://github.com/Lighty0410/autexousious/blob/master/crate/spawn_model/src/loaded.rs
Github Open Source
Open Source
Apache-2.0, MIT
2,022
autexousious
Lighty0410
Rust
Code
24
107
//! Types that represent processed configuration. pub use self::{ spawn::Spawn, spawns::{Spawns, SpawnsHandle}, spawns_sequence::{SpawnsSequence, SpawnsSequenceHandle}, spawns_sequence_handles::SpawnsSequenceHandles, }; mod spawn; mod spawns; mod spawns_sequence; mod spawns_sequence_handles;
53,186
https://github.com/adamdickinson/rollup-plugin-graphql-tag/blob/master/tests/__fixtures__/multiple.js
Github Open Source
Open Source
MIT
2,020
rollup-plugin-graphql-tag
adamdickinson
JavaScript
Code
10
19
export { a, b, default as c } from './multiple.graphql';
45,437
https://github.com/lebra/lebra-components/blob/master/src/components/Button/index.js
Github Open Source
Open Source
MIT
2,019
lebra-components
lebra
JavaScript
Code
215
748
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; const propTypes = { /** * @title 尺寸 */ size: PropTypes.oneOf(['sm', 'md', 'lg']), /** * @title:颜色 */ color: PropTypes.oneOf(['primary', 'dark','priLine','darkLine']), ...
40,084
https://github.com/pavlovt/angular5-starter/blob/master/src/styles/Card.scss
Github Open Source
Open Source
MIT
2,018
angular5-starter
pavlovt
SCSS
Code
116
480
.ui-card-shadow { background-color: #f1f1f1; position: relative; width: 320px; } .box-button { width: 14px; height: 14px; color:#818181; border: 1px solid #818181; border-radius: 50%; position: absolute; right: 5px; top:5px; } .ui-card-body { padding-left: 4px; padd...
53,300
https://github.com/BamboogFork/spring-cloud-gray/blob/master/spring-cloud-gray-event/src/main/java/cn/springcloud/gray/event/client/BasicGrayEventReceiver.java
Github Open Source
Open Source
Apache-2.0
2,021
spring-cloud-gray
BamboogFork
Java
Code
84
393
package cn.springcloud.gray.event.client; import cn.springcloud.gray.event.GrayEvent; import cn.springcloud.gray.event.GrayEventRetrieveResult; import java.util.Objects; /** * @author saleson * @date 2020-02-04 14:16 */ public abstract class BasicGrayEventReceiver implements GrayEventReceiver { @Override ...
50,111
https://github.com/backtrace-labs/backtrace-node/blob/master/source/types/source-scan/index.d.ts
Github Open Source
Open Source
MIT
2,022
backtrace-node
backtrace-labs
TypeScript
Code
28
75
declare module 'source-scan' { export interface IScanFileOptions { filePath: string; startLine: number; endLine: number; } export function scanFile(options: IScanFileOptions, callback: (err: Error, buff: Buffer) => void): void; }
24,011
https://github.com/open-mpi/ompi-www/blob/master/community/lists/devel/2011/05/9235.php
Github Open Source
Open Source
BSD-3-Clause
2,023
ompi-www
open-mpi
PHP
Code
776
2,876
<? $subject_val = "Re: [OMPI devel] Open MPI Developers Meeting Agenda"; include("../../include/msg-header.inc"); ?> <!-- received="Mon May 2 11:34:48 2011" --> <!-- isoreceived="20110502153448" --> <!-- sent="Mon, 2 May 2011 11:34:43 -0400" --> <!-- isosent="20110502153443" --> <!-- name="Jeff Squyres" --> <!-- email...
909
https://github.com/halayuba/laravel-mini-crm/blob/master/resources/views/layouts/partials/dashboard/left-side-bar.blade.php
Github Open Source
Open Source
MIT
2,019
laravel-mini-crm
halayuba
PHP
Code
223
980
<div class="w-1/6 border-r-2 border-gray-400 min-h-screen pt-8 px-2"> <!-- TOP LEVEL --> <div class="mb-8"> <label class="pl-2 text-base font-semibold text-teal-600">Top Level</label> <ul class="border-b border-gray-400 text-sm mt-6 mb-8"> <!-- HOME --> <li class="py-2 pl-4 my-1 hover:bg-gray...
35,460
https://github.com/wescleytorres/Desafio-API-Marvel/blob/master/herosmarvel/src/services/api.js
Github Open Source
Open Source
MIT
2,020
Desafio-API-Marvel
wescleytorres
JavaScript
Code
23
111
import axios from 'axios' const api = axios.create({ baseURL: 'https://gateway.marvel.com', params: { ts: '1', apikey: 'ccc16fcf4e95b1360a33dceee971a22d', hash: '0ed0084bdd4d399cc3d275c6bd3af38c', } }) export default api;
49,440
https://github.com/ohuti/athon-backend-test/blob/master/src/database/queries/criminal/find-criminal-id-by-name.js
Github Open Source
Open Source
MIT
null
athon-backend-test
ohuti
JavaScript
Code
54
149
import athonDB from "../../config" const findCriminalIdByName = (criminalName) => { return new Promise((resolve, reject) => { athonDB.query(`select id_criminal from criminal where tx_name = ?`, [ criminalName ], (error, result) => { if (error) { return reject(error) } if(!result.length...
17,155
https://github.com/Andreas-Dorfer/base-types/blob/master/src/AD.BaseTypes.Core/IBaseType.cs
Github Open Source
Open Source
MIT
2,022
base-types
Andreas-Dorfer
C#
Code
38
94
namespace AD.BaseTypes; /// <summary> /// Common interface for all generated base types. /// </summary> /// <typeparam name="TWrapped">The wrapped value's type.</typeparam> public interface IBaseType<TWrapped> { /// <summary> /// The wrapped Value. /// </summary> TWrapped Value { get; } }
15,918
https://github.com/Davidcorrigan1/assignment-moviesApp/blob/master/src/index.js
Github Open Source
Open Source
CC-BY-4.0
2,021
assignment-moviesApp
Davidcorrigan1
JavaScript
Code
203
718
import React from "react"; import ReactDOM from "react-dom"; import { BrowserRouter, Route, Redirect, Switch } from "react-router-dom"; import HomePage from "./pages/homePage"; import MoviePage from "./pages/movieDetailsPage"; import SearchPage from "./pages/searchPage"; import FavoriteMoviesPage from "./pages/favorite...
49,699
https://github.com/cyber-meow/ReactiveRs/blob/master/src/process/map.rs
Github Open Source
Open Source
MIT
null
ReactiveRs
cyber-meow
Rust
Code
345
931
use runtime::{SingleThreadRuntime, ParallelRuntime}; use continuation::{ContinuationSt, ContinuationPl}; use process::{Process, ProcessMut, ProcessSt, ProcessMutSt}; use process::{ProcessPl, ProcessMutPl, ConstraintOnValue}; /// A process that applies a function to the returned value of another process. pub struct Map...
40,332
https://github.com/ArpitShukIa/genx/blob/master/src/selection/tournament.rs
Github Open Source
Open Source
MIT
2,021
genx
ArpitShukIa
Rust
Code
200
642
use rand::{seq::SliceRandom, rngs::StdRng, SeedableRng}; use std::cmp::{Ordering, min}; /** ## Description Tournament Selection is a randomized sorting based selection method. We conduct `num_parents` tournaments where we randomly select `tournament_size` individuals. Out of those selected for a particular tournament,...
35,714
https://github.com/oligus/schema/blob/master/tests/src/Types/__snapshots__/EnumTypeTest__testSimple__1.php
Github Open Source
Open Source
MIT
2,018
schema
oligus
PHP
Code
15
34
<?php return '""" Different directions """ enum Direction { SOUTH NORTH EAST WEST } ';
15,125
https://github.com/dota2classic/game-coordinator/blob/master/src/mm/queue/command/PlayerEnterQueue/player-enter-queue.handler.ts
Github Open Source
Open Source
MIT
2,023
game-coordinator
dota2classic
TypeScript
Code
124
587
import {CommandHandler, EventBus, ICommandHandler, QueryBus,} from "@nestjs/cqrs"; import {Logger} from "@nestjs/common"; import {PlayerEnterQueueCommand} from "src/gateway/gateway/commands/player-enter-queue.command"; import {PartyRepository} from "src/mm/party/repository/party.repository"; import {PlayerEnterQueueRes...
12,893
https://github.com/alpano-unibz/ontop/blob/master/test/docker-tests/src/test/resources/mysql/conference/ontology3.owl
Github Open Source
Open Source
Apache-2.0
2,020
ontop
alpano-unibz
null
Spoken
719
6,692
<?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY owl "http://www.w3.org/2002/07/owl#" > <!ENTITY xsd "http://www.w3.org/2001/XMLSchema#" > <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#" > <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ]> <rdf:RDF xmlns="http://myproject.org/od...
2,460
https://github.com/rillhu/esp32-http-client/blob/master/httpApp/components/httpclient/stringx.c
Github Open Source
Open Source
Apache-2.0
2,020
esp32-http-client
rillhu
C
Code
813
2,257
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include "stringx.h" /* Gets the offset of one string in another string */ int str_index_of(const char *a, char *b) { char *offset = (char*)strstr(a, b); return offset - a; } /* Checks if one string contains another string *...
7,067
https://github.com/everstake/evepool/blob/master/test/pool.proxy.js
Github Open Source
Open Source
MIT
2,021
evepool
everstake
JavaScript
Code
106
318
const { deployProxy } = require('@openzeppelin/truffle-upgrades'); const PoolToken = artifacts.require("PoolToken"); const Pool = artifacts.require("Pool"); const DepositContract = artifacts.require("DepositContract"); const C = require("./_const.js"); // Start test block contract('Pool (proxy)', async accounts => { ...
22,448
https://github.com/ORlGlN/MTANet/blob/master/models/MTANet.py
Github Open Source
Open Source
MIT
2,020
MTANet
ORlGlN
Python
Code
220
1,044
import torch.nn as nn import torch # import torch.nn.functional as F from models.se_resnext import se_resnext_50, se_resnext_101 from models.resnext_cbam import resnext50 from models.senet_backbone import senet50 class Aff2Net(nn.Module): def __init__(self, initial_ses, arc_face, backbone): super(Aff2Net,...
33,128
https://github.com/vaginessa/BatMan-ModdedFiles/blob/master/SystemUI/smali/com/android/keyguard/KeyguardAbsKeyInputView.smali
Github Open Source
Open Source
Apache-2.0
2,017
BatMan-ModdedFiles
vaginessa
Smali
Code
4,427
30,672
.class public abstract Lcom/android/keyguard/KeyguardAbsKeyInputView; .super Landroid/widget/LinearLayout; .source "KeyguardAbsKeyInputView.java" # interfaces .implements Lcom/android/keyguard/KeyguardSecurityView; .implements Lcom/android/keyguard/EmergencyButton$EmergencyButtonCallback; # annotations .annotation s...
47,996
https://github.com/tanjinyi/csvpl/blob/master/src/main/java/ai/preferred/regression/pe/Shuffle.java
Github Open Source
Open Source
Apache-2.0
2,018
csvpl
tanjinyi
Java
Code
83
307
package ai.preferred.regression.pe; import ai.preferred.regression.io.CSVInputData; import org.apache.commons.csv.CSVPrinter; import org.kohsuke.args4j.Option; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.uti...
2,380
https://github.com/birdkiller/apiroper/blob/master/argument.go
Github Open Source
Open Source
BSD-3-Clause
2,019
apiroper
birdkiller
Go
Code
159
548
package apiroper import ( "fmt" ) const ( ARGS_KEY_TYPE_NORMAL = iota ARGS_KEY_TYPE_SLICE ARGS_KEY_TYPE_MAP ) type argument struct { argtype int idkey string // 唯一标识(若标识相同则取值路径也相同) parent *argument pkey string // 从父参数中获取该参数所需的key(map) pindex int // 从父参数中获取该参数所需的下表(slice) base string // 根节点 } ...
23,992
https://github.com/MvvmCross/MvvmCross-Samples/blob/master/WorkingWithCollections/Collections.iOS/Views/Samples/Cells/HeaderCell.cs
Github Open Source
Open Source
MS-PL
2,023
MvvmCross-Samples
MvvmCross
C#
Code
81
242
using System; using Foundation; using UIKit; using MvvmCross.Binding.iOS.Views; namespace Collections.Touch { public partial class HeaderCell : MvxTableViewCell { private const string BindingText = "Title Title"; public static readonly NSString Key = new NSString ("HeaderCell"); public static readonly UINib ...
46,053
https://github.com/mrcljust/justreddit-backend/blob/master/src/main/java/de/justitsolutions/justreddit/mapper/PostMapper.java
Github Open Source
Open Source
Apache-2.0
2,021
justreddit-backend
mrcljust
Java
Code
117
497
package de.justitsolutions.justreddit.mapper; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.springframework.beans.factory.annotation.Autowired; import com.github.marlonlom.utilities.timeago.TimeAgo; import de.justitsolutions.justreddit.dto.PostRequest; import de.justitsolutions.justreddit.dto.P...
24,829