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/m22spencer/MPCDG/blob/master/src/apps/FloatingTransformationTester.hx
Github Open Source
Open Source
BSD-2-Clause
2,011
MPCDG
m22spencer
Haxe
Code
302
1,001
/** * ... * @author Matthew Spencer */ package apps; import com.abc.CMath; import com.Matrix4mem; import flash.display.Bitmap; import flash.display.BitmapData; import flash.display.PixelSnapping; import flash.events.Event; import flash.events.KeyboardEvent; import flash.events.MouseEvent; import flash.filters.Bitm...
14,830
https://github.com/dirtyredz/rusty-universe.com/blob/master/src/components/Footer.jsx
Github Open Source
Open Source
MIT
null
rusty-universe.com
dirtyredz
null
Spoken
111
417
import React from "react"; import styled from 'styled-components' import StyledA from './StyledA' const Footer = styled.div` flex: 1; width: 100%; height: 75px; max-height: 75px; color: white; font-size: 15px; display: flex; justify-content: space-between; flex-direction: row; t...
52,843
https://github.com/MitchTalmadge/UofU-CS-Bot/blob/master/src/main/java/com/mitchtalmadge/uofu_cs_bot/event/listeners/EventListenerAbstract.java
Github Open Source
Open Source
Apache-2.0
2,020
UofU-CS-Bot
MitchTalmadge
Java
Code
20
106
package com.mitchtalmadge.uofu_cs_bot.event.listeners; import com.mitchtalmadge.uofu_cs_bot.util.InheritedComponent; import net.dv8tion.jda.api.events.GenericEvent; @InheritedComponent public abstract class EventListenerAbstract<E extends GenericEvent> { public abstract void onEvent(E GenericEvent); }
34,108
https://github.com/dulton/reSipServer/blob/master/contrib/Netxx-0.3.2/tests/build/test.pl
Github Open Source
Open Source
Apache-2.0
2,019
reSipServer
dulton
Perl
Code
806
2,066
#!/usr/bin/perl ###################################################################### # Copyright (C) 2001-2003 Peter J Jones (pjones@pmade.org) # All Rights Reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: ...
43,098
https://github.com/bduffany/buildbuddy/blob/master/server/util/consistent_hash/BUILD
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,021
buildbuddy
bduffany
Starlark
Code
36
204
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "consistent_hash", srcs = ["consistent_hash.go"], importpath = "github.com/buildbuddy-io/buildbuddy/server/util/consistent_hash", visibility = ["//visibility:public"], deps = ["//server/util/log"], ) go_test( na...
39,843
https://github.com/vahyno/Chirper/blob/master/src/actions/shared.js
Github Open Source
Open Source
MIT
2,019
Chirper
vahyno
JavaScript
Code
58
187
import { getInitialData } from '../utils/api'; import { receiveTweets } from './tweets'; import { receiveUsers } from './users'; import { setAuthedUser } from './authedUser'; import { hideLoading, showLoading } from 'react-redux-loading-bar'; const AuthedUserID = "sarah_edo"; export default function handleInitialDat...
12,724
https://github.com/spikeh/perfmock/blob/master/jmock/src/main/java/uk/davidwei/perfmock/internal/perf/network/link/Link.java
Github Open Source
Open Source
BSD-3-Clause
2,021
perfmock
spikeh
Java
Code
76
253
package uk.davidwei.perfmock.internal.perf.network.link; import uk.davidwei.perfmock.internal.perf.network.Network; import uk.davidwei.perfmock.internal.perf.network.node.Node; import uk.davidwei.perfmock.internal.perf.network.request.Customer; public class Link<T extends Customer> { private final Network network...
15,500
https://github.com/alldatacenter/alldata/blob/master/studio/micro-services/lowcode-engine/modules/material-parser/src/parse/js/handlers/index.ts
Github Open Source
Open Source
Apache-2.0, MIT, BSD-3-Clause
2,023
alldata
alldatacenter
TypeScript
Code
45
183
import { propTypeHandler, contextTypeHandler, childContextTypeHandler } from './propTypeHandler'; import defaultPropsHandler from './defaultPropsHandler'; import preProcessHandler from './preProcessHandler'; import propTypeJsDocHandler from './propTypeJsDocHandler'; const { handlers } = require('react-docgen'); const...
16,562
https://github.com/techchihuahua/docker-trac/blob/master/Dockerfile
Github Open Source
Open Source
MIT
2,018
docker-trac
techchihuahua
Dockerfile
Code
71
316
FROM python:2-alpine LABEL maintainer='tech_chihuahua@tuta.io' RUN mkdir -p /etc/opt/trac && \ apk update && \ apk --no-cache --update add sqlite py-pysqlite apache2-utils && \ pip install \ pytz \ trac \ trac-LighterTheme \ TracMasterTickets \ TracNav \ TracPrivateTickets \ TracPygments \ Trac...
22,221
https://github.com/githork/Datafus/blob/master/data/DofusInvoker/scripts/com/ankamagames/dofus/network/messages/game/guild/tax/TaxCollectorListMessage.as
Github Open Source
Open Source
MIT
2,021
Datafus
githork
null
Spoken
395
1,716
package com.ankamagames.dofus.network.messages.game.guild.tax { import com.ankamagames.dofus.network.types.game.guild.tax.TaxCollectorFightersInformation; import com.ankamagames.dofus.network.types.game.guild.tax.TaxCollectorInformations; import com.ankamagames.jerakine.network.CustomDataWrapper; import com...
10,116
https://github.com/firebelly/girlsgarage/blob/master/web/app/themes/girlsgarage/lib/post-meta-boxes.php
Github Open Source
Open Source
MIT
null
girlsgarage
firebelly
PHP
Code
431
1,466
<?php /** * Extra fields for Posts */ namespace Firebelly\PostTypes\Posts; // Custom CMB2 fields for post type function metaboxes( array $meta_boxes ) { $prefix = '_cmb2_'; // Start with underscore to hide from custom fields list $meta_boxes['post_metabox'] = array( 'id' => 'post_metabox', '...
36,342
https://github.com/eBay/xFraud/blob/master/xfraud/supplement/07Learning_hybrid/ours_learn-grid-A.py
Github Open Source
Open Source
Apache-2.0
2,022
xFraud
eBay
Python
Code
582
2,621
#!/usr/bin/env python # coding: utf-8 # - Edge weight is inferred by GNNExplainer and node importance is given by five Ebay annotators. Not every annotator has annotated each node. # - Seed is the txn to explain. # - id is the community id. import math from tqdm.auto import tqdm import random import pandas as pd imp...
42,141
https://github.com/jfthuong/pydpf-core/blob/master/tests/test_plugins.py
Github Open Source
Open Source
MIT
2,022
pydpf-core
jfthuong
Python
Code
162
966
import os import pytest from ansys.dpf import core as dpf def try_load_cff_operators(): try: if os.name == "posix": return False dpf.load_library("Ans.Dpf.CFF.dll", "cff") return True except: return False # TODO: add loading for linux @pytest.mark.skipif(not...
22,187
https://github.com/GuerfiHamza/guerfihamza/blob/master/node_modules/@ant-design/pro-field/lib/components/ColorPicker/index.d.ts
Github Open Source
Open Source
MIT
null
guerfihamza
GuerfiHamza
TypeScript
Code
38
91
import type { ProFieldFC } from '../../index'; export declare const DEFAULT_COLORS: string[]; /** * 颜色组件 * * @param FieldColorPicker { * text: number; * moneySymbol?: string; } */ declare const FieldColorPicker: ProFieldFC<{ text: string; }>; export default FieldColorPicker;
45,130
https://github.com/NevilleMthw/thejockshop/blob/master/templates/about.php
Github Open Source
Open Source
MIT
2,022
thejockshop
NevilleMthw
PHP
Code
80
191
<?php //Include the PHP functions to be used on the page include('common.php'); //Output header and navigation outputHeader('Welcome Page'); ?> <?php outputBannerNavigation(); ?> <div> <p class="aboutUsTitle">WELCOME TO THE JOCK SHOP</p> </div> <div> <p class="aboutUsdescription"> ...
13,587
https://github.com/ElAngeluz/ProyectoJava1/blob/master/src/Formularios/frmEditarSensor.java
Github Open Source
Open Source
MIT
null
ProyectoJava1
ElAngeluz
Java
Code
713
4,444
/* * 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 Formularios; import Entidades.Sensor; import java.awt.HeadlessException; import javax.swing.JOptionPane; /** * * @author An...
4,069
https://github.com/Qrivi/nuntium-server/blob/master/src/main/kotlin/dev/qrivi/nuntium/server/controller/dto/res/error/Unauthorized.kt
Github Open Source
Open Source
Apache-2.0
2,020
nuntium-server
Qrivi
Kotlin
Code
136
485
package dev.qrivi.nuntium.server.controller.dto.res.error import com.fasterxml.jackson.annotation.JsonIgnore import dev.qrivi.nuntium.server.controller.dto.res.Response import org.springframework.http.HttpHeaders import org.springframework.http.HttpStatus data class Unauthorized( @JsonIgnore val reason: Reason, ...
3,016
https://github.com/davechri/goproxy/blob/master/api/HostReachable.go
Github Open Source
Open Source
MIT
null
goproxy
davechri
Go
Code
65
230
package api import ( "goproxy/config" "net" "os/exec" "strconv" "sync" ) func SetHostReachable(proxyConfig *config.ProxyConfig, wg sync.WaitGroup) { go func() { cmd := exec.Command("ping", "-c", "1", proxyConfig.Hostname) if _, err := cmd.Output(); err == nil { conn, err := net.Dial("tcp", proxyConfig.Ho...
10,004
https://github.com/getto-systems/project-example/blob/master/src/auth/user/password/reset/remote/proxy_request_token/x_actix_web/response.rs
Github Open Source
Open Source
MIT
null
project-example
getto-systems
Rust
Code
31
150
use actix_web::{HttpRequest, HttpResponse}; use crate::z_lib::remote::response::actix_web::RespondTo; use crate::auth::user::password::reset::remote::proxy_request_token::data::RequestResetTokenProxyMessage; impl RespondTo for RequestResetTokenProxyMessage { fn respond_to(self, _request: &HttpRequest) -> HttpRes...
28,249
https://github.com/E7du/jfinal-DbHelper/blob/master/src/main/java/cn/zhucongqi/data/IDataRecordService.java
Github Open Source
Open Source
MIT
null
jfinal-DbHelper
E7du
Java
Code
181
544
/** * */ package cn.zhucongqi.data; import java.io.Serializable; import java.util.List; import java.util.Map; /** * 数据服务接口 * @author Jobsz:Jobsz */ public interface IDataRecordService extends Serializable { /** * 保存数据 * @param data * @return */ public boolean save(Object data); /** * 更新数据 * @p...
38,399
https://github.com/alldevic/swtest/blob/master/friends/serializers.py
Github Open Source
Open Source
MIT
null
swtest
alldevic
Python
Code
29
120
from django.contrib.auth import get_user_model from rest_framework import serializers User = get_user_model() class PostInviteSerializer(serializers.Serializer): """ Приглашенеие пользователю """ user_id = serializers.IntegerField(label="user_id", help_text="I...
34,066
https://github.com/iiasa/ibis.iSDM/blob/master/man/similarity.Rd
Github Open Source
Open Source
CC-BY-4.0
2,023
ibis.iSDM
iiasa
R
Code
398
1,091
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/similarity.R \name{similarity} \alias{similarity} \title{Calculate environmental similarity of reference datasets to predictors.} \usage{ similarity( obj, ref, ref_type = "poipo", method = "mess", predictor_names = NULL, full = FA...
44,286
https://github.com/499453466/Lua-Other/blob/master/Funserver/ArcEmu/Scripts/NPCs/sabeltann.lua
Github Open Source
Open Source
Unlicense
2,019
Lua-Other
499453466
Lua
Code
77
374
function Sabeltooth_OnCombat(Unit, Event) Unit:SendChatMessage(14, 0, "Captain Sabeltooth is a dangerous guy!") Unit:CastSpell(41447) Unit:RegisterEvent("Sabeltooth_Fire", 30000, 5) end function Sabeltooth_Fire(Unit, Event) Unit:CastSpell(36876, Unit:GetRandomPlayer(0)) Unit:SendChatMessage(14, 0, "Me dragon! Boom ...
46,210
https://github.com/ppartarr/azure-sdk-for-java/blob/master/sdk/devtestlabs/mgmt-v2018_09_15/src/main/java/com/microsoft/azure/management/devtestlabs/v2018_09_15/BulkCreationParameters.java
Github Open Source
Open Source
MIT
2,021
azure-sdk-for-java
ppartarr
Java
Code
138
302
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.devtestlabs.v2018_09_15; import com.fasterxml.ja...
33,368
https://github.com/itepechi/LuaSnip/blob/master/tests/integration/loaders_spec.lua
Github Open Source
Open Source
Apache-2.0
null
LuaSnip
itepechi
Lua
Code
352
1,768
local helpers = require("test.functional.helpers")(after_each) local exec_lua, feed, exec = helpers.exec_lua, helpers.feed, helpers.exec local ls_helpers = require("helpers") local Screen = require("test.functional.ui.screen") local assert = require("luassert") local loaders = { ["vscode(rtp)"] = function() exec( ...
39,521
https://github.com/ThePowerOfSwift/PDFjet-Open-Source/blob/master/Sources/PDFjet/PDF.swift
Github Open Source
Open Source
BSD-2-Clause
2,020
PDFjet-Open-Source
ThePowerOfSwift
Swift
Code
4,949
14,779
/** * PDF.swift * Copyright (c) 2018, Innovatics Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of c...
10,813
https://github.com/gammasoft71/xtd_core/blob/master/src/xtd_core/include/xtd/collections/any_pair.h
Github Open Source
Open Source
MIT
2,021
xtd_core
gammasoft71
C++
Code
35
76
#pragma once #include <any> #include <utility> /// @brief The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more. namespace xtd { namespace collections { using any_pair = std::pair<std::any, std::any>; } }
35,821
https://github.com/mfojtak/dxWDL/blob/master/src/test/resources/decompose/interpolation.wdl
Github Open Source
Open Source
Apache-2.0
2,019
dxWDL
mfojtak
null
Spoken
90
224
workflow interpolation { String fruit = "lemon" String ice = "slush" scatter (s in ["G", "C", "T", "A"]) { call Concat as ac1 { input: x = "${s}.S16", y = "${s}.none" } call Concat as ac2 { input: x = "T...
43,127
https://github.com/isislab-unisa/dmason2.5/blob/master/src/main/java/it/isislab/dmason/experimentals/tools/launcher/Forker.java
Github Open Source
Open Source
Apache-2.0
2,022
dmason2.5
isislab-unisa
Java
Code
189
511
/** * Copyright 2012 Universita' degli Studi di Salerno 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...
1,476
https://github.com/redhat-developer/redhat-sso-quickstarts/blob/master/authz-js-policies/src/main/resources/match-user-from-uri.js
Github Open Source
Open Source
Apache-2.0
2,022
redhat-sso-quickstarts
redhat-developer
JavaScript
Code
35
117
var context = $evaluation.getContext(); var attributes = context.getAttributes(); var httpUri = attributes.getValue('http.uri'); if (httpUri) { var uriParts = httpUri.asString(0).split('/'); var identity = context.getIdentity(); var username = identity.getAttributes().getValue('preferred_username').asStrin...
18,902
https://github.com/lambdasawa/microcms-sdk-generator/blob/master/openapi/components/components.go
Github Open Source
Open Source
MIT
2,022
microcms-sdk-generator
lambdasawa
Go
Code
83
395
package components import ( "github.com/getkin/kin-openapi/openapi3" "github.com/lambdasawa/microcms-sdk-generator/metadata" "github.com/lambdasawa/microcms-sdk-generator/microcms" "github.com/lambdasawa/microcms-sdk-generator/openapi/components/parameters" "github.com/lambdasawa/microcms-sdk-generator/openapi/co...
52,046
https://github.com/cwhelan/cloudbreak/blob/master/src/main/scripts/readCasava18FilesIntoHDFS.sh
Github Open Source
Open Source
MIT
2,016
cloudbreak
cwhelan
Shell
Code
87
449
#!/bin/bash # reads a set of fastq files created by CASAVA 1.8+ into HDFS set -e set -u # file names are like: # LC_33_NoIndex_L001_R1_010.fastq.gz DATA_DIR=$1 PREFIX=$2 HDFS_DATA_DIR=$3 CLOUDBREAK_HOME=$4 NUM_FILES=`ls $DATA_DIR/${PREFIX}_*.fastq.gz | wc -l` for i in $(seq 1 $NUM_FILES) do FILENUM=`printf "%...
25,010
https://github.com/Jimvin/nipyapi/blob/master/nipyapi/nifi/models/connection_diagnostics_snapshot_dto.py
Github Open Source
Open Source
Apache-2.0
2,022
nipyapi
Jimvin
Python
Code
676
2,074
# coding: utf-8 """ NiFi Rest API The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
56,013
https://github.com/janag162/2021-2e-sramkova-TextHra/blob/master/Ending.java
Github Open Source
Open Source
MIT
null
2021-2e-sramkova-TextHra
janag162
Java
Code
1,365
2,431
public class Ending { public void endGate() { System.out.println("After a long journey you finally arrive to the main city.\nYou get to the gates of the palace, but the guards suddenly block your way."); System.out.println("Guard: Halt, outsider! State your name and business."); System.out...
30,690
https://github.com/MrStronger/TimeNote/blob/master/src/routes/Sign/components/Register/PhoneRegister/validate.js
Github Open Source
Open Source
MIT
2,018
TimeNote
MrStronger
JavaScript
Code
67
230
const phoneReg = /^1[34578]\d{9}$/ const validate = (values) => { const errors = {} if (!values.username) { errors.username = '请输入你的昵称' } if (!values.phone) { errors.phone = '请输入你的手机号' } else if (!phoneReg.test(values.phone)) { errors.phone = '手机号格式不对' } if (!values.code) { errors.code = ...
51,027
https://github.com/IrwinBridge/nextEngine/blob/master/Makefile
Github Open Source
Open Source
MIT
null
nextEngine
IrwinBridge
Makefile
Code
87
338
NAME = doom-nukem SRC = engine/*.c game/*.c ifeq ($(shell uname -s), Linux) HEADERS = -I/usr/include/SDL2/ LINKS = -lSDL2 -lSDL2_image else HEADERS = -I ~/Library/Frameworks/SDL2.framework/Versions/A/Headers \ -I ~/Library/Frameworks/SDL2_image.framework/Versions/A/Headers LINKS = -F ~/Library/Frameworks/ -framewo...
40,686
https://github.com/jchristov/webstomp/blob/master/src/transport/transport.coffee
Github Open Source
Open Source
MIT
2,016
webstomp
jchristov
CoffeeScript
Code
145
497
Signal = require "../signal" Frame = require "../frame" {fromCallback} = require "bluebird" class Transport @events = ["open", "message", "frame", "heartbeat", "error", "close"] constructor: (ws) -> @ws = ws @heartbeat = null @signals = {} # init signals @constructor.events.forEach...
31,176
https://github.com/mfgcs/mfgcs/blob/master/src/com/toutiao/day/冲刺算法面试每日一题4_26_移动数组中的0.java
Github Open Source
Open Source
Apache-2.0
2,021
mfgcs
mfgcs
Java
Code
118
608
package com.toutiao.day; /** * 移动数组中的0到最后 * 中等 * 字节跳动面试题 */ public class 冲刺算法面试每日一题4_26_移动数组中的0 { public static void main(String[] args) throws Exception { int [] nums={0,1,2,0,3,7,0,12}; moveZeroesOne(nums); moveZeroesTwo(nums); System.out.println(); } /** *双指针2次遍...
31,804
https://github.com/GTEC-UDC/roskfpos/blob/master/src/kfpos/algorithms/MLLocation.h
Github Open Source
Open Source
MIT
2,020
roskfpos
GTEC-UDC
C++
Code
219
852
#ifndef ML_LOCATION_H #define ML_LOCATION_H #define ML_VARIANT_NORMAL 0 #define ML_VARIANT_IGNORE_N 1 #define ML_VARIANT_BEST 2 #define SELECT_ANCHORS_USING_ERROR_XYZ 0 #define SELECT_ANCHORS_USING_ERROR_Z 1 #include <iostream> #include <fstream> #include <sstream> #include <string> #include <map> #include <cmath>...
8,573
https://github.com/web-mech/ArrayUtil/blob/master/lib/util.js
Github Open Source
Open Source
Unlicense
2,014
ArrayUtil
web-mech
JavaScript
Code
185
497
Array.prototype.equals = Array.prototype.compare = function equals(array) { return JSON.stringify(this) === JSON.stringify(array); }; Array.prototype.toObject = function toObject() { var object = {}; for (var i = 0; i < this.length; ++i) { if (this[i] !== undefined) { object[i] = this[i]; } } r...
7,440
https://github.com/eolabs-io/facebook-marketing-api/blob/master/src/Domain/Shared/FacebookMarketingApiCore.php
Github Open Source
Open Source
MIT
null
facebook-marketing-api
eolabs-io
PHP
Code
176
672
<?php namespace EolabsIo\FacebookMarketingApi\Domain\Shared; use EolabsIo\FacebookMarketingApi\Support\Concerns\CursorIdable; use Illuminate\Support\Collection; use Illuminate\Http\Client\Response; use Illuminate\Support\Facades\Http; use Illuminate\Http\Client\RequestException; use EolabsIo\FacebookMarketingApi\Supp...
21,960
https://github.com/maestrano/maestrano-java/blob/master/src/test/java/com/maestrano/sso/GroupTest.java
Github Open Source
Open Source
MIT
2,017
maestrano-java
maestrano
Java
Code
86
480
package com.maestrano.sso; import static org.junit.Assert.assertEquals; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Map; import java.util.TimeZone; import org.junit.Before; import org.junit.Test; import com.maestrano.saml.Response; import com.maestrano.testhelpers.SamlMnoRes...
12,919
https://github.com/andmos/ReadingList/blob/master/ReadingList.Trello/Helpers/IReadingListCache.cs
Github Open Source
Open Source
MIT
2,023
ReadingList
andmos
C#
Code
28
115
using System.Collections.Generic; using ReadingList.Logic.Models; namespace ReadingList.Trello.Helpers { public interface IReadingListCache { void InvalidateCache(); bool TryGetValue(KeyValuePair<string, Label> listLabelPair, out IEnumerable<Book> bookListOut); bool TryAdd(KeyValuePair<string, Label> listL...
4,125
https://github.com/EliasFazel10296/KeepNote/blob/master/KeepNotesPhone/src/main/java/net/geeksempire/ready/keep/notes/DependencyInjections/DependencyGraph.kt
Github Open Source
Open Source
MIT
2,022
KeepNote
EliasFazel10296
Kotlin
Code
72
292
/* * Copyright © 2021 By Geeks Empire. * * Created by Elias Fazel * Last modified 4/12/21 8:50 AM * * Licensed Under MIT License. * https://opensource.org/licenses/MIT */ package net.geeksempire.ready.keep.notes.DependencyInjections import android.content.Context import dagger.BindsInstance import dagger.Comp...
48,054
https://github.com/moutainhigh/ses-server/blob/master/ses-app/ses-web-delivery/src/main/java/com/redescooter/ses/web/delivery/vo/task/OrderResult.java
Github Open Source
Open Source
MIT
null
ses-server
moutainhigh
Java
Code
155
685
package com.redescooter.ses.web.delivery.vo.task; import com.fasterxml.jackson.annotation.JsonFormat; import com.redescooter.ses.api.common.vo.base.GeneralResult; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import io.sw...
2,496
https://github.com/ScyDev/godot/blob/master/platform/android/dir_access_android.cpp
Github Open Source
Open Source
MIT
2,015
godot
ScyDev
C++
Code
430
1,480
/*************************************************************************/ /* dir_access_android.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
55,321
https://github.com/daneko/arrow/blob/master/modules/effects/arrow-effects-data/src/main/kotlin/arrow/effects/internal/IOCancel.kt
Github Open Source
Open Source
Apache-2.0
null
arrow
daneko
Kotlin
Code
56
163
package arrow.effects.internal import arrow.effects.* object IOCancel { /** Implementation for `IO.uncancelable`. */ fun <A> uncancelable(fa: IO<A>): IO<A> = IO.ContextSwitch(fa, makeUncancelable, disableUncancelable()) /** Internal reusable reference. */ private val makeUncancelable: (IOConnection) -> IOCo...
11,509
https://github.com/ChrisL1200/post-office-project/blob/master/app/scripts/controllers/navbar.js
Github Open Source
Open Source
MIT
2,014
post-office-project
ChrisL1200
JavaScript
Code
79
276
'use strict'; angular.module('postOfficeProjectApp') .controller('NavbarCtrl', function ($scope, $location, Listings, Config, Auth) { $scope.isActive = function(route) { return route === $location.path(); }; $scope.data = { search: "" }; $scope.searchListings = function(search) { ...
39,607
https://github.com/kahanu/AngularLokiJsDemo/blob/master/src/app/shared/layout/app-layouts/fixed-top-layout/fixed-main-content/fixed-main-content.component.ts
Github Open Source
Open Source
MIT
null
AngularLokiJsDemo
kahanu
TypeScript
Code
74
279
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { PubSubService } from 'src/app/core/services/pub-sub.service'; @Component({ selector: 'app-fixed-main-content', templateUrl: './fixed-main-content.component.html', styleUrls: ['./fixed-main-content.component.css'] }) export class F...
49,932
https://github.com/jiangdashao/obfuscator/blob/master/src/main/java/me/superblaubeere27/jobf/util/script/JObfScript.java
Github Open Source
Open Source
MIT
2,020
obfuscator
jiangdashao
Java
Code
111
381
package me.superblaubeere27.jobf.util.script; import org.objectweb.asm.tree.ClassNode; import javax.script.Invocable; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class JObfScript { private ScriptEngine jsEngine; public JObfScript(St...
47,594
https://github.com/DmytroSytnyk/sweet/blob/master/benchmarks_plane/polvani/mac_jobs_killall.sh
Github Open Source
Open Source
MIT
2,019
sweet
DmytroSytnyk
Shell
Code
15
37
#! /bin/bash scancel -u $USER #for i in `qstat -u $USER | sed "s/ .*//"`
34,665
https://github.com/ndelvalle/oports/blob/master/src/lib.rs
Github Open Source
Open Source
MIT
2,022
oports
ndelvalle
Rust
Code
530
1,839
//! A crate to asynchronously retrieve open ports for a given IP address. //! //! All methods return a future that can be awaited, if you do not want to use //! futures, you can simple run the `block_on` method from the futures executor //! to block the caller until the given future has completed. use async_std::net::...
39,735
https://github.com/ZhongAnTech/BlockDB/blob/master/plugins/server/web/api.go
Github Open Source
Open Source
Apache-2.0
2,021
BlockDB
ZhongAnTech
Go
Code
379
1,211
package web import ( "encoding/json" "io/ioutil" "net/http" "github.com/sirupsen/logrus" ) func (l *HttpListener) Query(rw http.ResponseWriter, req *http.Request) { data, err := ioutil.ReadAll(req.Body) if err != nil || len(data) == 0 { http.Error(rw, "miss content", http.StatusBadRequest) return } logr...
24,303
https://github.com/osuch-code/wcot_webapp-gatsby/blob/master/src/pages/articles.js
Github Open Source
Open Source
MIT
null
wcot_webapp-gatsby
osuch-code
JavaScript
Code
109
444
import React from "react"; import Layout from "../components/layout"; import SEO from "../components/seo"; import { Link } from "gatsby"; function BlogPage() { return ( <Layout> <SEO keywords={[`react`, `rails`, `postgresql`, `tailwind`]} title="Blog" /> <section className="fl...
7,386
https://github.com/jonandernovella/workflow-demo/blob/master/frontweb/start_extended.sh
Github Open Source
Open Source
Apache-2.0
2,016
workflow-demo
jonandernovella
Shell
Code
31
63
#!/bin/bash # # first get environment variables into file # (workaround because php in nginx image doesn't see environment vars) /getenvs.sh # run the startup script from nginx docker image /start.sh
35,642
https://github.com/ggslove/react-web-tag/blob/master/src/components/build/center/config/ResultConfig.tsx
Github Open Source
Open Source
Apache-2.0
null
react-web-tag
ggslove
TypeScript
Code
415
1,369
import { observer } from "mobx-react"; import React from "react"; import { Build } from "src/store"; import { IRowConfig } from "src/models/build"; import { inputTypes } from "src/constants/commonConstants"; import LabelConfig from './LabelConfig'; import InputConfig from "./InputConfig"; import SelectConfig from './Se...
56,239
https://github.com/aesteve/nubes/blob/master/src/main/java/com/github/aesteve/vertx/nubes/exceptions/ValidationException.java
Github Open Source
Open Source
Apache-2.0
2,020
nubes
aesteve
Java
Code
67
232
package com.github.aesteve.vertx.nubes.exceptions; import java.util.ArrayList; import java.util.List; public class ValidationException extends Exception { private static final long serialVersionUID = 7605372874231630986L; private final List<String> validationMsgs; private ValidationException() { super();...
35,635
https://github.com/javipolo/kops/blob/master/vendor/google.golang.org/protobuf/internal/fieldnum/struct_gen.go
Github Open Source
Open Source
Apache-2.0
2,022
kops
javipolo
Go
Code
132
278
// Copyright 2019 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code generated by generate-protos. DO NOT EDIT. package fieldnum // Field numbers for google.protobuf.Struct. const ( Struct_Fields = 1 // repeated google...
45,429
https://github.com/minarady1/openwsn-fw/blob/master/bsp/boards/nrf52840/spi.c
Github Open Source
Open Source
2,021
openwsn-fw
minarady1
C
Code
267
1,126
/** * Author: Adam Sedmak (adam.sedmak@gmail.com) * Company: Faculty of Electronics and Computing, Zagreb, Croatia * Date: Apr 2018 * Description: nRF52840-specific definition of the "spi" bsp module. */ #include "sdk/components/boards/boards.h" #include "sdk/modules/nrfx/drivers/include/nrfx_spi.h" #include "...
35,964
https://github.com/baqianxin/go-algorithms/blob/master/list/removenth_test.go
Github Open Source
Open Source
MIT
2,021
go-algorithms
baqianxin
Go
Code
139
430
package list import ( "testing" ) func TestRemoveNthFromEnd(t *testing.T) { // 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 // 示例: // 给定一个链表: 1->2->3->4->5, 和 n = 2. // 当删除了倒数第二个节点后,链表变为 1->2->3->5. // 说明: // 给定的 n 保证是有效的。 l := NewSList() for i := 1; i < 6; i++ { l.PushBack(i) } // Len: 5, Data: -> 1 -> 2 -> 3 -...
10,806
https://github.com/abramnk98/Job-Finder-Laravel-Project/blob/master/app/Models/Testimony.php
Github Open Source
Open Source
MIT
2,021
Job-Finder-Laravel-Project
abramnk98
PHP
Code
27
107
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Testimony extends Model { use HasFactory; protected $fillable = ['content', 'candidate_profile_id']; public function candidateProfile() { return $this->belongsTo(...
38,794
https://github.com/OSSILE/OSSILE/blob/master/main/udtf_history_log_info/udtf_History_Log_Info.sql
Github Open Source
Open Source
MIT, Zlib
2,022
OSSILE
OSSILE
SQL
Code
753
1,396
-- Return History Log information. create or replace function History_Log_Info ( StartTime timestamp, EndTime timestamp ) returns table ( Ordinal_Position integer -- A unique number for each row , Message_Id varchar( 7 ) ...
19,440
https://github.com/beyond-papers/beyondpapers/blob/master/build/lib/beyondpapers/regressors/__base_regressor.py
Github Open Source
Open Source
MIT
null
beyondpapers
beyond-papers
Python
Code
179
680
import numpy as np ##### Base Gratient Descent #### class GradientDescentRegressor: def __init__(self,iterations=100,learning_rate=0.01,weights=np.nan,verbose=False,random_state=100): ''' """ Vanilla Gradient Descent Algorithm Read more in the :ref: https://github.com/...
26,369
https://github.com/cash2one/xai/blob/master/xai/brain/wordbase/nouns/_toreador.py
Github Open Source
Open Source
MIT
2,017
xai
cash2one
Python
Code
50
145
#calss header class _TOREADOR(): def __init__(self,): self.name = "TOREADOR" self.definitions = [u'a person, usually a man, who takes part in a bullfight riding a horse'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self, obj1 = [], ob...
53,177
https://github.com/fabiensebban/netsuite/blob/master/lib/netsuite/records/item_availability.rb
Github Open Source
Open Source
MIT
null
netsuite
fabiensebban
Ruby
Code
42
153
module NetSuite module Records class ItemAvailability include Support::Fields include Support::RecordRefs include Support::Records field :item, InventoryItem field :location_id, Location alias_method :location, :location_id field :quantity_on_hand field :on_hand_v...
31,569
https://github.com/geetrawat/geode/blob/master/geode-core/src/main/java/org/apache/geode/distributed/internal/DistributionConfig.java
Github Open Source
Open Source
Apache-2.0, BSD-3-Clause
null
geode
geetrawat
Java
Code
16,151
58,548
/* * 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 may not ...
18,813
https://github.com/joonwoo8395/joonwoo/blob/master/ETL/bin/QueueLog.py
Github Open Source
Open Source
MIT
null
joonwoo
joonwoo8395
Python
Code
545
2,413
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import sys import signal import ConfigParser import json import re import Mobigen.Common.Log as Log; Log.Init() import datetime import shutil import API.M6 as M6 import AESDecode def handler(signum, frame): __LOG__.Trace( 'signal: process shutdown %s' % signum )...
35,472
https://github.com/johnmilner/penryn-starter/blob/master/build/bash/prod.sh
Github Open Source
Open Source
MIT
null
penryn-starter
johnmilner
Shell
Code
14
43
#!/bin/bash DIR=dist/ if [ -d "$DIR" ]; then rm -rf "$DIR" fi node build/node/prod/index.js
1,571
https://github.com/corsjune/napkee/blob/master/src/com/napkee/exporters/HorizontalScrollBarParser.as
Github Open Source
Open Source
Apache-2.0
2,015
napkee
corsjune
null
Spoken
53
319
package com.napkee.exporters { import com.napkee.utils.ComponentParser; import mx.controls.HScrollBar; import mx.core.UIComponent; public class HorizontalScrollBarParser extends BasicParser implements IControlParser { public function HorizontalScrollBarParser(controlCode:XML,offsetModifier:Offs...
13,695
https://github.com/cad106uk/market-access-api/blob/master/api/history/factories/assessments/economic_impact.py
Github Open Source
Open Source
MIT
null
market-access-api
cad106uk
Python
Code
37
171
from api.assessment.models import EconomicImpactAssessment from ..base import HistoryItemFactoryBase from ...items.assessments.economic_impact import ( ArchivedHistoryItem, ExplanationHistoryItem, ImpactHistoryItem, ) class EconomicImpactAssessmentHistoryFactory(HistoryItemFactoryBase): class_lookup =...
26,332
https://github.com/mandarinx/metazelda/blob/master/viewer-src/net/bytten/metazelda/viewer/DungeonView.java
Github Open Source
Open Source
BSD-3-Clause
2,017
metazelda
mandarinx
Java
Code
603
2,098
package net.bytten.metazelda.viewer; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.geom.AffineTransform; import net.bytten.metazelda.Bounds; import net.bytten.metazelda.Edge; import net.bytten.metazelda.IDungeon; import net.bytten.metazelda.Room; import net.bytten.metaz...
5,956
https://github.com/huifer/spring-framework/blob/master/huifer-source-spring/src/main/java/com/huifer/source/spring/TestMain.java
Github Open Source
Open Source
Apache-2.0
null
spring-framework
huifer
Java
Code
22
84
package com.huifer.source.spring; import org.springframework.beans.factory.BeanExpressionException; public class TestMain { public static void main(String[] args) { BeanExpressionException test = new BeanExpressionException("中文测试"); System.out.println(test.getMessage()); } }
32,640
https://github.com/JakobMiksch/geostyler/blob/master/src/Component/Symbolizer/ColorMapEditor/ColorMapEditor.spec.tsx
Github Open Source
Open Source
BSD-2-Clause
null
geostyler
JakobMiksch
TypeScript
Code
610
1,662
/* Released under the BSD 2-Clause License * * Copyright © 2018-present, terrestris GmbH & Co. KG and GeoStyler contributors * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistrib...
33,318
https://github.com/daylinepp/building_energy_modeling/blob/master/app.py
Github Open Source
Open Source
Apache-2.0
null
building_energy_modeling
daylinepp
Python
Code
656
1,996
import streamlit as st import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import plotly.express as px import os from datetime import datetime from fbprophet import Prophet from fbprophet.plot import plot_plotly, plot_components_plotly import pickle st.set_page_config(layout="wide") # or "c...
7,253
https://github.com/Seviran/Python_3/blob/master/Oefeningen/standalone/interleave.py
Github Open Source
Open Source
MIT
null
Python_3
Seviran
Python
Code
16
75
def interleave(str1, str2): return "".join("".join(item) for item in (zip(str1, str2))) print(interleave("hi", "ha")) print(interleave("aaa", "zzz")) print(interleave("lzr", "iad"))
20,462
https://github.com/JiangZongKang/AG-ResU-Net/blob/master/model.py
Github Open Source
Open Source
MIT
null
AG-ResU-Net
JiangZongKang
Python
Code
349
1,482
import numpy as np from keras.models import Model,load_model from keras.layers.advanced_activations import PReLU from keras.layers.convolutional import Conv2D, MaxPooling2D from keras.layers import Dropout,GaussianNoise, Input,Activation from keras.layers.normalization import BatchNormalization from keras.layers impor...
3,672
https://github.com/ScalablyTyped/SlinkyTyped/blob/master/g/googleapis/src/main/scala/typingsSlinky/googleapis/v2beta2Mod/cloudtasksV2beta2/SchemaLeaseTasksResponse.scala
Github Open Source
Open Source
MIT
2,021
SlinkyTyped
ScalablyTyped
Scala
Code
98
371
package typingsSlinky.googleapis.v2beta2Mod.cloudtasksV2beta2 import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} /** * Response message for leasing tasks using LeaseTasks. */ ...
20,317
https://github.com/paxport/travel-lookup/blob/master/src/main/java/com/paxport/lookup/airline/AirlineCodes.java
Github Open Source
Open Source
MIT
null
travel-lookup
paxport
Java
Code
64
259
package com.paxport.lookup.airline; import java.util.HashMap; import java.util.Map; import java.util.Optional; public class AirlineCodes { private final static Map<String,String> CODE_TO_NAME = buildMap(); public static Optional<String> airlineName(String code){ return Optional.ofNullable(CODE_TO_NA...
8,650
https://github.com/rsau/drupal-admin-ui/blob/master/packages/admin-ui/src/utils/api/schema.test.js
Github Open Source
Open Source
MIT
2,022
drupal-admin-ui
rsau
JavaScript
Code
210
596
import { createEntity } from './schema'; it('should return default values.', () => { expect( createEntity({ type: 'number', default: 123, }), ).toEqual(123); expect( createEntity({ type: 'string', default: 'hello world', }), ).toEqual('hello world'); }); it('should fil...
10,884
https://github.com/bill-bil/flutter_getx_template/blob/master/lib/app/modules/home/model/github_project_ui_data.dart
Github Open Source
Open Source
MIT
2,021
flutter_getx_template
bill-bil
Dart
Code
46
149
class GithubProjectUiData { String repositoryName; String ownerLoginName; String ownerAvatar; int numberOfStar; int numberOfFork; String description; double score; int watchers; GithubProjectUiData({ this.repositoryName = "", this.ownerLoginName = "", this.ownerAvatar = "", this.numbe...
1,790
https://github.com/aderumier/p5-Sisimai/blob/master/set-of-emails/maildir/bsd/email-aol-04.eml
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause, GPL-2.0-only
2,019
p5-Sisimai
aderumier
null
Spoken
5,870
26,809
Return-Path: <Postmaster@AOL.com> Received: from mx15.bounceio.net (mx15.bounceio.net [192.237.151.15]) by partner-mce01.mx.@aol.example.com (Partner Internet Inbound) with ESMTP id D07553800008B for <shironeko@example.jp>; Fri, 21 Nov 2014 18:35:53 -0500 (EST) Received: by mx14.bounceio.net id hdv65i0rhk48 for <shir...
43,620
https://github.com/sboosali/commands-hari/blob/master/sources/Hari.hs
Github Open Source
Open Source
BSD-3-Clause
2,019
commands-hari
sboosali
Haskell
Code
9
22
module Hari ( module Hari.Types ) where import Hari.Types
49,243
https://github.com/kudzigeorge/didcomm-python/blob/master/didcomm/core/validation.py
Github Open Source
Open Source
Apache-2.0
2,021
didcomm-python
kudzigeorge
Python
Code
237
915
from authlib.common.encoding import to_bytes, urlsafe_b64decode, to_unicode from didcomm.core.utils import is_did_url, parse_base64url_encoded_json, calculate_apv from didcomm.errors import MalformedMessageError, MalformedMessageCode def validate_jws(msg: dict): if ( "signatures" not in msg or no...
45,372
https://github.com/EmmanuelAsmFun/asmfun/blob/master/Code/Src/Ide/AsmFun.BrowserPages/www/app/features/project/ProjectMethods.ts
Github Open Source
Open Source
LicenseRef-scancode-other-permissive, LicenseRef-scancode-unknown-license-reference
2,021
asmfun
EmmanuelAsmFun
TypeScript
Code
135
435
 import { ICommandManager } from "../../framework/ICommandManager.js"; import { ProjectSaveFolderCommand, ProjectCreateNewCommand, ProjectRequestLoadProgramCommand, ProjectLoadWebCommand, ProjectLoadLocalCommand, ProjectOpenProjectWebsiteCommand, ProjectRequestCreateNewCommand, ProjectOpenManagerCommand, Proj...
17,742
https://github.com/vikram3/toziuha-night-oota/blob/master/toziuha_night_oota_project/objects/ui/CheckBox.gd
Github Open Source
Open Source
MIT
2,021
toziuha-night-oota
vikram3
GDScript
Code
58
249
extends CheckBox var play_sound = true func _ready(): update_text() func focus(click=false): play_sound = false if click: grab_click_focus() else: grab_focus() play_sound = true func set_pressed(opt=false): play_sound = false pressed = opt play_sound = true func update_text(): if pressed: $Label.te...
31,602
https://github.com/czsSuperBig/Yplat/blob/master/WebContent/resource/js/msgTool.js
Github Open Source
Open Source
MIT
2,018
Yplat
czsSuperBig
JavaScript
Code
423
2,199
/** * 封装的请求类 */ function msgTool(url,msgObj){ this._url = url; if(msgObj!=null){ this._msgObj = msgObj; }else{ this._msgObj = new Object(); } } msgTool.prototype = { /** 发送明文请求 **/ sendMsg:function(url,bodyObj,code,sucCallback,failCallback){ var rocket = getCookie("rocket"); var reqJson = { ...
24,343
https://github.com/Sajo8/scaling-out/blob/master/src/combat/lanes/LanesCreator.cs
Github Open Source
Open Source
MIT
2,021
scaling-out
Sajo8
C#
Code
293
825
using Godot; using System.Collections.Generic; public class LanesCreator : Node2D { Dictionary<int, float> yPositionForNumLanes = new Dictionary<int, float>() { {1, 532f}, {2, 327f}, {3, 258f}, {4, 224f}, {5, 203f} }; // exposed because CombatArmyCreator uses it...
8,266
https://github.com/KaceyBolman/ccxt/blob/master/js/theocean.js
Github Open Source
Open Source
MIT
null
ccxt
KaceyBolman
JavaScript
Code
4,275
14,654
'use strict'; const Exchange = require ('./base/Exchange'); const { ExchangeError, AuthenticationError, InvalidOrder, OrderNotFound, NotSupported, OrderImmediatelyFillable, OrderNotFillable } = require ('./base/errors'); const { ROUND } = require ('./base/functions/number'); module.exports = class theocean extends Ex...
20,861
https://github.com/vsoch/lookout/blob/master/update/uptodate.go
Github Open Source
Open Source
Apache-2.0
null
lookout
vsoch
Go
Code
30
78
package update import ( "github.com/DataDrake/cuppa/version" ) // UpToDate returns a boolean to describe is the application is up-to-date. func UpToDate(a version.Version, b version.Version) bool { return a.Compare(b) >= 0 }
50,466
https://github.com/beenhero/oncity/blob/master/config/initializers/haml.rb
Github Open Source
Open Source
MIT
2,016
oncity
beenhero
Ruby
Code
4
16
Haml.init_rails(binding) if defined? Haml
52,183
https://github.com/alistairshaw/ambitiousmail-relay/blob/master/app/AmbitiousMailSender/Base/Services/WebHookReceiver/AbstractWebHookReceiver.php
Github Open Source
Open Source
MIT
null
ambitiousmail-relay
alistairshaw
PHP
Code
8
34
<?php namespace App\AmbitiousMailSender\Base\Services\WebHookReceiver; abstract class AbstractWebHookReceiver { }
47,584
https://github.com/brunoczim/lockfree/blob/master/src/channel/spmc.rs
Github Open Source
Open Source
MIT
2,021
lockfree
brunoczim
Rust
Code
1,642
3,812
pub use super::{ NoRecv, RecvErr::{self, *}, }; use incin::Pause; use owned_alloc::OwnedAlloc; use ptr::{bypass_null, check_null_align}; use removable::Removable; use std::{ fmt, ptr::{null_mut, NonNull}, sync::{ atomic::{AtomicPtr, Ordering::*}, Arc, }, }; /// Creates an asynch...
15,528
https://github.com/vlajnaya-mol/FreelanceTelegramBot/blob/master/gmail_controller.py
Github Open Source
Open Source
MIT
null
FreelanceTelegramBot
vlajnaya-mol
Python
Code
314
1,317
import email import base64 import datetime import re import html2text import database_controller as dc import auth_controller as ac from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from dateutil.relativedelta import relativedelta from misc import SERVICE_NAME, log_line def organize_...
30,664
https://github.com/googleinterns/major-tom/blob/master/services/search/testing/test_constants.py
Github Open Source
Open Source
Apache-2.0
2,020
major-tom
googleinterns
Python
Code
207
737
KEYWORDS_DB_MOCK_1 = {"forzoso": {}, "bicicleta": {1: {"weight": 1}}, "usar": {}, "casco": {1: {"weight": 1}}, "obligatorio": {}, "inexcusable": {}, "imprescindible": {}, "preciso": {}, "necesario": {}, "bici": {}, "velocipedo": {}, "tandem": {}, ...
5,673
https://github.com/bugjc/quick-ea/blob/master/ea-server-layer/template-server/src/main/java/springboot/maven/template/service/impl/UserServiceImpl.java
Github Open Source
Open Source
MIT
null
quick-ea
bugjc
Java
Code
95
571
package springboot.maven.template.service.impl; import cn.hutool.core.util.RandomUtil; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import springboot.maven.template.core.enums.UserLoginFailCode; import springboot.maven.template.event.UserLoginSuccessfulEvent; import springboot.maven.template.mapper.UserMapp...
37,783
https://github.com/Pornpunnarai/ecup/blob/master/connect-mysql.php
Github Open Source
Open Source
MIT
null
ecup
Pornpunnarai
PHP
Code
20
99
<?php $serverName = "localhost"; $username = "root"; $password = ""; $dbName = "ecup"; $objCon = mysqli_connect($serverName,$username,$password,$dbName); mysqli_set_charset($objCon,"utf8"); define('SITE_URL', 'http://www.e-cup.ml/osmpoll/register/'); ?>
28,703
https://github.com/clilystudio/NetBook/blob/master/smali/butterknife/internal/ViewBinding.smali
Github Open Source
Open Source
Unlicense
2,018
NetBook
clilystudio
Smali
Code
165
770
.class final Lbutterknife/internal/ViewBinding; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Lbutterknife/internal/Binding; # instance fields .field private final name:Ljava/lang/String; .field private final required:Z .field private final type:Ljava/lang/String; # direct methods .meth...
24,429
https://github.com/WilliamLopez-Gudiel/Woosh-App/blob/master/workoutApp/Controller/register.swift
Github Open Source
Open Source
Apache-2.0
2,020
Woosh-App
WilliamLopez-Gudiel
Swift
Code
87
242
// // register.swift // workoutApp // // Created by William Gudiel on 8/16/20. // Copyright © 2020 William. All rights reserved. // import UIKit import Firebase class register: UIViewController { @IBOutlet weak var userEmail: UITextField! @IBOutlet weak var userPassword: UITextField! ov...
32,455
https://github.com/dmfabritius/cpp_sfml_example_games/blob/master/FamTrinli_Asteroids/src/main.cpp
Github Open Source
Open Source
MIT
2,019
cpp_sfml_example_games
dmfabritius
C++
Code
37
114
#include "pch.h" #include "Game.h" // base on the video "Let's make 16 games in C++: Asteroids" by FamTrinli // https://www.youtube.com/watch?v=rWaSo2usU4A // int main() { srand((unsigned int)time(0)); // seed random number generator Game game; game.run(); return EXIT_SUCCESS; }
46,626
https://github.com/stas-vilchik/bdd-ml/blob/master/data/8976.js
Github Open Source
Open Source
MIT
null
bdd-ml
stas-vilchik
JavaScript
Code
14
29
{ return el.for !== undefined || el.tag === "template" || el.tag === "slot"; }
13,201