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/trollsoftware/trollcore/blob/master/src/main/java/palm/core/components/CollectionComponent.java
Github Open Source
Open Source
Apache-2.0
null
trollcore
trollsoftware
Java
Code
212
584
/* * Copyright 2017 TrollSoftware (a.shitikov73@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
14,677
https://github.com/jodavis42/CSShaders/blob/master/CSShadersTests/Tests/IntrinsicFunctions/Glsl.std.450 Intrinsics/Sin_IntrinsicTest.expected.glsl
Github Open Source
Open Source
MIT
2,021
CSShaders
jodavis42
GLSL
Code
60
213
#version 450 struct SinTest { int empty_struct_member; }; void SinTest_PreConstructor(SinTest self) { } void SinTest_DefaultConstructor(SinTest self) { SinTest_PreConstructor(self); } void Main(SinTest self) { float floatVal = 0.0; vec2 vector2Val = vec2(0.0); vec3 vector3Val = vec3(0.0); ve...
46,556
https://github.com/Pixel2008/ServerMonitor/blob/master/ServerMonitor.Tests/Builders/PartitionBuilder.cs
Github Open Source
Open Source
MIT
null
ServerMonitor
Pixel2008
C#
Code
36
127
namespace ServerMonitor.Tests.Builders { using static ServerMonitor.Config.DiskDriveConfig; internal class PartitionBuilder : BaseBuilder<Partition> { public PartitionBuilder WithPath(string path) { this.Obj.Path = path; return this; } public Partiti...
10,898
https://github.com/lunes-platform/lunescrab/blob/master/src/utils/crypto.rs
Github Open Source
Open Source
Apache-2.0
2,022
lunescrab
lunes-platform
Rust
Code
255
760
/** # Hash your message with *`sha2 256`* - Receive a message in bytes(Vec u8) and return a hash in bytes(Vec u8) ## Example ```rust use lunesrs::utils::crypto::to_sha256; ``` */ pub fn to_sha256(message: Vec<u8>) -> Vec<u8> { use sha2::{Digest, Sha256}; let mut hasher = Sha256::new(); hasher.update(&me...
13,083
https://github.com/Elctrony/My-Pharmacy/blob/master/lib/providers/message.dart
Github Open Source
Open Source
MIT
null
My-Pharmacy
Elctrony
Dart
Code
36
98
import 'package:my_pharmacy/providers/doctor.dart'; class Message { final Doctor sender; final String time; // Would usually be type DateTime or Firebase Timestamp in production apps final String text; final bool unread; Message({ this.sender, this.time, this.text, this.unread, }); }
45,383
https://github.com/siefkenj/tapp/blob/master/backend/app/controllers/api/v1/admin/wage_chunk_reporting_tags_controller.rb
Github Open Source
Open Source
MIT
2,021
tapp
siefkenj
Ruby
Code
112
526
# frozen_string_literal: true class Api::V1::Admin::WageChunkReportingTagsController < ApplicationController before_action :find_wage_chunk # GET /wage_chunks/:wage_chunk_id/reporting_tags def show render_success @wage_chunk.reporting_tags end # POST /wage_chunks/:wage_chunk_id/reporting_...
38,923
https://github.com/AlexZettler/Python_Project_Starter/blob/master/source/manage_project.py
Github Open Source
Open Source
MIT
null
Python_Project_Starter
AlexZettler
Python
Code
1,182
3,323
# Bundled import os import platform import sys import argparse import pathlib import os.path as osp # Local files import confirm_command # must import this file so that classes have the same namespace as projects that extend it import manage_project global INDENTATION_LEVEL manage_project.INDENTATION_LEVEL = 0 glo...
18,597
https://github.com/hackerkid/advent-of-code/blob/master/day14-part1.cpp
Github Open Source
Open Source
Apache-2.0
2,018
advent-of-code
hackerkid
C++
Code
146
400
#include <iostream> #include <fstream> #define FLY 5555 #define SLEEP 6666 int tar; int ft[12]; int fd[12]; int sleep[12]; int n; using namespace std; int explore(int i, int remain, int mode) { int flytime = ft[i]; int flydist = fd[i]; int wait = sleep[i]; if(mode == FLY) { if(remain >= flytime) { return ...
16,681
https://github.com/benauca/golang-samples/blob/master/logging/go.mod
Github Open Source
Open Source
LicenseRef-scancode-unknown-license-reference, Apache-2.0
2,022
golang-samples
benauca
Go Module
Code
21
163
module github.com/GoogleCloudPlatform/golang-samples/logging go 1.15 require ( cloud.google.com/go/logging v1.4.2 github.com/GoogleCloudPlatform/golang-samples v0.0.0-20220204002944-f20d8abe1519 github.com/google/uuid v1.3.0 google.golang.org/api v0.66.0 google.golang.org/genproto v0.0.0-20220201184016-50beb8ab5...
31,913
https://github.com/npmmirror/nice-router-taro/blob/master/src/listof/footer-tips.tsx
Github Open Source
Open Source
MIT
2,022
nice-router-taro
npmmirror
TypeScript
Code
113
382
import { View } from '@tarojs/components'; import { AtActivityIndicator } from 'taro-ui'; import _ from 'lodash'; import { getExtMode } from '@/nice-router/nice-router-util'; import './footer-tips.scss'; type FooterTipsProps = { hasNextPage?: boolean; loading?: boolean; onLoadMore?: Function; }; function Foote...
21,045
https://github.com/qiniu/kodo-browser/blob/master/src/renderer/modules/codemirror/index.tsx
Github Open Source
Open Source
Apache-2.0
2,023
kodo-browser
qiniu
TSX
Code
14
43
import "./code-mirror-container.scss"; export {default as EditorView} from "./editor-view"; export {default as DiffView} from "./diff-view";
38,220
https://github.com/c807/duar/blob/master/application/views/subir_archivos/cuerpo_origen.php
Github Open Source
Open Source
MIT
null
duar
c807
PHP
Code
59
235
<?php if (isset($l_retaceo)) { foreach ($l_retaceo as $row) { ?> <tr> <td><?php echo $row->partida; ?></td> <td><?php echo $row->cuantia; ?></td> <td><?php echo $row->total; ?></td> <td><?php echo $row->pais_origen; ?></td> <td><b><?php $res = ($row->tlc == 1) ? 'SI' : 'NO'; echo $res; ?></b></td> <td...
22,089
https://github.com/GPII/open-access-tool-tray-system/blob/master/OATTS Server-Side/html/oatts/js/provider.js
Github Open Source
Open Source
Apache-2.0, MIT
2,016
open-access-tool-tray-system
GPII
JavaScript
Code
2,957
9,865
//---### Moved to here from picker.php ////// var globalID = ""; var widgetExtrnData = ""; var loadedWidgetName = ""; var myHash=""; var myFolder=""; var myName=""; var iframe = true; //********************************************************// function favBuild1(idStr, urlStr, provStr) { var str = "" + "<div c...
34,441
https://github.com/huifeidedageda/GPUImageDemo/blob/master/SZH_GPUImageDemo/Pods/Target Support Files/Pods-SZH_GPUImageDemo/Pods-SZH_GPUImageDemo-dummy.m
Github Open Source
Open Source
Apache-2.0
2,017
GPUImageDemo
huifeidedageda
Objective-C
Code
10
60
#import <Foundation/Foundation.h> @interface PodsDummy_Pods_SZH_GPUImageDemo : NSObject @end @implementation PodsDummy_Pods_SZH_GPUImageDemo @end
3,960
https://github.com/pushm0v/HappyShopiOS/blob/master/happyshop/Classes/Modules/Items/Cells/ItemsPhotoRowCell.swift
Github Open Source
Open Source
MIT
null
HappyShopiOS
pushm0v
Swift
Code
186
467
// // ItemsPhotoRowCell.swift // happyshop // // Created by Bherly Novrandy on 2/17/17. // Copyright © 2017 Bherly Novrandy. All rights reserved. // import UIKit import Eureka final class ItemsPhotoRowCell: Cell<Item>, CellType { @IBOutlet weak var imageItemPhoto: UIImageView! required init(style: U...
6,530
https://github.com/hassanrachid/hassanrachid.github.io/blob/master/src/equipment.js
Github Open Source
Open Source
MIT
null
hassanrachid.github.io
hassanrachid
JavaScript
Code
297
1,293
import Item from "./item"; import ItemSlot from './itemslot'; export default class Equipment extends Phaser.GameObjects.Rectangle { constructor(scene, player) { super(scene); this.scene = scene; this.player = player; this.scene.add.existing(this); this.isStroked = true; this.types = { weapon: { id...
37,783
https://github.com/CDCgov/DCPC/blob/master/ctakes-patch/ctakes-ytex-uima/src/main/java/org/apache/ctakes/ytex/uima/dao/DocumentDaoImpl.java
Github Open Source
Open Source
Apache-2.0
2,022
DCPC
CDCgov
Java
Code
192
445
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
176
https://github.com/claytantor/chatscript-slackbot4py/blob/master/run.sh
Github Open Source
Open Source
Apache-2.0
2,016
chatscript-slackbot4py
claytantor
Shell
Code
28
86
#!/bin/bash # where the application config dir should be mounted export CONFIG_DIR=$1 #docker run -p host:exposed my-image docker run -t -d --name slackbot -v ${CONFIG_DIR}:/mnt/config -p 1024:1024 claytantor/chatscript-slackbot4py:latest
31,696
https://github.com/ARvengers/AR-augmented-relationship/blob/master/android/AugmentedRomance/app/src/main/java/com/augmentedromance/augmentedromance/GcmService.java
Github Open Source
Open Source
MIT
null
AR-augmented-relationship
ARvengers
Java
Code
149
588
package com.augmentedromance.augmentedromance; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.pm.ApplicationInfo; import android.media.RingtoneManager; import android.os.Bundle; import android.support.v4.ap...
27,861
https://github.com/worldbeater/Avalonia.NameGenerator/blob/master/src/Avalonia.NameGenerator.Tests/InitializeComponent/GeneratedInitializeComponent/InitializeComponentCode.cs
Github Open Source
Open Source
MIT
2,022
Avalonia.NameGenerator
worldbeater
C#
Code
125
391
using System.IO; using System.Linq; using System.Threading.Tasks; namespace Avalonia.NameGenerator.Tests.InitializeComponent.GeneratedInitializeComponent; public static class InitializeComponentCode { public const string NamedControl = "NamedControl.txt"; public const string NamedControls = "NamedControls.txt...
26,401
https://github.com/it-pebune/ani-research-backend/blob/master/src/daos/subject-dao.ts
Github Open Source
Open Source
MIT
null
ani-research-backend
it-pebune
TypeScript
Code
475
1,549
import { ConnectionPool, IProcedureResult, MAX, Request as SqlRequest, TYPES } from 'mssql'; import { ISubject, ISubjectAssignedHistory, SubjectStatus } from '~entities'; import { sqlNVarChar, sqlVarChar } from '~shared'; interface ISubjectDTO { id: number; uuid: string; firstName: string; lastName: string; ...
16,897
https://github.com/memelyanov/angular2_app/blob/master/src/app/app.routes.ts
Github Open Source
Open Source
MIT
null
angular2_app
memelyanov
TypeScript
Code
57
157
import { Routes } from '@angular/router'; import { LoginComponent } from './pages/login'; import { NoContentComponent } from './pages/no-content'; import { CoursesComponent } from './pages/courses'; import { СourseDetailComponent } from './pages/course-detail'; export const ROUTES: Routes = [ {path: '', component: Co...
11,300
https://github.com/jhutchings1/pyright/blob/master/server/src/tests/samples/isinstance2.py
Github Open Source
Open Source
MIT
null
pyright
jhutchings1
Python
Code
86
147
# This sample tests the case where a base class has # an unknown type and the type is used in an # isinstance check. # pyright: reportUnnecessaryIsInstance=true from typing import Union # This should generate an error because "dummy" can't be resolved. # The symbol Document should have an unknown type. from dummy im...
34,846
https://github.com/PeterOrneholm/orneholm-applicationinsights/blob/master/src/Orneholm.ApplicationInsights.HealthChecks/ApplicationInsightsAvailabilityHealthCheckBuilderExtensions.cs
Github Open Source
Open Source
MIT
2,020
orneholm-applicationinsights
PeterOrneholm
C#
Code
256
739
using System; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; namespace Orneholm.ApplicationInsights.HealthChecks { public static class ApplicationInsightsAvailabilityHealthCheckBuilderExtensions { /// <summary> /// Publish each health check ...
31,253
https://github.com/dcycle/scrapers-ca/blob/master/disabled/ca_ns_municipalities/__init__.py
Github Open Source
Open Source
MIT
2,022
scrapers-ca
dcycle
Python
Code
36
147
from utils import CanadianJurisdiction # The official government source only lists top-level officials. # @see http://www.gov.ns.ca/snsmr/municipal/government/contact.asp class NovaScotiaMunicipalities(CanadianJurisdiction): classification = 'legislature' division_id = 'ocd-division/country:ca/province:ns' ...
28,086
https://github.com/raghavajoijode/rjs-core/blob/master/core/src/main/java/com/subra/aem/rjs/v/search/forms/services/FacetBuilder.java
Github Open Source
Open Source
Apache-2.0
null
rjs-core
raghavajoijode
Java
Code
30
160
package com.subra.aem.rjs.v.search.forms.services; import com.day.cq.search.QueryBuilder; import com.subra.aem.rjs.v.search.forms.FacetsInfo; import org.apache.sling.api.SlingHttpServletRequest; import java.util.List; import java.util.Map; public interface FacetBuilder { Map<String, List<FacetsInfo>> getFacets(...
35,162
https://github.com/gardener/etcd-backup-restore/blob/master/pkg/mock/etcdutil/client/mocks.go
Github Open Source
Open Source
BSD-3-Clause, Apache-2.0, MIT
2,023
etcd-backup-restore
gardener
Go
Code
1,849
6,707
// Code generated by MockGen. DO NOT EDIT. // Source: github.com/gardener/etcd-backup-restore/pkg/etcdutil/client (interfaces: Factory,ClusterCloser,KVCloser,MaintenanceCloser) // Package client is a generated GoMock package. package client import ( context "context" io "io" reflect "reflect" client "github.com/...
7,071
https://github.com/lehtmets/idea-fitnesse/blob/master/src/main/scala/fitnesse/idea/etc/SearchScope.scala
Github Open Source
Open Source
Apache-2.0
2,021
idea-fitnesse
lehtmets
Scala
Code
27
85
package fitnesse.idea.etc import com.intellij.openapi.project.Project import com.intellij.psi.search.GlobalSearchScope /** * Define the scope to use for looking up dependencies */ object SearchScope { def searchScope(project: Project) = GlobalSearchScope.allScope(project) }
34,203
https://github.com/hafsa-k/form-switch/blob/master/app/js/concat-js/base.js
Github Open Source
Open Source
MIT
2,018
form-switch
hafsa-k
JavaScript
Code
11
28
// AFFICHAGE DE BASE // $( "#inscription" ).show(); $( "#connection" ).hide();
20,317
https://github.com/moemmia/CookingThings/blob/master/Assets/ListOfActions.cs
Github Open Source
Open Source
Unlicense
null
CookingThings
moemmia
C#
Code
53
142
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class ListOfActions : MonoBehaviour { [Serializable] public struct Acciones { public string name; public Component script; } public Acciones[] actions; // Update is called once pe...
40,878
https://github.com/yang152/Demo3000SDK/blob/master/Demo3000SDK/RootHandle/VLRootViewController.h
Github Open Source
Open Source
Apache-2.0
2,020
Demo3000SDK
yang152
C
Code
28
84
// // ViewController.h // DemoPolySDK // // Created by yangting on 2020/8/12. // Copyright © 2020 杨挺. All rights reserved. // #import "VLBaseViewController.h" @interface VLRootViewController : VLBaseViewController @end
16,544
https://github.com/gyunggyung/Sejong_ITIP-/blob/master/Website/app.js
Github Open Source
Open Source
Apache-2.0
2,019
Sejong_ITIP-
gyunggyung
JavaScript
Code
106
448
const express = require('express'); var bodyParser = require('body-parser'); var review = require('./public/js/review'); const app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended:true})); app.use(express.static(__dirname+'/public')); //app.use('/ajax', './js/ajax.js'); app.get('/', f...
10,563
https://github.com/2010USFJava/IsaAndChris/blob/master/ExampleFrontController/src/main/java/com/revature/service/VillainService.java
Github Open Source
Open Source
MIT
null
IsaAndChris
2010USFJava
Java
Code
76
294
package com.revature.service; import java.util.List; import com.revature.dao.SuperVillainDao; import com.revature.model.SuperVillain; public class VillainService { SuperVillainDao svdao = new SuperVillainDao(); public SuperVillain loginGetVillain(String name, String superPower) { if (loginVerify(name, superPowe...
45,581
https://github.com/FDA/precisionFDA/blob/master/app/policies/task_policy.rb
Github Open Source
Open Source
CC0-1.0
2,023
precisionFDA
FDA
Ruby
Code
223
669
class TaskPolicy # participants and admin can see task def self.can_see?(task, member) task.assignee_id == member.user_id || task.user_id == member.user_id || member.admin? end # target user can accept task def self.can_accept?(task, member) statuses = ['open', 'failed_response_deadline'] status...
43,166
https://github.com/zkweb-framework/ZKWeb/blob/master/ZKWeb/ZKWeb.ORM.NHibernate/BetterPostgreSQLDialect.cs
Github Open Source
Open Source
MIT
2,021
ZKWeb
zkweb-framework
C#
Code
76
232
using NHibernate.Dialect; using System.Data; namespace ZKWeb.ORM.NHibernate { #pragma warning disable S101 // Types should be named in camel case /// <summary> /// Better pgsql dialect<br/> /// What's improved<br/> /// - Support Guid type<br/> /// 更好的pgsql配置<br/> /// 改进点<br/> /// - 支持Guid类...
48,678
https://github.com/zmargeta/dotfiles/blob/master/home/dot_config/fish/functions/fish_greeting.fish
Github Open Source
Open Source
MIT
2,022
dotfiles
zmargeta
Fish
Code
12
29
function fish_greeting if status is-interactive; and type -q fortune fortune end end
31,086
https://github.com/isabella232/commerce-cif-graphql-integration-reference/blob/master/src/common/CartLoader.js
Github Open Source
Open Source
Apache-2.0
2,021
commerce-cif-graphql-integration-reference
isabella232
JavaScript
Code
425
875
/******************************************************************************* * * Copyright 2019 Adobe. All rights reserved. * This file is licensed to you 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 * ...
24,750
https://github.com/rajeevsathish/sunbird-portal/blob/master/src/app/client/src/app/modules/dashboard/components/list-all-reports/list-all-reports.component.ts
Github Open Source
Open Source
MIT
null
sunbird-portal
rajeevsathish
TypeScript
Code
473
1,601
import { UserService } from '@sunbird/core'; import { IImpressionEventInput } from '@sunbird/telemetry'; import { ResourceService, NavigationHelperService } from '@sunbird/shared'; import { Component, OnInit, AfterViewInit } from '@angular/core'; import { catchError, mergeMap, map, tap } from 'rxjs/operators'; import *...
26,989
https://github.com/cunningham-lab/epi/blob/master/neural_circuits/LRRNN.py
Github Open Source
Open Source
Apache-2.0
2,021
epi
cunningham-lab
Python
Code
2,227
8,954
import os import itertools import pickle import scipy import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from epi.normalizing_flows import NormalizingFlow from epi.models import Model, Parameter from epi.util import get_max_H_dist import torch from sbi import utils as utils from sbi import anal...
1,996
https://github.com/SweetBowl/Document_angle/blob/master/transform/basic_transform/resize.py
Github Open Source
Open Source
MIT
null
Document_angle
SweetBowl
Python
Code
221
724
import torchvision.transforms.functional as F from PIL import Image import torch import math import utils __all__ = ['ScaleResize'] class ScaleResize(object): def __init__(self, fixed_size, fill_value=0, interpolation=Image.BILINEAR) -> None: ''' ...
39,282
https://github.com/Mathew-Layne/MathewFashion/blob/master/app/Http/Controllers/SignupController.php
Github Open Source
Open Source
MIT
null
MathewFashion
Mathew-Layne
PHP
Code
131
451
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Mail; use App\Mail\TestMail; class SignupController extends Controller { function signupview(){ return view('/signup'); } func...
46,469
https://github.com/rjmcguire/glfw3d/blob/master/source/glfw3d/Input.d
Github Open Source
Open Source
MIT
2,016
glfw3d
rjmcguire
D
Code
137
486
module glfw3d.Input; import glfw3d.glfw3; import glfw3d.Main; import std.string : fromStringz; string glfw3dGetKeyName(int key, int scancode) { return glfwGetKeyName(key, scancode).fromStringz.idup; } class Joystick { private int joy; this(int j) { this.joy = j; } bool isPresent() { if(glfwJoystickPresent...
5,224
https://github.com/xiaojingyao0206/demo-2/blob/master/src/main/resources/static/weui/js/css.js
Github Open Source
Open Source
MIT
2,019
demo-2
xiaojingyao0206
JavaScript
Code
462
1,685
function MM_swapImgRestore() { //v3.0 var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc; } function MM_preloadImages() { //v3.0 var d = document; if (d.images) { if (!d.MM_p) d.MM_p = new Array(); var i, j = d.MM_p.length, a = MM_preloadImag...
11,407
https://github.com/wickberg/prrte/blob/master/src/mca/oob/tcp/oob_tcp_peer.h
Github Open Source
Open Source
BSD-3-Clause-Open-MPI
2,019
prrte
wickberg
C
Code
389
1,134
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2006 The University of Tennessee and The University * of Tennessee Resea...
1,638
https://github.com/hujamba/ext-lib-amazon-mws-reports/blob/master/src/test/java/com/amazonaws/mws/mock/MarketplaceWebServiceMock.java
Github Open Source
Open Source
Apache-2.0
2,019
ext-lib-amazon-mws-reports
hujamba
Java
Code
2,716
8,207
/******************************************************************************* * Copyright 2009 Amazon Services. * 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://aws.am...
30,784
https://github.com/Bikeman868/Prius/blob/master/Prius.Performance.Dummy/Customer.cs
Github Open Source
Open Source
Apache-2.0
2,018
Prius
Bikeman868
C#
Code
95
249
using System; using System.Collections.Generic; using System.Linq; using Prius.Performance.Shared; namespace Prius.Performance.Dummy { public class Customer: ICustomer { private readonly Func<long, IEnumerable<IOrder>> _getOrders; private IList<IOrder> _orders; public Customer(long i...
8,724
https://github.com/Symbo1/wsltools/blob/master/wsltools/utils/faker/providers/address/nl_NL/__init__.py
Github Open Source
Open Source
MIT
2,020
wsltools
Symbo1
Python
Code
3,168
16,668
# coding=utf-8 from __future__ import unicode_literals from .. import Provider as AddressProvider class Provider(AddressProvider): building_number_formats = ('#', '##', '###', '#', '##', '###') street_suffixes = ( 'baan', 'boulevard', 'dreef', 'hof', 'laan', 'pad', 'ring', 'singel', 'steeg'...
36,514
https://github.com/dcopm999/django-osm/blob/master/osm/api/views.py
Github Open Source
Open Source
MIT
2,021
django-osm
dcopm999
Python
Code
435
2,329
from django_filters.rest_framework import DjangoFilterBackend from rest_framework import generics from rest_framework_gis.pagination import GeoJsonPagination from osm import models from osm.api import filters, serializers class CountryListAPIView(generics.ListAPIView): queryset = models.Country.objects.filter(de...
6,712
https://github.com/RegieKI/pdac-frontend/blob/master/sassis/src/theme/_index.sass
Github Open Source
Open Source
MIT
null
pdac-frontend
RegieKI
Sass
Code
6
20
@import '_terminal' @import '_raw' @import '_brainwash'
30,798
https://github.com/hideakitai/bevy_ecs_introduction/blob/master/src/bin/event.rs
Github Open Source
Open Source
MIT
2,022
bevy_ecs_introduction
hideakitai
Rust
Code
69
272
use bevy::prelude::*; /// 送受信する Event /// 内部に送受信したい様々なデータをもたせる struct MyEvent(String); /// Event を送信する System /// EventWriter を使って MyEvent を送信する fn event_write(mut event_writer: EventWriter<MyEvent>) { event_writer.send(MyEvent("Hello, event!".to_string())) } /// Event を受信する System /// EventReader のイテレータを使って受信 E...
965
https://github.com/smessmer/mypy-protobuf/blob/master/go/src/proto/mypy/mypy.pb.go
Github Open Source
Open Source
Apache-2.0
2,018
mypy-protobuf
smessmer
Go
Code
310
1,061
// @generated by protoc-gen-godbx // Code generated by protoc-gen-gogo. DO NOT EDIT. // source: dropbox/proto/mypy/mypy.proto /* Package mypy is a generated protocol buffer package. It is generated from these files: dropbox/proto/mypy/mypy.proto It has these top-level messages: */ package mypy import proto "github...
43,765
https://github.com/AleBut/Hopital/blob/master/src/vue/MenuBar.java
Github Open Source
Open Source
MIT
2,020
Hopital
AleBut
Java
Code
313
966
/* * 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 vue; import java.awt.GridLayout; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; /** * ...
8,866
https://github.com/ForbesLindesay/rsa-json/blob/master/bin/cmd.js
Github Open Source
Open Source
MIT
2,021
rsa-json
ForbesLindesay
JavaScript
Code
42
143
#!/usr/bin/env node var rsa = require('../'); var argv = require('optimist').argv; var fs = require('fs'); if (argv.h || argv.help) { return fs.createReadStream(__dirname + '/usage.txt') .pipe(process.stdout) ; } rsa(argv, function (err, doc) { if (err) { console.error(err); proces...
12,501
https://github.com/aliencube/AzureFunctions.Extensions/blob/master/test/Aliencube.AzureFunctions.Extensions.Common.Tests/HttpRequestExtensionsTests.cs
Github Open Source
Open Source
MIT, Apache-2.0
2,022
AzureFunctions.Extensions
aliencube
C#
Code
325
1,434
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Text; using System.Threading; using System.Threading.Tasks; using Aliencube.AzureFunctions.Extensions.Common.Tests.Models; using FluentAssertions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.I...
3,826
https://github.com/shogo82148/wandbox-builder/blob/master/build/docker-testrun.sh
Github Open Source
Open Source
BSL-1.0
2,022
wandbox-builder
shogo82148
Shell
Code
46
148
#!/bin/bash if [ $# -lt 1 ]; then echo "$0 <build>" echo "" echo "example:" echo " $0 clang" exit 1 fi BASE_DIR=$(cd $(dirname $0); pwd) docker run \ -it \ -v $BASE_DIR:/var/work \ -v $BASE_DIR/../wandbox:/opt/wandbox \ melpon/wandbox:test-server \ /bin/bash -c "cd /var/work/$1 && exec /bin/bash...
36,247
https://github.com/Kazuhito00/hsv-mask-extracter/blob/master/gui/frame_gui.py
Github Open Source
Open Source
MIT
2,021
hsv-mask-extracter
Kazuhito00
Python
Code
112
490
#!/usr/bin/env python # -*- coding: utf-8 -*- import copy import cv2 as cv class FrameGui: """ [summary] カメラキャプチャ表示ウィンドウクラス [description] - """ _window_position = [0, 0] _frame = None _click_point = None _window_name = '' def __init__(self, window_name='CAPTURE FRAME', ...
10,369
https://github.com/hailongitzero/EVN-Project/blob/master/app/UserDocumentCategory.php
Github Open Source
Open Source
MIT
null
EVN-Project
hailongitzero
PHP
Code
23
83
<?php namespace App; use Illuminate\Database\Eloquent\Model; class UserDocumentCategory extends Model { protected $table = 'user_doc_cate'; public function category(){ return $this->hasOne('App\DocumentCategory', 'id', 'doc_cate_id'); } }
17,625
https://github.com/lzhlyle/leetcode/blob/master/src/main/java/com/lzhlyle/leetcode/recite/no987/VerticalOrderTraversalOfABinaryTree.java
Github Open Source
Open Source
MIT
2,020
leetcode
lzhlyle
Java
Code
156
454
package com.lzhlyle.leetcode.recite.no987; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class VerticalOrderTraversalOfABinaryTree { public List<List<Integer>> verticalTraversal(TreeNode root) { if (root == null) return Collections.emptyList(); List<Locat...
10,865
https://github.com/LANSELOT/buefy/blob/master/docs/pages/documentation/general/panel/index.vue
Github Open Source
Open Source
MIT
2,017
buefy
LANSELOT
Vue
Code
82
368
<template> <div class="container"> <h1 class="title is-spaced">Panel</h1> <h2 class="subtitle">A simple and collapsible panel</h2> <hr> <div class="example"> <ex-simple></ex-simple> </div> <pre class="example-code" v-highlight><code class="html">{{ ExSimp...
42,687
https://github.com/ytuan996/smart-admin/blob/master/smart-admin-service/smart-admin-api/src/main/java/com/gangquan360/smartadmin/module/robottype/RobotTypeController.java
Github Open Source
Open Source
MIT
null
smart-admin
ytuan996
Java
Code
20
61
package com.gangquan360.smartadmin.module.robottype; /** * comment: * * @author: ytuan996 * @Date : 2020/4/12 23:46 */ public class RobotTypeController { }
37,438
https://github.com/take-2405/local-object-storage/blob/master/src/domain/bucket.go
Github Open Source
Open Source
Apache-2.0
null
local-object-storage
take-2405
Go
Code
27
76
package domain type CreateBucketRequest struct { Name string `json:"Name"` } type UploadImageRequest struct { Name string `json:"Name"` Info string `json:"Info"` Type string `json:"Type"` Bucket string `json:"Bucket"` }
14,859
https://github.com/bcral/R_P_S/blob/master/contracts/Data.sol
Github Open Source
Open Source
MIT
null
R_P_S
bcral
Solidity
Code
675
1,650
pragma solidity >=0.4.21 <0.7.0; import "../node_modules/openzeppelin-solidity/contracts/math/SafeMath.sol"; contract Data { ////////////////////////////////// Globals //////////////////////////////// using SafeMath for uint256; // 'balance' is only the funds for the current open game uint256 bala...
17,825
https://github.com/emetriq/kafka-manager/blob/master/app/models/form/TopicOperation.scala
Github Open Source
Open Source
Apache-2.0
null
kafka-manager
emetriq
Scala
Code
51
103
/** * Copyright 2015 Yahoo Inc. Licensed under the Apache License, Version 2.0 * See accompanying LICENSE file. */ package models.form /** * @author hiral */ sealed trait TopicOperation case class CreateTopic(topic: String, partitions: Int, replication: Int) extends TopicOperation case class DeleteTopic(topic:...
27,282
https://github.com/chanlugeon/reva-launcher/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,019
reva-launcher
chanlugeon
Ignore List
Code
4
27
oldmain.py data/__pycache__/ data/hacked_file/ setup.py
47,007
https://github.com/jamesreinke/Study-Bug/blob/master/app/models/JNorm.scala
Github Open Source
Open Source
Apache-2.0
null
Study-Bug
jamesreinke
Scala
Code
316
901
package models import play.api.Play.current import anorm._ import play.api.db.DB import scala.util.Random import play.api.libs.json._ abstract class JNorm [T]{ /* Table name identifier */ val table: String /* SQL create statements */ val statements: List[String] /* T Parser */ val parser: RowParser[T] ...
12,151
https://github.com/thanhpd/BeMan/blob/master/app/src/main/java/com/uet/beman/support/BM_CallLog.java
Github Open Source
Open Source
MIT
null
BeMan
thanhpd
Java
Code
323
1,195
package com.uet.beman.support; import android.app.Activity; import android.app.Service; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.os.Bundle; import android.os.IBinder; import android.os.SystemClock; import android.provider.CallLog; import android.prov...
4,568
https://github.com/radude89/footballgather-prod/blob/master/FootballGather/FootballGatherTests/UseCases/Details/PlayerDetailsFormViewModelTests.swift
Github Open Source
Open Source
MIT
2,022
footballgather-prod
radude89
Swift
Code
65
185
// // PlayerDetailsFormViewModelTests.swift // FootballGatherTests // // Created by Radu Dan on 21.09.2021. // import XCTest import SwiftUI import CoreModels @testable import FootballGather final class PlayerDetailsFormViewModelTests: XCTestCase { func testSelectedPlayer() { let player = Player(na...
14,587
https://github.com/franksotogithub/spring/blob/master/the-spring-rest-stack/code/client/android/src/com/jl/crm/android/InjectAndroidApplicationContext.java
Github Open Source
Open Source
Apache-2.0
null
spring
franksotogithub
Java
Code
33
72
package com.jl.crm.android; import javax.inject.Qualifier; /** * creates a unique binding so it's clear at injection-sites that we want the Android application context, not an Activity Context. **/ @Qualifier public @interface InjectAndroidApplicationContext { }
6,462
https://github.com/Chimera16/rep0st/blob/master/rep0st/rep0st.py
Github Open Source
Open Source
MIT
null
rep0st
Chimera16
Python
Code
510
1,699
import datetime from concurrent.futures import ThreadPoolExecutor from pathlib import Path from time import time import cv2 import numpy as np import redis from cv2 import imread, imdecode from logbook import Logger from requests import HTTPError from sqlalchemy import create_engine import config from rep0st.analyze ...
15,643
https://github.com/KamyarGh/rl_swiss/blob/master/examples/dqn_and_double_dqn.py
Github Open Source
Open Source
MIT
2,020
rl_swiss
KamyarGh
Python
Code
111
482
""" Run DQN on grid world. """ import gym import numpy as np from torch import nn as nn import rlkit.torch.pytorch_util as ptu from rlkit.launchers.launcher_util import setup_logger from rlkit.torch.dqn.dqn import DQN from rlkit.torch.networks import Mlp def experiment(variant): env = gym.make('CartPole-v0') ...
8,185
https://github.com/quenchjian/android-template/blob/master/app/src/main/java/me/quenchjian/data/db/TodoDBHelper.kt
Github Open Source
Open Source
MIT
null
android-template
quenchjian
Kotlin
Code
52
204
package me.quenchjian.data.db import android.content.Context import android.database.sqlite.SQLiteDatabase import android.database.sqlite.SQLiteOpenHelper import dagger.hilt.android.qualifiers.ApplicationContext import javax.inject.Inject import javax.inject.Named import javax.inject.Singleton @Singleton class TodoDB...
29,978
https://github.com/sid-github07/digital-vidya-yii2/blob/master/views/dv-registration/_form.php
Github Open Source
Open Source
BSD-3-Clause
2,019
digital-vidya-yii2
sid-github07
PHP
Code
2,681
13,724
<?php use yii\helpers\Html; use yii\widgets\ActiveForm; use app\models\DvRegistration; use yii\helpers\ArrayHelper; use app\models\DvUsersRole; use app\models\DvUsersTeam; use app\models\DvUsersDepartment; use app\models\DvParticipantModules; use app\models\DvCountry; use app\models\DvStates; use app\models\DvCourse; ...
40,171
https://github.com/chuckbergeron/chuckbergeron/blob/master/_assets/stylesheets/chuckbergeron.css.scss
Github Open Source
Open Source
MIT
null
chuckbergeron
chuckbergeron
SCSS
Code
332
1,510
* { box-sizing: border-box; } .img-responsive { display: block; height: auto; max-width: 100%; } body { color: #b6b6b9; font-family: "ff-tisa-web-pro", "Georgia", serif; } a { color: #22c9f3; text-decoration: none; &:hover { color: #1f9bc1; } } hr { border-color: #f0f0f0; } .brand { color: ...
37,890
https://github.com/Lucifaer/ysomap/blob/master/core/src/main/java/ysomap/core/payload/xstream/GroovyConvertedClosure.java
Github Open Source
Open Source
Apache-2.0
2,020
ysomap
Lucifaer
Java
Code
113
548
package ysomap.core.payload.xstream; import groovy.lang.Closure; import org.codehaus.groovy.runtime.ConvertedClosure; import ysomap.common.annotation.Authors; import ysomap.common.annotation.Dependencies; import ysomap.common.annotation.Payloads; import ysomap.common.annotation.Require; import ysomap.core.bean.Bullet;...
48,071
https://github.com/linix-platform/api/blob/master/packages/api/test/e2e/api/promise-tx.spec.ts
Github Open Source
Open Source
Apache-2.0
2,019
api
linix-platform
TypeScript
Code
385
1,286
// Copyright 2017-2019 @polkadot/api authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import testingPairs from '@polkadot/keyring/testingPairs'; import WsProvider from '@polkadot/rpc-provider/ws'; import { randomAsHe...
41,700
https://github.com/lunchtimemama/Mono.Upnp/blob/master/src/Mono.Upnp.Dcp/Mono.Upnp.Dcp.MediaServer1/Mono.Upnp.Dcp.MediaServer1.GtkClient/Mono.Upnp.Dcp.MediaServer1.GtkClient/ContentDirectoryInfo.cs
Github Open Source
Open Source
MIT
2,020
Mono.Upnp
lunchtimemama
C#
Code
687
1,672
// // ContentDirectoryInfo.cs // // Author: // Scott Thomas <lunchtimemama@gmail.com> // // Copyright (c) 2010 Scott Thomas // // 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 wi...
37,609
https://github.com/biorosetics/pixel-1/blob/master/apps/submission/migrations/0009_auto_20180119_0928.py
Github Open Source
Open Source
BSD-3-Clause
2,019
pixel-1
biorosetics
Python
Code
65
180
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-19 09:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0008_auto_20180115_1721'), ] operations = [ migrations.AlterF...
35,070
https://github.com/corgan2222/AI-powered-surveillance-using-raspberry-pi/blob/master/install/install_pip_virtenv.sh
Github Open Source
Open Source
MIT
2,022
AI-powered-surveillance-using-raspberry-pi
corgan2222
Shell
Code
30
130
wget https://bootstrap.pypa.io/get-pip.py sudo python get-pip.py sudo python3 get-pip.py sudo rm -rf ~/.cache/pip sudo pip install virtualenv virtualenvwrapper echo " export WORKON_HOME=$HOME/.virtualenvs export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 source /usr/local/bin/virtualenvwrapper.sh " >> $HOME/.bashrc so...
5,400
https://github.com/alphaKAI/HindleyMilnerD/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,016
HindleyMilnerD
alphaKAI
Ignore List
Code
6
31
.dub docs.json __dummy.html *.o *.obj libhindleymilnerd.a
23,472
https://github.com/markmarkberg/external-courses/blob/master/src/ex5_js-functions/task.js
Github Open Source
Open Source
MIT
2,020
external-courses
markmarkberg
JavaScript
Code
91
238
"use strict"; class Calculator { constructor() { this.value = 0; this.add = (n = 0) => { this.value += n; return this.add; }; this.subtract = (n = 0) => { this.value -= n; return this.subtract; }; this.divide = (n = 1) => { this.value /= n; retu...
44,925
https://github.com/Raalsky/honey-badger/blob/master/honey-badger.py
Github Open Source
Open Source
MIT
2,021
honey-badger
Raalsky
Python
Code
1,013
3,459
""" honey-badger - a build system for Rhino/Grasshopper components written in Python. USAGE: ------ honey-badger [-e] [-i] [-v RHINO_VERSION] [-s] [-f BADGERFILE] reads in the BADGERFILE (defaults to "honey-badger.json" in the current directory) and compiles it into a single *.ghpy file containing the classe...
13,599
https://github.com/Torbuntu/Lister/blob/master/src/main/java/com/github/torbuntu/Controller.java
Github Open Source
Open Source
Apache-2.0
null
Lister
Torbuntu
Java
Code
280
851
/* * Copyright 2020 tor. * * 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 wri...
14,832
https://github.com/watertroop10/Spring-Cloud-in-Python/blob/master/tests/commons/utils/list_utils_test.py
Github Open Source
Open Source
Apache-2.0
2,020
Spring-Cloud-in-Python
watertroop10
Python
Code
27
108
# -*- coding: utf-8 -*- # scip plugin from spring_cloud.commons.utils.list_utils import not_none_nor_empty __author__ = "Waterball (johnny850807@gmail.com)" __license__ = "Apache 2.0" def test_not_none_nor_empty(): assert not_none_nor_empty([1]) assert not not_none_nor_empty([])
48,693
https://github.com/skasiraj/Parameter-Estimation-BO/blob/master/estimator/optimizer.py
Github Open Source
Open Source
MIT
null
Parameter-Estimation-BO
skasiraj
Python
Code
502
1,668
""" Optimizer functions for parameter estimation """ import os import sys import numpy as np import copy from nextorch import plotting, bo, doe, utils, io class ParameterMask(): """Create full X matrix with fixed values and varying values""" def __init__(self, para_ranges, return_1d=True): # set the...
48,126
https://github.com/ctimbai/coding-demo/blob/master/CPP/src/mybox/src/split.cpp
Github Open Source
Open Source
Apache-2.0
2,021
coding-demo
ctimbai
C++
Code
42
164
#include <sstream> #include "split.h" /** * 分割字符串 * @param s 为字符串 * @param delimiter 为分割符 * @return 字符串的数组 */ std::vector<std::string> Split(const std::string &s, char delimiter) { std::vector<std::string> tokens; std::string token; std::istringstream tokenStream(s); while (std::getline(tokenStream, toke...
14,476
https://github.com/statler/Pather.CSharp/blob/master/src/Pather.CSharp/IResolver.cs
Github Open Source
Open Source
MIT
2,017
Pather.CSharp
statler
C#
Code
32
111
using System.Collections.Generic; using Pather.CSharp.PathElements; namespace Pather.CSharp { public interface IResolver { IList<IPathElementFactory> PathElementFactories { get; set; } IList<IPathElement> CreatePath(string path); object Resolve(object target, IList<IPathElement> pathE...
32,100
https://github.com/HecatePhy/DREAMPlace/blob/master/dreamplace/ops/greedy_legalize/src/greedy_legalize.cpp
Github Open Source
Open Source
BSD-3-Clause
2,019
DREAMPlace
HecatePhy
C++
Code
694
1,860
/** * @file greedy_legalize.cpp * @author Yibo Lin * @date Jun 2018 */ #include "utility/src/torch.h" #include "greedy_legalize/src/function_cpu.h" DREAMPLACE_BEGIN_NAMESPACE /// @brief legalize layout with greedy legalization. /// Only movable nodes will be moved. Fixed nodes and filler nodes are fixed. //...
45,217
https://github.com/thaihoanganh/react-typescript-webpack-starter/blob/master/src/index.scss
Github Open Source
Open Source
MIT
null
react-typescript-webpack-starter
thaihoanganh
SCSS
Code
35
115
html { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; } body { margin: 0; } .app { display: flex; align-items: center; justify-content: center; width: 100vw; height: 100vh; }
17,569
https://github.com/yzhao1012/bcc/blob/master/libbpf-tools/filetop.h
Github Open Source
Open Source
Apache-2.0
2,022
bcc
yzhao1012
C
Code
60
214
/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ #ifndef __FILETOP_H #define __FILETOP_H #define PATH_MAX 4096 #define TASK_COMM_LEN 16 enum op { READ, WRITE, }; struct file_id { __u64 inode; __u32 dev; __u32 pid; __u32 tid; }; struct file_stat { __u64 reads; __u64 read_bytes; __u64 writes; __u64...
16,875
https://github.com/porenes-ledger/ledger-live-common/blob/master/src/bot/engine.js
Github Open Source
Open Source
Apache-2.0
null
ledger-live-common
porenes-ledger
JavaScript
Code
1,753
5,173
// @flow import expect from "expect"; import invariant from "invariant"; import now from "performance-now"; import sample from "lodash/sample"; import { throwError, of, Observable } from "rxjs"; import { first, filter, map, reduce, tap, mergeMap, timeoutWith, } from "rxjs/operators"; import { log } from "...
8,176
https://github.com/akoeplinger/xamarin-macios/blob/master/src/Foundation/NSSet.cs
Github Open Source
Open Source
BSD-3-Clause
2,022
xamarin-macios
akoeplinger
C#
Code
510
1,162
// // This file describes the API that the generator will produce // // Authors: // Miguel de Icaza // // Copyright 2009, Novell, Inc. // Copyright 2010, Novell, Inc. // Copyright 2012, 2015, Xamarin Inc // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associa...
11,010
https://github.com/hczhcz/mese-next/blob/master/main.js
Github Open Source
Open Source
IJG
2,022
mese-next
hczhcz
JavaScript
Code
74
278
'use strict'; var config = require('./config'); var util = require('./util'); var access = require('./server.access'); var web = require('./server.web'); var socket = require('./server.socket'); process.on('uncaughtException', function (err) { util.log('uncaught exception'); util.err(err); }); util.log('db i...
13,540
https://github.com/nairobi222/kompass/blob/master/lib/src/main/java/io/sellmair/kompass/KompassSelfCraned.kt
Github Open Source
Open Source
Apache-2.0
2,019
kompass
nairobi222
Kotlin
Code
11
40
package io.sellmair.kompass import android.os.Bundle interface KompassSelfCraned { fun toBundle(): Bundle }
2,386
https://github.com/dotta/scala-ide/blob/master/org.scala-ide.sdt.core.tests/src/org/scalaide/core/quickassist/ChangeCaseTests.scala
Github Open Source
Open Source
BSD-3-Clause
null
scala-ide
dotta
Scala
Code
34
143
package org.scalaide.core.quickassist import org.junit.Test class ChangeCaseTests { import UiQuickAssistTests._ @Test def changeCase() { withManyQuickFixesPerLine("changecase/ChangeCase.scala")( List( List("Change to 'meThod1'", "Change to 'metHod1'"), List("Change to 'subS...
39,813
https://github.com/uxxSam/react-google-blogger/blob/master/src/reducers/index.js
Github Open Source
Open Source
MIT
2,018
react-google-blogger
uxxSam
JavaScript
Code
22
65
import { combineReducers } from 'redux'; import BlogReducer from './BlogReducer'; import PostReducer from './PostReducer'; export default combineReducers({ blog: BlogReducer, post: PostReducer, });
11,144
https://github.com/networkcv/Framework/blob/master/Spring/small-spring/small-spring-step-13/src/test/java/cn/bugstack/springframework/test/ApiTest.java
Github Open Source
Open Source
Apache-2.0
2,023
Framework
networkcv
Java
Code
106
483
package cn.bugstack.springframework.test; import cn.bugstack.springframework.beans.BeansException; import cn.bugstack.springframework.beans.factory.config.BeanPostProcessor; import cn.bugstack.springframework.context.support.ClassPathXmlApplicationContext; import cn.bugstack.springframework.test.bean.IUserService; imp...
11,368
https://github.com/hoanv72/HRI/blob/master/src/main/webapp/app/modules/employee/employer-registration.tsx
Github Open Source
Open Source
MIT
null
HRI
hoanv72
TypeScript
Code
27
73
import LayoutLogin from "app/shared/layout/LayoutLogin"; import React from "react"; import './employee.scss'; const EmployerRegistration: React.FC = () => { return ( <> EmployerRegistration </> ); }; export default EmployerRegistration;
30,765
https://github.com/thecodeblogs/django-tcb-blog/blob/master/blog/migrations/0012_auto_20200604_0048.py
Github Open Source
Open Source
MIT
2,021
django-tcb-blog
thecodeblogs
Python
Code
67
253
# Generated by Django 3.0.3 on 2020-06-04 00:48 from django.db import migrations from slugify import slugify def populate_slugs(apps, schema_editor): EntryEnvelope = apps.get_model('blog', 'EntryEnvelope') ees = EntryEnvelope.objects.all() for ee in ees: if ee.title is not None: slug ...
17,873
https://github.com/grecosoft/NetFusion/blob/master/netfusion/src/Messaging/NetFusion.Messaging/Logging/MessageLogExtensions.cs
Github Open Source
Open Source
MIT
2,023
NetFusion
grecosoft
C#
Code
146
406
using Microsoft.Extensions.DependencyInjection; namespace NetFusion.Messaging.Logging; /// <summary> /// Provides extension methods related to the registering of message-logger services. /// </summary> public static class MessageLogExtensions { /// <summary> /// Registers a message log sink called when a mess...
5,740
https://github.com/dbeaver/dbeaver/blob/master/plugins/org.jkiss.dbeaver.ui.editors.base/src/org/jkiss/dbeaver/ui/editors/DatabaseEditorInput.java
Github Open Source
Open Source
Apache-2.0, EPL-1.0, LGPL-2.0-or-later
2,023
dbeaver
dbeaver
Java
Code
606
2,031
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2023 DBeaver Corp and others * * 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/LICE...
13,901