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/jerrykurian/workshop/blob/master/microservices/registry/target/www/app/app.module.js
Github Open Source
Open Source
Apache-2.0
2,017
workshop
jerrykurian
JavaScript
Code
206
770
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
25,394
https://github.com/HY-Vae/WJCamera/blob/master/WJCamera/WJCamera/WJCamera/WJCameraController.h
Github Open Source
Open Source
MIT
2,019
WJCamera
HY-Vae
Objective-C
Code
30
108
// // WJCameraController.h // WJCamera // // Created by wangwenj on 2019/8/14. // Copyright © 2019 wangwenj. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface WJCameraController : UIViewController @end NS_ASSUME_NONNULL_END
22,810
https://github.com/mcnevesinf/p4box/blob/master/test/gtest/p4runtime.cpp
Github Open Source
Open Source
Apache-2.0
2,020
p4box
mcnevesinf
C++
Code
2,759
8,692
/* Copyright 2013-present Barefoot Networks, 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 w...
54,291
https://github.com/aws/aws-sdk-cpp/blob/master/generated/src/aws-cpp-sdk-autoscaling/source/model/Activity.cpp
Github Open Source
Open Source
Apache-2.0, MIT, JSON
2,023
aws-sdk-cpp
aws
C++
Code
626
3,166
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/autoscaling/model/Activity.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/memory/stl/AWSStringStream.h> #include <util...
26,541
https://github.com/google-code/banshee32/blob/master/Banshee.Base/Winforms/Controls/HighlightMessageArea.cs
Github Open Source
Open Source
MIT
2,015
banshee32
google-code
C#
Code
104
274
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Text; using System.Windows.Forms; namespace Banshee.Base.Winforms.Controls { public partial class HighlightMessageArea : UserControl { public HighlightMessageArea() ...
13,127
https://github.com/ruialexrib/Programatica.AspNetCore31AppSkeleton/blob/master/Programatica.AspNetCore31AppSkeleton.Data.Migrations/Migrations/20201202093544_InitialCreate.cs
Github Open Source
Open Source
MIT
null
Programatica.AspNetCore31AppSkeleton
ruialexrib
C#
Code
1,106
4,430
using System; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace Programatica.AspNetCore31AppSkeleton.Data.Migrations.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) ...
52,050
https://github.com/nadimmadani/FoodTruck/blob/master/finalProject/src/main/java/finalProject/services/OwnerService.java
Github Open Source
Open Source
MIT
null
FoodTruck
nadimmadani
Java
Code
32
105
package finalProject.services; import finalProject.domain.Owner; import org.springframework.stereotype.Service; /** * Created by ryanmada1 on 6/27/2016. */ @Service public interface OwnerService { Owner getOwnerById(Integer Id); Owner saveOwner(Owner owner); void deleteOwner(Integer id); Owner ge...
44,934
https://github.com/alibaba/terraform-provider/blob/master/vendor/github.com/hashicorp/terraform/vendor/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_db_security_group.go
Github Open Source
Open Source
MPL-2.0, Apache-2.0
2,022
terraform-provider
alibaba
Go
Code
1,175
4,193
package aws import ( "bytes" "fmt" "log" "time" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/awserr" "github.com/aws/aws-sdk-go/service/rds" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/helper/resource" "github.com/h...
11,938
https://github.com/VincentMolinie/ember-dragula/blob/master/tests/dummy/app/components/tree-component.js
Github Open Source
Open Source
MIT
2,020
ember-dragula
VincentMolinie
JavaScript
Code
9
27
import Ember from 'ember'; export default Ember.Component.extend({ tag:'span' });
13,624
https://github.com/joannawetesko/my-next-destination/blob/master/TravelApplication/app/src/main/java/com/example/jwetesko/travelapplication/Activities/CountryViewActivity.java
Github Open Source
Open Source
MIT
null
my-next-destination
joannawetesko
Java
Code
298
1,324
package com.example.jwetesko.travelapplication.Activities; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.View; import android.widget.Button; import android.widget.ImageView; import an...
10,855
https://github.com/apache/cassandra/blob/master/test/distributed/org/apache/cassandra/distributed/impl/TracingUtil.java
Github Open Source
Open Source
Apache-2.0, MIT, CC0-1.0, BSD-3-Clause, LicenseRef-scancode-public-domain
2,023
cassandra
apache
Java
Code
370
974
/* * 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 ...
37,474
https://github.com/GiovaniFavero/orange-talents-01-template-transacao/blob/master/transactions/src/main/java/br/com/zup/transactions/transactionconsultation/TransactionResponseDto.java
Github Open Source
Open Source
Apache-2.0
null
orange-talents-01-template-transacao
GiovaniFavero
Java
Code
85
290
package br.com.zup.transactions.transactionconsultation; import br.com.zup.transactions.transactionsconsumer.Transaction; import java.math.BigDecimal; import java.time.LocalDateTime; public class TransactionResponseDto { private String id; private BigDecimal amount; private EstablishmentResponseDto esta...
21,993
https://github.com/onlyoneLong/shopmall/blob/master/src/views/category/Category.vue
Github Open Source
Open Source
MIT
null
shopmall
onlyoneLong
Vue
Code
233
986
<template> <div id="category"> <category-nav-bar /> <div class="main"> <category-title-list :title-list="titleList" @handleCategoryTitle="handleCategoryTitle" /> <Scroll class="content" ref="scroll"> <category-commodity-list :commodity-list="commodityList" /> ...
29,513
https://github.com/jaegertracing/jaeger/blob/master/pkg/cassandra/mocks/Session.go
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-dco-1.1, LicenseRef-scancode-unknown-license-reference
2,023
jaeger
jaegertracing
Go
Code
206
425
// Copyright (c) 2019 The Jaeger Authors. // Copyright (c) 2017 Uber Technologies, 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 //...
28,817
https://github.com/jart/cosmopolitan/blob/master/libc/isystem/string.h
Github Open Source
Open Source
ISC
2,023
cosmopolitan
jart
C
Code
14
63
#ifndef _STRING_H #define _STRING_H #include "libc/mem/alg.h" #include "libc/mem/mem.h" #include "libc/str/str.h" #endif /* _STRING_H */
45,258
https://github.com/Odonno/Modern-Gitter/blob/master/Gitter/Gitter/Gitter.Shared/ViewModel/Concrete/LoginViewModel.cs
Github Open Source
Open Source
Apache-2.0
2,021
Modern-Gitter
Odonno
C#
Code
215
740
using System; using System.Threading.Tasks; using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Views; using Gitter.Services.Abstract; using Gitter.ViewModel.Abstract; #if WINDOWS_PHONE_APP using Windows.ApplicationModel.Activation; #endif namespace Gitter.ViewModel.Concrete { public sealed class LoginViewModel : ...
35,058
https://github.com/fschwiet/DreamNJasmine/blob/master/NJasmine/Core/GlobalSetup/ErrorAccumulator.cs
Github Open Source
Open Source
MIT
2,021
DreamNJasmine
fschwiet
C#
Code
52
152
using System; namespace NJasmine.Core.GlobalSetup { public class ErrorAccumulator { protected TestPosition _existingErrorPosition; protected Exception _existingError; public Exception GetErrorForPosition(TestPosition position) { if (_existingError != null && _existi...
10,138
https://github.com/AdamFilk/laravel_project/blob/master/resources/views/backend/package/list.blade.php
Github Open Source
Open Source
MIT
2,020
laravel_project
AdamFilk
Blade
Code
78
410
<x-backend> <div class="container-fluid mt--6"> <div class="row" style="margin-top: 180px"> <div class="col-xl-8"> <div class="card"> <div class="card-header border-0"> <div class="row align-items-center"> <div class="col"> ...
35,927
https://github.com/katharostech/raui/blob/master/raui-core/src/widget/component/containers/size_box.rs
Github Open Source
Open Source
MIT
null
raui
katharostech
Rust
Code
80
313
use crate::{ unpack_named_slots, widget, widget::{ unit::size::{SizeBoxNode, SizeBoxSizeValue}, utils::{Rect, Transform}, }, widget_component, }; use serde::{Deserialize, Serialize}; #[derive(Debug, Default, Clone, Serialize, Deserialize)] pub struct SizeBoxProps { #[serde(default)]...
28,772
https://github.com/openfl/lime/blob/master/externs/air/flash/security/CryptContext.hx
Github Open Source
Open Source
LicenseRef-scancode-free-unknown, MIT, BSD-3-Clause, Apache-2.0, MPL-1.1, LGPL-2.0-only, LicenseRef-scancode-public-domain, GPL-3.0-only
2,023
lime
openfl
Haxe
Code
129
731
package flash.security; extern class CryptContext extends flash.events.EventDispatcher { var signerCN(default, never):String; var signerDN(default, never):String; var signerValidEnd(default, never):UInt; var verificationTime(default, never):UInt; function new():Void; function HasValidVerifySession():Bool; funct...
22,790
https://github.com/unity-idm/furms/blob/master/furms-web-ui/src/main/java/io/imunity/furms/ui/components/MenuComponent.java
Github Open Source
Open Source
BSD-2-Clause
2,021
furms
unity-idm
Java
Code
142
426
/* * Copyright (c) 2020 Bixbit s.c. All rights reserved. * See LICENSE file for licensing information. */ package io.imunity.furms.ui.components; import java.util.Arrays; import java.util.Collections; import java.util.List; import com.google.common.collect.ImmutableList; import com.vaadin.flow.component.Component;...
31,174
https://github.com/flaviomelo10/Curso-POO-Java-Dell/blob/master/aula7/exemplo4/Divisao.java
Github Open Source
Open Source
MIT
null
Curso-POO-Java-Dell
flaviomelo10
Java
Code
20
45
package exemplo4; public class Divisao extends Operacao{ public double calcular(double x, double y) { return x / y; } }
49,266
https://github.com/coleblackman/AccDNN/blob/master/chip_define.py
Github Open Source
Open Source
Apache-2.0
2,022
AccDNN
coleblackman
Python
Code
4
50
CHIP_NAME="xcku115-flva1517-2-e" DSP_NUM=4600 RAM18E_NUM=3500 DDR_BANDWIDTH=80000.0
46,630
https://github.com/olivierlacan/SidewalkWebpage/blob/master/.ivy2/cache/org.fusesource.hawtjni/hawtjni-runtime/ivydata-1.8.properties
Github Open Source
Open Source
MIT
2,021
SidewalkWebpage
olivierlacan
null
Spoken
16
177
#ivy cached data file for org.fusesource.hawtjni#hawtjni-runtime;1.8 #Tue Jan 12 07:36:23 UTC 2021 artifact\:hawtjni-runtime\#jar\#jar\#-759809483.exists=true artifact\:hawtjni-runtime\#jar\#jar\#-759809483.location=https\://repo1.maven.org/maven2/org/fusesource/hawtjni/hawtjni-runtime/1.8/hawtjni-runtime-1.8.jar artif...
6,670
https://github.com/acestudiooleg/vue-vuex-2.0-boilerplate/blob/master/src/app/layouts/default/default.spec.js
Github Open Source
Open Source
MIT
2,017
vue-vuex-2.0-boilerplate
acestudiooleg
JavaScript
Code
25
54
import test from 'ava'; import sinon from 'sinon'; import { mount, tick } from '@/../test/helpers'; import Default from './index'; test.skip('layout', async t => { });
9,300
https://github.com/niulinlnc/dingtalk-python/blob/master/dingtalk/contact/dept.py
Github Open Source
Open Source
Apache-2.0
2,019
dingtalk-python
niulinlnc
Python
Code
126
563
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time: 2018/2/28 下午2:12 # @Author: BlackMatrix # @Site: https://github.com/blackmatrix7 # @File: dept # @Software: PyCharm import requests from ..apis import * from ..foundation import dingtalk_resp __author__ = 'blackmatrix' @dingtalk_resp def get_department_id_list(a...
47,362
https://github.com/thuahahadi/laravel-41/blob/master/app/Http/Controllers/WelcomeController.php
Github Open Source
Open Source
Apache-2.0
null
laravel-41
thuahahadi
PHP
Code
51
236
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Category; use App\Product; class WelcomeController extends Controller { public function index() { $publishedProducts=Product::where('publicationStatus', 1)->get(); return view('frontEnd.home.homeContent', ['publishedProducts...
40,556
https://github.com/id-prawito/spk-promethee/blob/master/resources/views/home.blade.php
Github Open Source
Open Source
MIT
null
spk-promethee
id-prawito
PHP
Code
701
4,354
@extends('layouts.master') @section('title','Home') @push('page-styles') <link rel="stylesheet" href="{{asset('modules/chocolat/dist/css/chocolat.css')}}"> <link rel="stylesheet" href="{{asset('modules/datatables/datatables.min.css')}}"> <link rel="stylesheet" href="{{asset('modules/datatables/DataTables-1.10.16/css/d...
47,629
https://github.com/justindevs/chatty/blob/master/development/src/chatty/util/api/ChannelInfo.java
Github Open Source
Open Source
Apache-2.0, LGPL-3.0-only, LGPL-2.0-or-later, MIT, CC-BY-3.0, LicenseRef-scancode-public-domain
2,021
chatty
justindevs
Java
Code
147
359
package chatty.util.api; import chatty.util.StringUtil; /** * Holds info about the channel (title, game). This is different to stream info * because this isn't associated with a stream (so it doesn't have viewercount) * and used differently. * * @author tduva */ public class ChannelInfo { public fina...
6,430
https://github.com/paul-rogers/drill-test-framework/blob/master/framework/resources/Functional/limit0/p1tests/text/data/distinct6.q
Github Open Source
Open Source
Apache-2.0, LicenseRef-scancode-unknown-license-reference
2,020
drill-test-framework
paul-rogers
null
Spoken
8
21
select distinct(create_time) from voter_csv_v where registration <> 'independent';
35,577
https://github.com/tastyminerals/coherent-text-generation-limited/blob/master/rnn-mod-topic/seed_generator.py
Github Open Source
Open Source
MIT
2,017
coherent-text-generation-limited
tastyminerals
Python
Code
510
2,952
#!/usr/bin/env python2 #-*- coding: utf-8 -*- # Generate seed text file and its corresponding topic and event vectors # Usage: # seed_generator.py "We_174_1 went_1_0 to_1_0 the_1_0 park_1_1 to_174_1 look_173_0 at_173_0 the_173_0 trees_173_1 and_174_1" "tree" "{1:1,173:1,174:10}" # token format: word _ event id _ is las...
35,958
https://github.com/lastweek/source-freebsd/blob/master/src/cddl/usr.bin/ctfdump/Makefile
Github Open Source
Open Source
Naumen, Condor-1.1, MS-PL
null
source-freebsd
lastweek
Makefile
Code
35
296
# $FreeBSD$ .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/common .PATH: ${SRCTOP}/cddl/contrib/opensolaris/tools/ctf/dump PROG= ctfdump SRCS= dump.c \ symbol.c \ utils.c CFLAGS+= -I${OPENSOLARIS_USR_DISTDIR} \ -I${OPENSOLARIS_SYS_DISTDIR} \ -I${OPENSOLARIS_USR_DISTDIR}/head \ -I${OPENSOLARIS_USR_DI...
45,651
https://github.com/tony810430/ozone/blob/master/hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/utils/db/ByteArrayKeyValue.java
Github Open Source
Open Source
Apache-2.0
2,021
ozone
tony810430
Java
Code
260
541
/* * 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 ...
35,720
https://github.com/FDio/vpp/blob/master/src/vppinfra/lb_hash_hash.h
Github Open Source
Open Source
Apache-2.0
2,022
vpp
FDio
C
Code
277
722
/* * Copyright (c) 2018 Cisco and/or its affiliates. * 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 applicabl...
29,653
https://github.com/alexzhangs/xsh-lib-aws/blob/master/functions/spt/is-callable.sh
Github Open Source
Open Source
MIT
null
xsh-lib-aws
alexzhangs
Shell
Code
73
186
#? Description: #? Check if support command is available in AWS CLI. #? AWS Premium Support Subscription is required to use support in AWS CLI. #? #? Usage: #? @is-callable #? #? Return: #? 0: Available #? != 0: Not avaiable #? #? Output: #? None #? function is-callable () { # aws support command is ava...
3,794
https://github.com/InvisibleUSA/METLAB_News/blob/master/Software/Source/me/metlabnews/Model/Entities/Article.java
Github Open Source
Open Source
MIT
2,021
METLAB_News
InvisibleUSA
Java
Code
654
1,901
package me.metlabnews.Model.Entities; import com.sun.istack.Nullable; import me.metlabnews.Model.Common.Logger; import me.metlabnews.Model.Common.XMLTag; import javax.validation.constraints.NotNull; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; /** * Java represent...
42,723
https://github.com/polonez-byte-112/Weather-Forecast/blob/master/app/src/main/java/com/company/elverano/data/positionStack/PositionStack.kt
Github Open Source
Open Source
MIT
2,021
Weather-Forecast
polonez-byte-112
Kotlin
Code
74
263
package com.company.elverano.data.positionStack import androidx.room.Entity import androidx.room.PrimaryKey import com.google.gson.annotations.SerializedName @Entity(tableName = "position_stack") data class PositionStack( @SerializedName("label") @PrimaryKey(autoGenerate = false) val label: String?=null, @Ser...
41,885
https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/peering/arm-peering/src/operationsInterfaces/peeringLocations.ts
Github Open Source
Open Source
LicenseRef-scancode-generic-cla, MIT
2,023
azure-sdk-for-js
Azure
TypeScript
Code
104
234
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PeeringLocati...
22,723
https://github.com/Sourabhatt97/learning/blob/master/resources/views/layout/front/common/head.blade.php
Github Open Source
Open Source
MIT
null
learning
Sourabhatt97
PHP
Code
36
280
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" class="template-default template-all"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel = "icon" href = "{{url('resources/assets/admin/images/logo.jpg')}}"> <meta name="viewport" content="width=device-width, initial-sc...
6,443
https://github.com/dmitriykhalturin/easy-go-skel/blob/master/src/main/kotlin/easy/go/skel/permission/PermissionGroup.kt
Github Open Source
Open Source
MIT
null
easy-go-skel
dmitriykhalturin
Kotlin
Code
46
225
package easy.go.skel.permission /** * Created by Dmitriy Khalturin <dmitry.halturin.86@gmail.com> * for easy_go_skel on 03.04.20 0:55. */ object PermissionGroup { val LOCATION = arrayOf( android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION ) val STORAG...
12,647
https://github.com/Godxalo/mantenedor_estacion/blob/master/resources/js/app.js
Github Open Source
Open Source
MIT
2,021
mantenedor_estacion
Godxalo
JavaScript
Code
14
76
require('./bootstrap'); $(document).ready(function() { $('#example').DataTable( { "language": { "url": "//cdn.datatables.net/plug-ins/1.11.2/i18n/es-cl.json" } } ); } );
50,953
https://github.com/redaphid/we-dont-understand-blackjack/blob/master/dice.js
Github Open Source
Open Source
MIT
null
we-dont-understand-blackjack
redaphid
JavaScript
Code
19
42
function dice() { if (_.random(1,100) <= 42) return 1 return -1 // you lose :'-( } module.exports = dice
8,927
https://github.com/oriaca372m/pictmodoki/blob/master/client/src/bindable.ts
Github Open Source
Open Source
Zlib
null
pictmodoki
oriaca372m
TypeScript
Code
178
615
import { ref, computed, WritableComputedRef } from 'vue' import lodash from 'lodash' import { TypedEvent, Listener } from './typed-event' export class Bindable<T> { private _value: T private _boundTo: Bindable<T> | undefined private _boundListener: Listener<void> | undefined valueChanged = new TypedEvent<void>()...
34,375
https://github.com/captaintouch/KinApp/blob/master/core/src/main/kotlin/com/github/stephenvinouze/core/models/KinAppPurchaseState.kt
Github Open Source
Open Source
Apache-2.0
2,021
KinApp
captaintouch
Kotlin
Code
20
75
package com.github.stephenvinouze.core.models /** * Created by stephenvinouze on 10/05/2017. */ enum class KinAppPurchaseState(val value: Int) { PURCHASED(0), CANCELED(1), REFUNDED(2) }
21,211
https://github.com/CodeDone4U/niche-one/blob/master/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/ProductCategories.php
Github Open Source
Open Source
GPL-3.0-only, LGPL-2.0-or-later, LicenseRef-scancode-warranty-disclaimer, LGPL-2.1-or-later, GPL-3.0-or-later, GPL-1.0-or-later, LicenseRef-scancode-other-copyleft, LicenseRef-scancode-unknown-license-reference, GPL-2.0-only, GPL-2.0-or-later
2,020
niche-one
CodeDone4U
PHP
Code
51
143
<?php /** * REST API Product Categories Controller * * Handles requests to /products/categories. */ namespace Automattic\WooCommerce\Admin\API; defined( 'ABSPATH' ) || exit; /** * Product categories controller. * * @extends WC_REST_Product_Categories_Controller */ class ProductCategories extends \WC_REST_Pro...
46,710
https://github.com/osmaircoelho/semprebela/blob/master/login.php
Github Open Source
Open Source
MIT
2,020
semprebela
osmaircoelho
PHP
Code
245
961
<?php $_SESSION = array(); require_once 'functions/functions.php'; require_once 'functions/config.php'; require_once 'functions/conexao.php'; require_once 'functions/database.php'; if($_SERVER['REQUEST_METHOD'] == 'POST'){ if(isset($_POST['entrar']) || !empty($_POST['entrar'])){ $usuario = filter_in...
36,795
https://github.com/jackylee1/skeletonization/blob/master/src/cpu/normal/cpu.hpp
Github Open Source
Open Source
Unlicense
2,017
skeletonization
jackylee1
C++
Code
135
398
#ifndef CPU_HPP #define CPU_HPP #include <stdint.h> #include "../../common/lspbmp.hpp" #include "../../common/utils.hpp" uint8_t black_neighbors_around(uint8_t* data, int row, int col, int width, int height); uint8_t P2_f(uint8_t* data, int row, int col, int width, int height); uint8_t P3_f(uint8_t* data, int row, in...
54,098
https://github.com/rajkubp020/helloword/blob/master/lammps-master/lib/atc/NonLinearSolver.cpp
Github Open Source
Open Source
MIT
null
helloword
rajkubp020
C++
Code
331
1,053
// ATC headers #include "NonLinearSolver.h" #include "LinearSolver.h" #include "ATC_Error.h" #include "LammpsInterface.h" using std::stringstream; namespace ATC { //=================================================================== // TangentOperator //=======================================================...
23,004
https://github.com/crazyCoderNO1/51job/blob/master/51job/51job/Sections/JobSearch/Controllers/JobSearchViewController.h
Github Open Source
Open Source
MIT
2,014
51job
crazyCoderNO1
Objective-C
Code
40
158
// // JobSearchViewController.h // 51job // // Created by Michael on 12/14/14. // Copyright (c) 2014 Lai. All rights reserved. // #import <UIKit/UIKit.h> #define JOB_SEARCH_STORYBOARD_NAME @"JobSearch" #define JOB_SEARCH_TITLE_STRING @"职位搜索" #define MAP_SEARCH_TITLE_STRING @"地图搜索" #define NUMBER_OF_SECTION ...
13,406
https://github.com/afcowie/unbeliever/blob/master/tests/CheckArgumentsParsing.hs
Github Open Source
Open Source
BSD-3-Clause
null
unbeliever
afcowie
Haskell
Code
445
1,053
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE OverloadedLists #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module CheckArgumentsParsing where import Test.Hspec import Core.Program.Arguments options1 = [ Option "verbose" (Just 'v') "Make the program verbose" , Option "quiet" (Just 'q') "Be very ver...
23,128
https://github.com/tamilselvansellamuthu/Insights/blob/master/PlatformWorkflow/src/main/java/com/cognizant/devops/platformworkflow/workflowtask/utils/PlatformWorkflowApplicationTest.java
Github Open Source
Open Source
Apache-2.0
2,022
Insights
tamilselvansellamuthu
Java
Code
308
1,237
/******************************************************************************* * Copyright 2017 Cognizant Technology Solutions * * 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 * * h...
2,186
https://github.com/Foso/Sheasy/blob/master/libshared/src/commonMain/kotlin/de/jensklingenberg/sheasy/model/AuthorizationType.kt
Github Open Source
Open Source
Apache-2.0
2,021
Sheasy
Foso
Kotlin
Code
37
83
package de.jensklingenberg.sheasy.model enum class AuthorizationType { /** * The authorization of a connected device was removed or not yet set */ UNAUTH, /** * The device is authorized to connect to the server */ AUTHORIZED, UNKNOWN }
16,876
https://github.com/EveFerox/PandoraSkeletons/blob/master/src/skeleton.ts
Github Open Source
Open Source
MIT
null
PandoraSkeletons
EveFerox
TypeScript
Code
2,337
5,574
import * as PIXI from 'pixi.js'; export const PriorityRule = { ABOVE: true, BELOW: false, }; export const enum PoseTag { HANDBEHINDBACK_LEFT = 0, HANDBEHINDBACK_RIGHT = 1, REVERSEPRAYER_LEFT = 2, REVERSEPRAYER_RIGHT = 3, BOXTIE = 4, YOKED = 5, KNEEL_LEFT = 10, KNEEL_RIGHT = 11, FIST_LEFT = 20, FIST_RIGHT ...
46,591
https://github.com/AnonymousShao/qiyijingbao/blob/master/front-src/src/pages/home/bargin/style.scss
Github Open Source
Open Source
MIT
2,017
qiyijingbao
AnonymousShao
SCSS
Code
259
1,273
@import '../common.scss'; @import '../../../style/scss/common/reset.scss'; @import '../../../style/scss/common/iconfont.css'; @import '../../../style/scss/common/common.scss'; .content{ .header{ padding: 0 rem(30px); height:rem(88px); line-height: rem(88px); border-bottom: rem(7px) solid #a80000; ...
6,534
https://github.com/YChebotaev/express-seed/blob/master/app.js
Github Open Source
Open Source
MIT
null
express-seed
YChebotaev
JavaScript
Code
30
96
var config = require('config'); var logger = require('./logger'); module.exports = require('autoboot')(function(){ var port = config.get('server.port'); var host = config.get('server.host'); require('./lib/app').listen(port, host, function(){ logger.info("app listening at %s:%s", host, port); }); });
23,802
https://github.com/A1SoftwareVzla/ProjectForever/blob/master/resources/views/user/group/partials/form.blade.php
Github Open Source
Open Source
MIT
null
ProjectForever
A1SoftwareVzla
PHP
Code
53
187
<div class="row"> {{Form::hidden('administrator_id', Auth::user()->id)}} <div class="row"> <div class="input-field col s12"> {{ Form::text('name', null, ['class' => 'validate', 'id' => 'name']) }} <label for="name">Nombre del grupo</label> </div> </d...
54,123
https://github.com/phuocle/Dynamics-Crm-DevKit/blob/master/test/v.2.12.31/TestAllEntities/All-DEMO/Dev.DevKit.WebResource/entities/CampaignActivityItem.js
Github Open Source
Open Source
MIT
2,021
Dynamics-Crm-DevKit
phuocle
JavaScript
Code
4
24
//@ts-check ///<reference path="CampaignActivityItem.d.ts" />
3,938
https://github.com/gshakhn/idea-fitnesse/blob/master/src/test/scala/fitnesse/idea/psi/PsiSuite.scala
Github Open Source
Open Source
Apache-2.0
2,020
idea-fitnesse
gshakhn
Scala
Code
236
1,282
package fitnesse.idea.psi import java.io.{ByteArrayInputStream, ByteArrayOutputStream, File} import com.intellij.lang.FileASTNode import com.intellij.mock.{MockPsiDocumentManager, MockResolveScopeManager} import com.intellij.psi._ import com.intellij.psi.impl.ResolveScopeManager import com.intellij.psi.search.{Global...
38,886
https://github.com/Tardis-x/Bigger-Inside/blob/master/Assets/Scripts/ARMapScene/Firestore/Models/Json/JsonArrayValue.cs.meta
Github Open Source
Open Source
CC-BY-3.0
2,018
Bigger-Inside
Tardis-x
Unity3D Asset
Code
6
38
fileFormatVersion: 2 guid: 9e916ef03cb64df3af413a81d435b8d7 timeCreated: 1531144164
53,399
https://github.com/Effix/LedBadge/blob/master/LedBadgeFirmware/Commands.cpp
Github Open Source
Open Source
MIT
2,022
LedBadge
Effix
C++
Code
1,376
5,136
#include "Commands.h" #include "Serial.h" #include "Eeprom.h" #include "Display.h" #include "Buttons.h" #if defined(__AVR_ATmega88PA__) #define F_CPU 12000000UL #elif defined(__AVR_ATmega8A__) #define F_CPU 8000000UL #endif #include <util/delay.h> // Command/Animation state machine values CommandState g_CommandReg =...
11,249
https://github.com/AarjavP/google-hash-code-2022/blob/master/src/main/kotlin/divine/brothers/qual/QualMain.kt
Github Open Source
Open Source
MIT
null
google-hash-code-2022
AarjavP
Kotlin
Code
82
401
package divine.brothers.qual import divine.brothers.readFromClasspath import java.io.File fun main() { val files = listOf( "a_an_example.in.txt", "b_better_start_small.in.txt", "c_collaboration.in.txt", "d_dense_schedule.in.txt", "e_exceptional_skills.in.txt", "f_...
33,601
https://github.com/RuMur82/campaign_monitor/blob/master/lib/campaign_monitor/result.rb
Github Open Source
Open Source
MIT
2,009
campaign_monitor
RuMur82
Ruby
Code
52
155
class CampaignMonitor # Encapsulates the response received from the CampaignMonitor webservice. class Result attr_reader :message, :code def initialize(response) @message = response["Message"] @code = response["Code"].to_i @raw=response end def success? code == 0 end ...
27,136
https://github.com/farenasmz/TestAngular/blob/master/TestAngular/TestAngular/ClientApp/src/app/product-book/product-book.service.spec.ts
Github Open Source
Open Source
MIT
null
TestAngular
farenasmz
TypeScript
Code
36
117
import { TestBed, inject } from '@angular/core/testing'; import { ProductBookService } from './product-book.service'; describe('ProductBookService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [ProductBookService] }); }); it('should be created', inject([ProductBookServi...
33,657
https://github.com/UFOP-CSI477/2021-01-remoto-atividades-Marcoshsc/blob/master/Atividades/exercicios/exercicio-09/App/Repository/ProdutoRepository.php
Github Open Source
Open Source
MIT
null
2021-01-remoto-atividades-Marcoshsc
UFOP-CSI477
PHP
Code
55
204
<?php namespace App\Repository; use App\Database\Connection; use App\Models\Produto; class ProdutoRepository implements Repository { private $connection; public function __construct(Connection $connection) { $this->connection = $connection; } public function getAll() { $this->connection->getAdapte...
24,670
https://github.com/mhoyer/react-json-schema-editor/blob/master/.editorconfig
Github Open Source
Open Source
MIT
2,015
react-json-schema-editor
mhoyer
null
Spoken
20
72
root = true [*] end_of_line = crlf insert_final_newline = true [*.{html,js,ts,tsx,less,css,json,feature}] indent_style = space indent_size = 2 charset = utf-8
11,735
https://github.com/airily-note/android-learn/blob/master/app/src/main/java/com/eyepetizer/android/util/DataStoreUtils.kt
Github Open Source
Open Source
Apache-2.0
null
android-learn
airily-note
Kotlin
Code
882
3,137
package com.eyepetizer.android.util import androidx.datastore.preferences.core.* import com.eyepetizer.android.extension.dataStore import com.eyepetizer.android.util.DataStoreUtils.clear import com.eyepetizer.android.util.DataStoreUtils.clearSync import com.eyepetizer.android.util.DataStoreUtils.getData import com.eye...
15,494
https://github.com/sam3d/netlify-cli/blob/master/src/commands/functions/create.js
Github Open Source
Open Source
MIT
null
netlify-cli
sam3d
JavaScript
Code
55
126
const { Command, flags } = require('@oclif/command') class FunctionsCreateCommand extends Command { async run() { this.log(`scaffold out a new function locally`) } } FunctionsCreateCommand.description = `create a new function locally ` FunctionsCreateCommand.flags = { name: flags.string({char: 'n', descrip...
32,058
https://github.com/tobobo/shibe_io_frontend/blob/master/app/templates/activations.hbs
Github Open Source
Open Source
MIT
2,014
shibe_io_frontend
tobobo
null
Spoken
3
18
<h2>Account Activations</h2> {{outlet}}
44,099
https://github.com/pixelbrackets/rector/blob/master/vendor/rector/rector-symfony/src/Rector/Class_/InvokableControllerRector.php
Github Open Source
Open Source
MIT
2,023
rector
pixelbrackets
PHP
Code
354
1,541
<?php declare (strict_types=1); namespace Rector\Symfony\Rector\Class_; use PhpParser\Node; use PhpParser\Node\Identifier; use PhpParser\Node\Name; use PhpParser\Node\Stmt\Class_; use PhpParser\Node\Stmt\ClassMethod; use PhpParser\Node\Stmt\Namespace_; use Rector\Core\Application\FileSystem\RemovedAndAddedFilesCollec...
50,237
https://github.com/KevinXYJ/mingcai-oa/blob/master/src/main/java/com/mingcai/edu/modules/oa/web/eos/OaEosFlowController.java
Github Open Source
Open Source
Apache-2.0
2,019
mingcai-oa
KevinXYJ
Java
Code
186
1,031
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.mingcai.edu.modules.oa.web.eos; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.shiro.authz.annotation.RequiresPermissions; im...
50,352
https://github.com/YossiMH/PSMoveService/blob/master/src/psmoveconfigtool/GeometryUtility.h
Github Open Source
Open Source
Apache-2.0
2,016
PSMoveService
YossiMH
C
Code
157
899
#ifndef GEOMETRY_UTILITY_H #define GEOMETRY_UTILITY_H //-- includes ----- #include "ClientGeometry.h" #include <glm/glm.hpp> #include <glm/gtc/type_ptr.hpp> #include <glm/gtc/quaternion.hpp> #include <opencv2/opencv.hpp> #include "MathEigen.h" //-- methods ----- // PSMove types to PSMove Types PSMoveQuaternion psmove...
52,680
https://github.com/jackyho112/vc-labs-challenge/blob/master/js/components/Song.jsx
Github Open Source
Open Source
MIT
null
vc-labs-challenge
jackyho112
null
Spoken
131
425
import React, { PureComponent } from 'react'; import Select from 'react-select'; import styled from 'styled-components'; import { omit } from 'lodash'; const Div = styled.div` margin: 10px; border: 2px solid #D3D3D3; border-radius: 2px; padding: 10px; `; class Song extends PureComponent { constructor(props)...
19,408
https://github.com/cybervisiontech/coopr/blob/master/coopr-server/src/main/java/co/cask/coopr/http/handler/ProvisionerHandler.java
Github Open Source
Open Source
Apache-2.0
2,020
coopr
cybervisiontech
Java
Code
1,340
4,128
/* * Copyright © 2012-2014 Cask Data, 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...
21,276
https://github.com/Lijiaoa/nni/blob/master/nni/algorithms/compression/v2/pytorch/pruning/__init__.py
Github Open Source
Open Source
MIT
2,022
nni
Lijiaoa
Python
Code
35
91
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from .basic_pruner import * from .basic_scheduler import PruningScheduler from .iterative_pruner import * from .movement_pruner import MovementPruner from .auto_compress_pruner import AutoCompressPruner from .amc_pruner import AMCPruner
17,342
https://github.com/deltachat/rust-email/blob/master/build.rs
Github Open Source
Open Source
MIT
2,020
rust-email
deltachat
Rust
Code
14
75
extern crate version_check; use version_check::Channel; fn main() { if Channel::read().as_ref().map(Channel::is_nightly).unwrap_or(false) { println!("cargo:rustc-cfg=feature=\"nightly\""); } }
8,484
https://github.com/srirangav/rhd/blob/master/rhd.1
Github Open Source
Open Source
MIT
null
rhd
srirangav
null
Spoken
388
655
.\" $Id: rhd.1 8 2005-06-18 05:40:25Z ranga $ .TH rhd 1 .SH NAME rhd - a simple utility for dumping a file in hex .SH SYNOPSIS rhd [options] [file1] ... [fileN] .SH DESCRIPTION rhd is a simple utility for dumping the contents of files in hex. If no files are specified it dumps the contents of stdin. The output of rh...
28,172
https://github.com/gsmet/quarkus/blob/master/extensions/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/config/runtime/SpanConfig.java
Github Open Source
Open Source
Apache-2.0
2,023
quarkus
gsmet
Java
Code
118
341
package io.quarkus.opentelemetry.runtime.config.runtime; import java.util.Optional; import io.quarkus.runtime.annotations.ConfigGroup; import io.quarkus.runtime.annotations.ConfigItem; @ConfigGroup public class SpanConfig { /** * The maximum length of span attribute values. Takes precedence over otel.attri...
41,706
https://github.com/kirwinia/ares-emu-v121/blob/master/mia/mia.hpp
Github Open Source
Open Source
ISC
2,021
ares-emu-v121
kirwinia
C++
Code
79
315
#include <nall/nall.hpp> #include <nall/cd.hpp> #include <nall/vfs.hpp> #include <nall/beat/single/apply.hpp> #include <nall/decode/cue.hpp> #include <nall/decode/wav.hpp> using namespace nall; #if !defined(MIA_LIBRARY) #include <hiro/hiro.hpp> using namespace hiro; #endif #include <ares/ares.hpp> #include <mia/resou...
15,853
https://github.com/Lucasluc19/E-commerce/blob/master/assets/backend/cart/cart_i.php
Github Open Source
Open Source
MIT
2,021
E-commerce
Lucasluc19
PHP
Code
67
493
<?php require('../../../utility/utility.php'); $productid=get_safe_value($con,$_POST['id']); $qty=get_safe_value($con,$_POST['cq']); $d=mysqli_fetch_assoc(mysqli_query($con,"select * from product where id='$productid'")); $cqty=$d['qty']; $result=array(); if($qty==$cqty){ $result['msg']="Out of Stock"; $...
17,644
https://github.com/cdli-gh/mtaac_cdli_ur3_corpus/blob/master/ur3_corpus_data/conll/P102597.conll
Github Open Source
Open Source
CC0-1.0, LicenseRef-scancode-public-domain
2,022
mtaac_cdli_ur3_corpus
cdli-gh
null
Spoken
87
513
#new_text=P102597 # ID FORM SEGM XPOSTAG HEAD DEPREL MISC o.1.1 2(disz) o.1.2 tug2 o.1.3 gu2-na o.2.1 a-du-mu o.3.1 1(disz) o.3.2 lu2-{d}nin-ur4-ra o.4.1 1(disz) o.4.2 ur-{d}dumu-zi-da o.5.1 1(disz) o.5.2 lu2-eridu{ki} o.6.1 2(disz) o.6.2 nimgir-di-de3 o.7.1 1(disz) o.7.2 lugal-za3-ge-si o.8.1 1(disz) o.8.2 a2-nin-ga2-...
45,169
https://github.com/google-admin/ideal/blob/master/bootstrapped/ideal/library/reflections/any_variable_context.java
Github Open Source
Open Source
BSD-3-Clause
2,020
ideal
google-admin
Java
Code
15
48
// Autogenerated from library/reflections.i package ideal.library.reflections; import ideal.library.elements.*; public interface any_variable_context extends any_value { }
52,836
https://github.com/alashworth/stan-monorepo/blob/master/archive/stan/src/test/test-models/bad/reserved/public.stan
Github Open Source
Open Source
BSD-3-Clause
2,019
stan-monorepo
alashworth
null
Spoken
8
16
data { real public; } model { }
13,342
https://github.com/JeffersonQin/git-touch/blob/master/lib/screens/gl_groups.dart
Github Open Source
Open Source
Apache-2.0
null
git-touch
JeffersonQin
Dart
Code
88
391
import 'package:flutter/material.dart'; import 'package:git_touch/models/auth.dart'; import 'package:git_touch/models/gitlab.dart'; import 'package:git_touch/scaffolds/list_stateful.dart'; import 'package:git_touch/widgets/app_bar_title.dart'; import 'package:git_touch/widgets/user_item.dart'; import 'package:provider/...
22,635
https://github.com/Beepiz/beepiz-external-control/blob/master/example-app/src/main/java/com/example/beepizcontrol/extensions/coroutines/SendChannel.kt
Github Open Source
Open Source
Apache-2.0
null
beepiz-external-control
Beepiz
Kotlin
Code
47
117
package com.example.beepizcontrol.extensions.coroutines import kotlinx.coroutines.channels.SendChannel /** * Calling `offer` on a closed channel throws an exception, which is often unwanted and can lead to * crashes, so we're catching it here and returning false instead. */ fun <E> SendChannel<E>.offerCatching(ele...
2,791
https://github.com/HollysTeam/Postergram/blob/master/Postergram/src/test/java/com/hollys/postergram/PostergramApplicationTests.java
Github Open Source
Open Source
Apache-2.0
2,017
Postergram
HollysTeam
Java
Code
157
1,033
package com.hollys.postergram; import static org.junit.Assert.assertEquals; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.jdbc.AutoConfigureTe...
56,207
https://github.com/impactMarket/web/blob/master/src/components/QrCode/QrCode.tsx
Github Open Source
Open Source
Apache-2.0
2,021
web
impactMarket
TypeScript
Code
66
218
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` margin: -6px; overflow: hidden; `; type QrCodeProps = { address?: string; }; export const QrCode = (props: QrCodeProps) => { const { address } = props; const img = `...
50,977
https://github.com/jishminor/model_analyzer/blob/master/model_analyzer/config/run/run_config.py
Github Open Source
Open Source
Apache-2.0
null
model_analyzer
jishminor
Python
Code
233
478
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
20,095
https://github.com/jay10596/Facebook-SPA/blob/master/app/Http/Controllers/ImageController.php
Github Open Source
Open Source
MIT
null
Facebook-SPA
jay10596
PHP
Code
105
307
<?php namespace App\Http\Controllers; use App\Http\Resources\Image as ImageResource; use Illuminate\Http\Request; use Intervention\Image\Facades\Image; class ImageController extends Controller { public function uploadImage() { $data = request()->validate([ 'image' => '', 'widt...
30,205
https://github.com/krishna2nd/chrome-exts/blob/master/odjaaghiehpobimgdjjfofmablbaleem/1.5.0_0/plugins/drive/js/plugin.js
Github Open Source
Open Source
MIT
null
chrome-exts
krishna2nd
JavaScript
Code
146
529
/** * DrivePlugin * @param {RpcCalleeFactory} rpcCalleeFactory The RpcCalleeFactory. * @constructor * @extends {Plugin} */ var DrivePlugin = function(rpcCalleeFactory) { Plugin.call(this, '1.0', rpcCalleeFactory); this.methods_['getName'] = this.getName.bind(this); this.methods_['isResponsible'] = this.isRes...
10,020
https://github.com/mgnt/haxe-pixi/blob/master/pixi/filters/TwistFilter.hx
Github Open Source
Open Source
MIT
2,014
haxe-pixi
mgnt
Haxe
Code
36
92
package pixi.filters; @:native("PIXI.TwistFilter") extern class TwistFilter { function new():Void; /** * This point describes the the offset of the twist */ var size:Dynamic; /** * This radius describes angle of the twist */ var angle:Float; }
16,319
https://github.com/FIN-18-20/Tests-Monogame/blob/master/Valentin/02-Examples/MarioBros/old mario/Sprint 4/Sprint_4/Game States/DeadFlipGameState.cs
Github Open Source
Open Source
MIT
2,019
Tests-Monogame
FIN-18-20
C#
Code
66
228
using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Sprint4 { public class DeadFlipGameState :IGameState { Game1 game; Mario mario; int timer = 20; public DeadFli...
51,843
https://github.com/blockpool-io/core/blob/master/scripts/upgrade/test.sh
Github Open Source
Open Source
MIT
null
core
blockpool-io
Shell
Code
31
212
#!/usr/bin/env bash rm -rf /home/bpl/bpl-core git clone https://github.com/blockpool-io/core -b upgrade /home/bpl/bpl-core mkdir /home/bpl/.bpl touch /home/bpl/.bpl/.env mkdir /home/bpl/.bpl/config mkdir /home/bpl/.bpl/database touch /home/bpl/.bpl/database/json-rpc.sqlite touch /home/bpl/.bpl/database/transaction-...
34,159
https://github.com/voegtlel/auth-manager-backend/blob/master/user_manager/manager/helper.py
Github Open Source
Open Source
MIT
null
auth-manager-backend
voegtlel
Python
Code
261
840
import re from functools import lru_cache from typing import Optional, Any, Mapping, Sequence import regex class DotDict(dict): def __init__(self, initial: dict = None): super().__init__() if initial is not None: for key, value in initial.items(): if '.' in key: ...
19,996
https://github.com/KijijiCA/react-redux-form/blob/master/src/components/control-component.js
Github Open Source
Open Source
MIT
null
react-redux-form
KijijiCA
JavaScript
Code
1,483
5,343
import React, { Component, createElement, cloneElement, PropTypes } from 'react'; import { connect } from 'react-redux'; import { compose } from 'redux'; import identity from 'lodash/identity'; import shallowEqual from '../utils/shallow-equal'; import _get from '../utils/get'; import merge from '../utils/merge'; import...
717
https://github.com/navikt/su-se-bakover/blob/master/database/src/test/kotlin/no/nav/su/se/bakover/database/søknadsbehandling/SøknadsbehandlingPostgresRepoTest.kt
Github Open Source
Open Source
MIT
null
su-se-bakover
navikt
Kotlin
Code
1,616
8,062
package no.nav.su.se.bakover.database.søknadsbehandling import arrow.core.nonEmptyListOf import io.kotest.matchers.shouldBe import io.kotest.matchers.shouldNotBe import io.kotest.matchers.types.shouldBeTypeOf import no.nav.su.se.bakover.common.Tidspunkt import no.nav.su.se.bakover.common.desember import no.nav.su.se.b...
29,093
https://github.com/yamamoto-febc/terraform-provider-sakuracloud/blob/master/sakuracloud/data_source_sakuracloud_switch_test.go
Github Open Source
Open Source
Apache-2.0
2,018
terraform-provider-sakuracloud
yamamoto-febc
Go
Code
626
2,623
// Copyright 2016-2019 terraform-provider-sakuracloud authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required b...
14,185
https://github.com/OurPeople/ion-affix/blob/master/dist/index.js
Github Open Source
Open Source
MIT
2,019
ion-affix
OurPeople
JavaScript
Code
10
37
export * from './ion-affix.module'; export * from './directives/ion-affix'; //# sourceMappingURL=index.js.map
52,632
https://github.com/conestack/sphinx-conestack-theme/blob/master/sphinx_conestack_theme/conestack/static/conestack.js
Github Open Source
Open Source
BSD-2-Clause
null
sphinx-conestack-theme
conestack
JavaScript
Code
361
1,622
let cs = { main_nav_link_sel: 'li.toctree-l1 > a', main_nav_toggle_sel: 'li.toctree-l1 > span.toggle', curr_nav_link_sel: 'li.toctree-l1.current a', init: function() { this.navigation = $('.cs-nav-toc'); this.searchbox = $('#searchbox'); this.init_navigation(); this.bind...
12,497
https://github.com/RuiChen0101/ttesScoreBoard/blob/master/ttesScoreBoard.py
Github Open Source
Open Source
MIT
2,020
ttesScoreBoard
RuiChen0101
Python
Code
143
1,160
import sys import os from PyQt5.QtWidgets import QDialog, QApplication from PyQt5 import QtWidgets, QtCore from src.ui.mainwindow import Ui_MainWindow class AppWindow(QDialog): def __init__(self): super().__init__() self.ui = Ui_MainWindow() self.ui.setupUi(self) self.ui.redAdd.clic...
18,201
https://github.com/abego/j2slib/blob/master/src/main/j2slib/org/eclipse/swt/accessibility/ACC.js
Github Open Source
Open Source
Apache-2.0
null
j2slib
abego
JavaScript
Code
54
687
c$=$_T($wt.accessibility,"ACC"); $_S(c$, "STATE_NORMAL",0x00000000, "STATE_SELECTED",0x00000002, "STATE_SELECTABLE",0x00200000, "STATE_MULTISELECTABLE",0x1000000, "STATE_FOCUSED",0x00000004, "STATE_FOCUSABLE",0x00100000, "STATE_PRESSED",0x8, "STATE_CHECKED",0x10, "STATE_EXPANDED",0x200, "STATE_COLLAPSED",0x400, "STATE_...
21,529