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/NightOfTwelve/iOS-Cracked-Apps/blob/master/DumpedClasses/Taobao/YWFetchedResultsController.h
Github Open Source
Open Source
MIT
2,018
iOS-Cracked-Apps
NightOfTwelve
Objective-C
Code
361
1,737
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "NSObject.h" #import "NSFetchedResultsControllerDelegate.h" #import "YWDBFadeArrayDataSource.h" @class NSArray, NSDictionary, NSFetchedResultsController, NSMutableArray, N...
45,046
https://github.com/SeguraChain/SeguraChain/blob/master/SeguraChain-Lib/Blockchain/Setting/BlockchainSetting.cs
Github Open Source
Open Source
MIT
null
SeguraChain
SeguraChain
C#
Code
1,628
4,011
using System.Collections.Generic; using System.Numerics; using SeguraChain_Lib.Blockchain.Mining.Object; using SeguraChain_Lib.Blockchain.Setting.Function; using SeguraChain_Lib.Blockchain.Sovereign.Database; using SeguraChain_Lib.Utility; namespace SeguraChain_Lib.Blockchain.Setting { /// <summary> /// Note 1...
15,320
https://github.com/craigdavies/vrm-assign-online/blob/master/acceptance-tests/src/test/scala/pages/PaymentPreventBackPageSteps.scala
Github Open Source
Open Source
MIT
2,015
vrm-assign-online
craigdavies
Scala
Code
46
201
package pages import cucumber.api.scala.EN import cucumber.api.scala.ScalaDsl import org.scalatest.Matchers import org.scalatest.concurrent.Eventually.PatienceConfig import org.scalatest.concurrent.Eventually.eventually import org.scalatest.selenium.WebBrowser._ import pages.vrm_assign.PaymentPreventBackPage.address i...
46,935
https://github.com/johnpoth/camel-spring-boot/blob/master/components-starter/camel-avro-starter/src/test/java/org/apache/camel/dataformat/avro/springboot/test/AvroMarshalAndUnmarshallXmlTest.java
Github Open Source
Open Source
Apache-2.0
2,022
camel-spring-boot
johnpoth
Java
Code
309
1,107
/* * 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 ...
34,523
https://github.com/keesvv/deno-hello-world/blob/master/src/middleware/ErrorHandler.ts
Github Open Source
Open Source
MIT
2,020
deno-hello-world
keesvv
TypeScript
Code
34
86
import { oak } from '../../deps.ts'; export async function ErrorHandler( context: oak.Context, next: () => Promise<void> ) { try { await next(); } catch (error) { context.response.status = error.status; context.response.body = error.message; } }
25,330
https://github.com/tburnett80/parishRegistrationForm/blob/master/ParishForms/ParishForms/ClientApp/app/components/auth/login.component.ts
Github Open Source
Open Source
MIT
null
parishRegistrationForm
tburnett80
TypeScript
Code
99
396
import { Component, OnInit, NgZone } from '@angular/core'; import { AdalService } from 'adal-angular4'; import { Router } from '@angular/router'; @Component({ selector: 'welcome', template: ` <div *ngIf="!IsAuthenticated" class="heading">Please login</div> <button *ngIf="!IsAuthenticated" class="btn b...
38,218
https://github.com/hurricanerix/Unity3D/blob/master/Effects/ColorBlindness/ColorBlindness.shader
Github Open Source
Open Source
Apache-2.0
null
Unity3D
hurricanerix
GLSL
Code
249
595
Shader "Hidden/ColorBlindness" { // Copyright 2016 Richard Hawkins // // 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 // // Unles...
1,431
https://github.com/hashanchamikara/AzuraCast/blob/master/src/Message/AddNewMediaMessage.php
Github Open Source
Open Source
Apache-2.0
2,021
AzuraCast
hashanchamikara
PHP
Code
50
119
<?php namespace App\Message; use App\MessageQueue\QueueManager; class AddNewMediaMessage extends AbstractUniqueMessage { /** @var int The numeric identifier for the StorageLocation entity. */ public int $storage_location_id; /** @var string The relative path for the media file to be processed. */ pu...
34,189
https://github.com/IntelliTect/EssentialCSharp/blob/master/src/Chapter09.Tests/Listing09.16.OverridingToString.Tests.cs
Github Open Source
Open Source
MIT
2,023
EssentialCSharp
IntelliTect
C#
Code
70
237
namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_16.Tests; using AddisonWesley.Michaelis.EssentialCSharp.Chapter09.Listing09_16; [TestClass] public class OverridingToStringTest { [TestMethod] public void Override_ToString_MatchesExpectedValue() { Angle angle1 = new(120, 20, ...
11,242
https://github.com/egoist/yurei/blob/master/src/js/app.js
Github Open Source
Open Source
MIT
null
yurei
egoist
JavaScript
Code
241
713
var $ = document.getElementById.bind(document); var $$ = document.querySelectorAll.bind(document); function render(tpl, data) { var html = $(tpl + '-template').innerHTML; var template = Handlebars.compile(html); var compiled = template(data); return compiled; }; function fetchList(opt, cb) { var page = opt....
11,792
https://github.com/alice-biometrics/petisco-task-manager/blob/master/taskmanager/src/modules/events/infrastructure/persistence/models/event_model.py
Github Open Source
Open Source
MIT
2,020
petisco-task-manager
alice-biometrics
Python
Code
36
118
from petisco.persistence.persistence import Persistence from sqlalchemy import Column, Integer, String, JSON Base = Persistence.get_base("taskmanager") class EventModel(Base): __tablename__ = "Event" id = Column("id", Integer, primary_key=True) event_id = Column("event_id", String(36)) type = Colum...
16,868
https://github.com/samuel-dudik/StoneWork/blob/master/vpp/abx/vpp2101/abx/abx_if_attach.c
Github Open Source
Open Source
Apache-2.0
2,022
StoneWork
samuel-dudik
C
Code
1,152
4,323
/* * Copyright (c) 2019 PANTHEON.tech s.r.o. * 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...
27,421
https://github.com/Henkoglobin/Plot3D.Mobile/blob/master/StandardLibrary/PatternHelpers/StrategyComparer.cs
Github Open Source
Open Source
Unlicense
2,021
Plot3D.Mobile
Henkoglobin
C#
Code
73
231
using System; using System.Collections.Generic; namespace StandardLibrary.PatternHelpers { public class StrategyComparer<T> : IEqualityComparer<T> { private readonly Func<T, T, bool> compare; private readonly Func<T, int> getHashCode; public bool Equals(T x, T y) { ...
11,507
https://github.com/smartcommunitylab/sco.infanziadigitales/blob/master/ungiorno-console/src/app/Classes/service.ts
Github Open Source
Open Source
Apache-2.0
null
sco.infanziadigitales
smartcommunitylab
TypeScript
Code
49
138
import { Kid } from './kid'; import { Time } from "./time"; export class Service { servizio: string; fasce: Time[]; kids : string[]; normale :boolean; constructor(name:string, fasce: Time[], kids?:string[], normale?:boolean) { this.servizio = name.charAt(0).toUpperCase() + name.slice(1); ...
15,329
https://github.com/joaoseidel/message/blob/master/src/main/java/io/joaoseidel/message/domain/MessageType.java
Github Open Source
Open Source
MIT
null
message
joaoseidel
Java
Code
11
44
package io.joaoseidel.message.domain; public enum MessageType { EMAIL, SMS, PUSH, WHATSAPP }
49,070
https://github.com/roadhouse-dev/LocalDownloadManager/blob/master/library/src/androidTest/java/au/com/roadhouse/localdownloadmanager/PersistentQueueTest.java
Github Open Source
Open Source
Apache-2.0
null
LocalDownloadManager
roadhouse-dev
Java
Code
326
1,564
package au.com.roadhouse.localdownloadmanager; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import java.io.File; import static junit.framework.Assert.assertEquals; import static junit.framework.Assert.a...
28,099
https://github.com/Unni34/blueprints/blob/master/src/test/java/com/arangodb/blueprints/client/test/SimpleVertexTest.java
Github Open Source
Open Source
Apache-2.0
null
blueprints
Unni34
Java
Code
347
1,767
package com.arangodb.blueprints.client.test; import java.util.HashMap; import java.util.Map; import java.util.Vector; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import com.arangodb.ArangoException; import com.arangodb.ErrorNums; import com.arangodb.blueprints.client.ArangoDBException; i...
35,137
https://github.com/Cyecize/Can-Sealers-Bulgaria/blob/master/templates/default/question-details.html.twig
Github Open Source
Open Source
MIT
2,020
Can-Sealers-Bulgaria
Cyecize
Twig
Code
119
424
{# @var dict \App\Service\Lang\ILanguagePack #} {# @var question \App\Entity\Question #} {% extends 'base.html.twig' %} {% block title %}{{ dict.websiteName }} - Въпрос{% endblock %} {% block body %} <div class="container rounded bg-container mt-container pb-container"> <h3>Въпрос от {{ question.fullName }}...
48,764
https://github.com/githubsaturn/covid19-spread-simulator/blob/master/src/utils/Logger.ts
Github Open Source
Open Source
MIT
2,021
covid19-spread-simulator
githubsaturn
TypeScript
Code
30
98
export default class Logger { static log(s: string) { console.log(s) } static error(s: any) { console.log(s) } static dev(s: string) { if (process.env.REACT_APP_IS_DEBUG) { console.log('>>> ', s) } } }
921
https://github.com/Zenterio/opensourcelib/blob/master/citools/seed/src/main/groovy/com/zenterio/jenkins/configuration/Watcher.groovy
Github Open Source
Open Source
Apache-2.0
2,021
opensourcelib
Zenterio
Groovy
Code
50
190
package com.zenterio.jenkins.configuration import groovy.transform.AutoClone import groovy.transform.Canonical import groovy.transform.EqualsAndHashCode @Canonical @EqualsAndHashCode(callSuper=true, includeFields=true) @AutoClone class Watcher extends ContactInformation { public Watcher(String name, String email...
24,737
https://github.com/talsewell/cerberus/blob/master/tools/colours.sh
Github Open Source
Open Source
BSD-2-Clause
2,022
cerberus
talsewell
Shell
Code
60
198
#!/bin/bash if [[ "$OSTYPE" == "linux-gnu" ]]; then $@ else if [ "$1" = "lem" ]; then ($@) 2>&1 | sed -E -e "s,^ Warning.*,$(tput setaf 3)&$(tput sgr 0)," -e "s,^ (Error|Type error).*,$(tput setaf 1)&$(tput sgr 0),"; exit ${PIPESTATUS[0]} else ($@) | sed -E -e "s,^Warning.*,$(tput setaf 3)&$(tput s...
30,495
https://github.com/hmoralesluis/netviral-2016-11-16/blob/master/src/App/AdminBundle/Resources/views/Product/audio_ebook.html.twig
Github Open Source
Open Source
MIT
2,020
netviral-2016-11-16
hmoralesluis
Twig
Code
424
1,773
{% extends 'AdminBundle::layout.html.twig' %} {% block title %}Main Infuence{% endblock %} {% block stylesheets %} <link href="{{ asset('bundles/admin/css/pages/search.css') }}" rel="stylesheet" type="text/css"/> <link rel="stylesheet" href="{{ asset('bundles/admin/plugins/data-tables/DT_bootstrap.css') }}"/>...
10,343
https://github.com/Mehdi-Hamida/site-vitrine-3.0/blob/master/js/languages-animation-dynamic-text-typing.js
Github Open Source
Open Source
MIT
null
site-vitrine-3.0
Mehdi-Hamida
JavaScript
Code
250
664
//SCRIPT ANIMATION DYNAMIC TEXT TYPING - LANGUES PARLEES ... // List of sentences var _LANGUAGE_CONTENT2 = [ "Je parle Français", "I speak English", "Hablo Español" ]; // Current sentence being processed var _PART2 = 0; ...
19,937
https://github.com/skylarkui/skylark-totaljs-components/blob/master/.original/j-Loading/component.js
Github Open Source
Open Source
MIT
null
skylark-totaljs-components
skylarkui
JavaScript
Code
44
182
COMPONENT('loading', function(self) { var pointer; self.readonly(); self.singleton(); self.nocompile && self.nocompile(); self.make = function() { self.aclass('ui-loading'); self.append('<div></div>'); }; self.show = function() { clearTimeout(pointer); self.rclass('hidden'); return self; }; self...
29,909
https://github.com/ojmakhura/andromda/blob/master/andromda-documentation/samples/timetracker-ejb3/core/src/main/java/org/andromda/timetracker/service/UserServiceBean.java
Github Open Source
Open Source
BSD-3-Clause, Apache-1.1, Apache-2.0, LicenseRef-scancode-public-domain
2,022
andromda
ojmakhura
Java
Code
244
786
// license-header java merge-point // // Generated by SessionBeanImpl.vsl in andromda-ejb3-cartridge on 08/05/2014 14:24:56. // Modify as necessary. If deleted it will be regenerated. // package org.andromda.timetracker.service; import java.util.Collection; import org.andromda.timetracker.domain.User; import org.andro...
1,880
https://github.com/nesto-software/moment-holiday/blob/master/packages/database-mongoose/src/schemas/recurring-date.schema.ts
Github Open Source
Open Source
MIT
2,023
moment-holiday
nesto-software
TypeScript
Code
61
178
import { RecurringDate } from "@nesto-software/moment-holiday-core"; import { Schema } from "mongoose"; import { dateDiscriminatorKey } from "./abstract-date.schema"; const recurringDateSchema = new Schema( { day: { type: Number, required: true, }, month: { ...
19,234
https://github.com/joaomvg/joaomvg.github.io/blob/master/.gitignore
Github Open Source
Open Source
2,022
joaomvg.github.io
joaomvg
Ignore List
Code
4
29
.vscode/ .jekyll-cache/ _site/cloud-computing/* _site/images/
11,627
https://github.com/adrtod/adrtod.github.io/blob/master/_bibtex.r
Github Open Source
Open Source
CC0-1.0
null
adrtod.github.io
adrtod
R
Code
77
288
library(bibtex) library(purrr) library(tools) library(yaml) bib <- read.bib("files/todeschini.bib") %>% unclass() compact_person <- function(x) { x %>% unclass() %>% map(compact) # remove empty fields } str_latex <- function(x) { x %>% parseLatex() %>% latexToUtf8() %>% deparseLatex(d...
7,531
https://github.com/pgalias/zephyrus/blob/master/src/components/templates/team/minimalisticCards.tsx
Github Open Source
Open Source
MIT
null
zephyrus
pgalias
TypeScript
Code
134
456
import React, { FC, useState } from 'react'; import { getRandomEmployee, RandomSmallAvatar } from './utils'; const TeamMember: FC = () => { const [employee] = useState(getRandomEmployee()); return ( <article className="flex flex-wrap p-2 border-2 border-gray-200 dark:border-blue-200 rounded-lg"> <div cl...
23,506
https://github.com/amuramoto/realm-objc/blob/master/examples/swift/RealmSwiftSimpleExample/RealmSwiftSimpleExample/Objects.h
Github Open Source
Open Source
Apache-2.0
2,014
realm-objc
amuramoto
Objective-C
Code
136
261
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm 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/li...
40,309
https://github.com/silvanperego/LogTracker/blob/master/logtracker/src/main/java/org/sper/logtracker/data/AbstractDataListener.java
Github Open Source
Open Source
Apache-2.0
2,020
LogTracker
silvanperego
Java
Code
76
264
package org.sper.logtracker.data; import java.util.ArrayList; import java.util.List; public abstract class AbstractDataListener<RECEIVE,SEND> implements DataListener<RECEIVE> { private List<DataListener<SEND>> listenerList = new ArrayList<DataListener<SEND>>(); public void addListener(DataListener<SEND> listene...
47,800
https://github.com/duanzengxin/shujuku-----123/blob/master/酒店餐饮服务管理系统/Service/IFrontDeskCallBack.cs
Github Open Source
Open Source
Apache-2.0
2,019
shujuku-----123
duanzengxin
C#
Code
48
199
using System; using System.Collections.Generic; using System.Linq; using System.Text; using HCSMS.Model; using HCSMS.Model.Application; using System.ServiceModel; namespace HCSMS.Service { [ServiceContract] public interface IFrontDeskCallBack { [OperationContract] void ServeItem(List<Requ...
25,778
https://github.com/golevi/chia-blockchain/blob/master/chia/types/coin_record.go
Github Open Source
Open Source
MIT
2,021
chia-blockchain
golevi
Go
Code
86
293
// https://github.com/Chia-Network/chia-blockchain/blob/main/chia/types/coin_record.py package types import "github.com/golevi/chia-blockchain/chia/types/blockchain" // CoinRecord are values that correspond to a CoinName that are used // in keeping track of the unspent database. // // coin: Coin // confirmed_blo...
47,789
https://github.com/nnneznaika/psd2/blob/master/src/Psd2/Gateway/AbstractBankGateway.php
Github Open Source
Open Source
MIT
2,017
psd2
nnneznaika
PHP
Code
251
869
<?php namespace OakLabs\Psd2\Gateway; use GuzzleHttp\Client as GuzzleHttp; use GuzzleHttp\ClientInterface as GuzzleInterface; use League\OAuth2\Client\Token\AccessToken; use OakLabs\Psd2\Authorization\AuthorizationInterface; abstract class AbstractBankGateway { protected const API_ACCESS_TOKEN = ''; protecte...
24,240
https://github.com/lexmartinez/eatery/blob/master/src/components/Modal/BaseModal/style.ts
Github Open Source
Open Source
MIT
2,019
eatery
lexmartinez
TypeScript
Code
138
425
import { StyleSheet } from 'react-native'; import { Colors, Fonts } from '../../../config/Constant'; import { getResponsiveStyle, Platform } from '../../../config/Utilities'; const titleSize = Platform.select({ ios: 45, android: 50 }) const textSize = Platform.select({ ios: 14, android: 18 }) export default StyleShee...
17,224
https://github.com/krgamestudios/Dungeon/blob/master/scr/underdirk.lua
Github Open Source
Open Source
Zlib
2,017
Dungeon
krgamestudios
Lua
Code
1,654
4,921
--[[ /* Copyright: (c) Kayne Ruse 2016 * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * including com...
30,854
https://github.com/zrrrzzt/echo-micro/blob/master/index.js
Github Open Source
Open Source
MIT
null
echo-micro
zrrrzzt
JavaScript
Code
68
207
'use strict' const readFileSync = require('fs').readFileSync const md = require('markdown-it')() const { parse } = require('url') const { json, send } = require('micro') module.exports = async (request, response) => { response.setHeader('Access-Control-Allow-Origin', '*') response.setHeader('Access-Control-Allow-...
44,994
https://github.com/sandysuarezjimenez/HolandaCatalinaFw/blob/master/src/main/java/org/hcjf/io/net/http/layered/LayeredResponse.java
Github Open Source
Open Source
Apache-2.0
2,022
HolandaCatalinaFw
sandysuarezjimenez
Java
Code
58
151
package org.hcjf.io.net.http.layered; import org.hcjf.io.net.http.HttpResponse; /** * Response package for the layered contexts. * @author javaito */ public class LayeredResponse extends HttpResponse { private final Object layerResponse; public LayeredResponse(Object layerResponse) { this.layerRe...
11,055
https://github.com/yznima/Slapdash-Android/blob/master/SlapDash/app/src/main/java/com/virginiatech/slapdash/slapdash/SQLDatabaseService/SlapDashSQLHelper.java
Github Open Source
Open Source
MIT
2,017
Slapdash-Android
yznima
Java
Code
84
253
package com.virginiatech.slapdash.slapdash.SQLDatabaseService; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; /** * Created by nima on 10/19/16. * TODO: actually use this and complete implementation */ public class SlapDashSQLHelper ...
452
https://github.com/arata-nvm/lutrix/blob/master/src/smt/bit_blaster.rs
Github Open Source
Open Source
MIT
null
lutrix
arata-nvm
Rust
Code
937
3,530
use crate::{sat::types::*, smt::ast::*, smt::tseytin}; use super::{bit_vector::BitVector, solver::Solver}; impl Solver { pub(crate) fn transform(&mut self, expr: Expression) -> BitVector { match expr { Expression::Constant(var, length) => self.constant(var, length), Expression::Var...
12,115
https://github.com/apache/syncope/blob/master/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/propagation/AbstractPropagationTaskExecutor.java
Github Open Source
Open Source
Apache-2.0
2,023
syncope
apache
Java
Code
2,315
9,028
/* * 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 ...
15,806
https://github.com/heliosRX/heliosRX/blob/master/build/release.sh
Github Open Source
Open Source
MIT
2,022
heliosRX
heliosRX
Shell
Code
135
311
#!/usr/bin/env bash set -e echo "Enter heliosRX release version: " read VERSION read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r echo if [[ $REPLY =~ ^[Yy]$ ]] then echo "Releasing $VERSION ..." # run tests npm test 2>/dev/null # build VERSION=$VERSION npm run build # check if there is uncomm...
25,377
https://github.com/Jaypatel33/Introduction-to-Programming-with-MATLAB/blob/master/Homework_08/maxsubsum.m
Github Open Source
Open Source
MIT
2,015
Introduction-to-Programming-with-MATLAB
Jaypatel33
MATLAB
Code
66
207
function [row,col,numrows,numcols,summa] = maxsubsum(A) [n,m] = size (A); summa = A(1,1); row = 1; col = 1; numrows = 1; numcols = 1; for i = 1:1:n for j = 1:1:m for k = 1:1:n for l = 1:1:m s...
30,307
https://github.com/dickster/DD/blob/master/src/client/app/config/row.config.ts
Github Open Source
Open Source
MIT
null
DD
dickster
TypeScript
Code
10
33
import {WidgetConfig} from "./widget.config"; export class RowConfig { widgets:WidgetConfig<any>[]; }
33,580
https://github.com/grusso14/eprot/blob/master/src/it/finsiel/siged/mvc/presentation/action/report/ReportAssegnatiAction.java
Github Open Source
Open Source
Apache-2.0
null
eprot
grusso14
Java
Code
615
3,212
package it.finsiel.siged.mvc.presentation.action.report; import it.finsiel.siged.constant.Constants; import it.finsiel.siged.constant.FileConstants; import it.finsiel.siged.constant.Parametri; import it.finsiel.siged.model.organizzazione.Utente; import it.finsiel.siged.mvc.bo.AlberoUfficiBO; import it.finsiel.siged.mv...
20,761
https://github.com/dahlia-os/fuchsia-pine64-pinephone/blob/master/src/connectivity/weave/adaptation/configuration_manager_delegate_impl.cpp
Github Open Source
Open Source
BSD-3-Clause
2,022
fuchsia-pine64-pinephone
dahlia-os
C++
Code
1,174
4,503
// Copyright 2020 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // clang-format off #include <Weave/DeviceLayer/internal/WeaveDeviceLayerInternal.h> #include <Weave/DeviceLayer/internal/GenericConfigurationManagerImpl.i...
49,692
https://github.com/andreaskuster/dace/blob/master/dace/codegen/targets/rtl.py
Github Open Source
Open Source
BSD-3-Clause, LicenseRef-scancode-unknown-license-reference
2,021
dace
andreaskuster
Python
Code
1,733
6,473
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import itertools from typing import List, Tuple, Dict from dace import dtypes, config, registry, symbolic, nodes, sdfg from dace.sdfg import graph, state, find_input_arraynode, find_output_arraynode from dace.codegen import codeobject, dispa...
15,010
https://github.com/flyfire/Programming-Notes-Code/blob/master/Python/Python3-Base/13_Network/Server/CoroutinesServer.py
Github Open Source
Open Source
Apache-2.0
2,019
Programming-Notes-Code
flyfire
Python
Code
50
209
######################### # 协程非阻塞服务器 ######################### import gevent from gevent import socket, monkey # 如果有IO操作,需要调用此函数 monkey.patch_all() def handle_request(conn): while True: data = conn.recv(1024) if not data: conn.close() break print("receive:", da...
7,940
https://github.com/dlang/dub/blob/master/test/test_registry.d
Github Open Source
Open Source
MIT
2,023
dub
dlang
D
Code
208
642
#!/usr/bin/env dub /+dub.sdl: dependency "vibe-d:http" version="~>0.9" versions "VibeNoSSL" +/ import std.array; import vibe.core.args; import vibe.core.core; import vibe.core.path; import vibe.http.fileserver; import vibe.http.router; import vibe.http.server; /* Provide a special API File Handler as Vibe.d's builtin...
19,477
https://github.com/pleuvoir/spring-framework-1.2.9/blob/master/src/org/springframework/context/event/SimpleApplicationEventMulticaster.java
Github Open Source
Open Source
Apache-2.0
null
spring-framework-1.2.9
pleuvoir
Java
Code
232
434
/* * Copyright 2002-2005 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
16,235
https://github.com/alicesilva/Projeto-Si1/blob/master/disque-saude-frontend-master/app/core/controller/gerenciaQueixasController.js
Github Open Source
Open Source
MIT
2,017
Projeto-Si1
alicesilva
JavaScript
Code
74
316
app.controller("gerenciaQueixasController", function ($scope, queixaService, $location, toastr) { $scope.queixas = ""; var getQueixas = function () { queixaService.getQueixas() .then(function success(response) { $scope.queixas = response.data; console.log(resp...
13,575
https://github.com/CSCfi/pouta-ansible-cuda-demo/blob/master/.gitignore
Github Open Source
Open Source
MIT
2,017
pouta-ansible-cuda-demo
CSCfi
Ignore List
Code
4
15
hosts inventory roles/ ssh.config
12,703
https://github.com/just-drive/Tama/blob/master/Tama/Plugins/tama_drawer/tamaframe.py
Github Open Source
Open Source
BSD-3-Clause
2,021
Tama
just-drive
Python
Code
1,966
6,620
from win32ctypes.pywin32 import win32api import win32.lib.win32con as win32con import win32.win32gui as win32gui from wx.lib.delayedresult import startWorker import PIL import wx import wx.aui as aui import wx.adv as adv import wx.lib.newevent import os import threading import datetime import random import mouse from s...
18,333
https://github.com/fahad0001/talkfood/blob/master/app/Item.php
Github Open Source
Open Source
MIT
null
talkfood
fahad0001
PHP
Code
32
129
<?php namespace App; use Illuminate\Database\Eloquent\Model; class Item extends Model { protected $fillable = [ 'itemid', 'order_id','item_name','item_price','item_qty','subitem_id' ]; // protected $table = 'item_table'; public $timestamps=false; public function subItem(){ ...
34,884
https://github.com/IliyanIlievPH/MAVN.Service.AdminAPI/blob/master/src/MAVN.Service.AdminAPI.DomainServices/ImageService.cs
Github Open Source
Open Source
MIT
2,020
MAVN.Service.AdminAPI
IliyanIlievPH
C#
Code
266
931
using System; using System.Linq; using Common.Log; using Lykke.Common.Log; using MAVN.Service.AdminAPI.Domain.Services; using Microsoft.AspNetCore.Http; using SixLabors.ImageSharp; using SixLabors.ImageSharp.Formats.Jpeg; using SixLabors.ImageSharp.Processing; using SixLabors.Primitives; namespace MAVN.Service.AdminA...
16,495
https://github.com/svaz/gonftyourself/blob/master/src/utils/Wallet.js
Github Open Source
Open Source
MIT
2,021
gonftyourself
svaz
JavaScript
Code
162
585
import * as Web3 from 'web3' import { web3Provider } from './constants' export async function getERC20TokenBalance(tokenAddress) { const web3 = new Web3(web3Provider); let account = await web3.eth.getAccounts(); // The minimum ABI to get ERC20 Token balance let walletAddress = account[0]; l...
35,164
https://github.com/bis83/pomdog/blob/master/include/Pomdog/Pomdog.hpp
Github Open Source
Open Source
MIT
null
pomdog
bis83
C++
Code
267
1,572
// Copyright (c) 2013-2015 mogemimi. // Distributed under the MIT license. See LICENSE.md file for details. #ifndef POMDOG_89D6FE57_7B46_4032_92AE_EA4D52643E23_HPP #define POMDOG_89D6FE57_7B46_4032_92AE_EA4D52643E23_HPP #include "Application/Duration.hpp" #include "Application/Game.hpp" #include "Application/GameCloc...
38,889
https://github.com/ken1ma/jna-tlb-access-2010/blob/master/office/src/main/java/jp/kenichi/jna/tlb/office/IMsoSeries.java
Github Open Source
Open Source
MIT
2,018
jna-tlb-access-2010
ken1ma
Java
Code
2,157
10,178
package jp.kenichi.jna.tlb.office; import com.sun.jna.platform.win32.COM.util.annotation.ComInterface; import com.sun.jna.platform.win32.COM.util.annotation.ComMethod; import com.sun.jna.platform.win32.COM.util.annotation.ComProperty; import com.sun.jna.platform.win32.COM.util.IDispatch; import com.sun.jna.platform.w...
10,961
https://github.com/ronaldtorres/kirby-navigation/blob/master/src/components/modal/default.vue
Github Open Source
Open Source
MIT
2,021
kirby-navigation
ronaldtorres
Vue
Code
97
512
<template> <k-dialog size="medium" class="k-pages-dialog" v-bind:visible="modal" v-on:cancel="modal_close" v-on:submit="modal_submit"> <slot name="modal_header"> </slot> <slot name="modal_body"> </slot> </k-dialog> </template> <script> export default { props: { modal: Object, }, ...
18,011
https://github.com/appressoas/ievv_opensource/blob/master/ievv_opensource/utils/lazy_string.py
Github Open Source
Open Source
BSD-3-Clause
null
ievv_opensource
appressoas
Python
Code
30
132
class LazyString(object): def __init__(self, formatstring, *args, **kwargs): self.formatstring = formatstring self.args = args self.kwargs = kwargs def __str__(self): return self.formatstring.format(*self.args, **self.kwargs) def __repr__(self): return 'LazyString({...
17,838
https://github.com/midoks/hammer/blob/master/vendor/golang.org/x/tools/go/analysis/passes/cgocall/testdata/src/c/c.go
Github Open Source
Open Source
MIT
2,022
hammer
midoks
Go
Code
68
119
// Copyright 2016 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. // Test the cgo checker on a file that doesn't use cgo. package c import "unsafe" // Passing a pointer (via the slice), but C isn't cgo. var _ = C.f(unsafe.P...
51,022
https://github.com/bragi/ioke/blob/master/src/main/ioke/lang/Mixins.java
Github Open Source
Open Source
MIT
2,016
ioke
bragi
Java
Code
114
517
/* * See LICENSE file in distribution for copyright and licensing information. */ package ioke.lang; import ioke.lang.mixins.Comparing; import ioke.lang.mixins.Enumerable; import ioke.lang.exceptions.ControlFlow; /** * * @author <a href="mailto:ola.bini@gmail.com">Ola Bini</a> */ public class Mixins { publi...
8,324
https://github.com/Gamingpc/platform/blob/master/src/Core/System/Currency/CurrencyCollection.php
Github Open Source
Open Source
MIT, LicenseRef-scancode-generic-cla
2,019
platform
Gamingpc
PHP
Code
55
168
<?php declare(strict_types=1); namespace Shopware\Core\System\Currency; use Shopware\Core\Framework\DataAbstractionLayer\EntityCollection; /** * @method void add(CurrencyEntity $entity) * @method void set(string $key, CurrencyEntity $entity) * @method CurrencyEntity[] getIterator(...
4,813
https://github.com/mehr-licht/OrgaFarma/blob/master/WebAvi/WebAvi/obj/Release/AspnetCompileMerge/TempBuildDir/Views/Home/About.vbhtml
Github Open Source
Open Source
MIT
null
OrgaFarma
mehr-licht
Visual Basic
Code
95
266
@Code ViewData("Title") = "Acerca" End Code <br /> <br /> <h2>WebAvi</h2> <br /> <br /> <h3>aplicação online de apoio à conferência de receituário</h3> <br /> <p> O WebAvi permite que confira o receituário facilmente</p> <br /> <br /> É uma adaptação do software PrescAvi que foi criado em 2009 pela e para a ...
50,132
https://github.com/cantek41/DynamicDashBoard/blob/master/Dynamic/Service/DataService.cs
Github Open Source
Open Source
MIT
2,019
DynamicDashBoard
cantek41
C#
Code
131
395
using Dynamic.Models; using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Web; namespace Dynamic.Service { public class DataService { private static ApplicationDbContext context; private static...
22,438
https://github.com/yasir-sherwani99/customboxes/blob/master/resources/views/admin/pages/admins/index.blade.php
Github Open Source
Open Source
MIT
null
customboxes
yasir-sherwani99
PHP
Code
292
1,394
@extends('admin') @section('style') <script src="{{ asset('admin/app-assets/js/core/libraries/jquery.min.js') }}" ></script> @endsection @section('breadcrums') <div class="content-header-left col-md-9 col-12 mb-2 breadcrumb-new"> <h3 class="content-header-title mb-0 d-inline-block">Administrators</h3> <...
19,370
https://github.com/gmprestes/BeerKeller/blob/master/Sistema/htmlsite/js/site/downloadFile.js
Github Open Source
Open Source
MIT
2,016
BeerKeller
gmprestes
JavaScript
Code
24
73
function downloadFile(requestID, fileUrl) { jQuery('<iframe id="' + requestID + '" src="' + fileUrl + '"></iframe>').appendTo('body').hide(); setTimeout(function () { $('#' + requestID).remove(); }, 30000); }
25,195
https://github.com/hosunrise/URCF-engine/blob/master/rpc/shared/register_param.go
Github Open Source
Open Source
MIT
null
URCF-engine
hosunrise
Go
Code
22
47
package shared type RegisterParam struct { Username string Password string Role []string } type VerifyParam struct { Username string Password string }
14,697
https://github.com/adil2604/alfa/blob/master/components/hero/Hero.vue
Github Open Source
Open Source
MIT
null
alfa
adil2604
Vue
Code
71
325
<template> <div class="container"> <div class="hero-body"> <b-carousel id="carousel-1" :interval="4000" controls indicators background="#ababab" img-width="1024" img-height="480" style="text-shadow: 1px 1px 2px #333;" > <!-- Text ...
11,215
https://github.com/RomanIsko/lviv_bus_bot/blob/master/utils/vehicleTypeConverter.js
Github Open Source
Open Source
MIT
null
lviv_bus_bot
RomanIsko
JavaScript
Code
31
115
const convertVehicleTypeToEmoji = (vehicleType) => { switch (vehicleType) { case 'bus': case 'marshrutka': return '\u{1F68C}' case 'tram': return '\u{1F68B}' case 'trol': return '\u{1F68E}' default: return '' } } module.exports = convertVehicleTypeToEmoji
19,528
https://github.com/Karolyna84/meson/blob/master/mesonbuild/modules/qt.py
Github Open Source
Open Source
Apache-2.0
2,020
meson
Karolyna84
Python
Code
1,034
3,760
# Copyright 2015 The Meson development team # 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 ...
45,947
https://github.com/leventeliu/goproc/blob/master/timeout_chan.go
Github Open Source
Open Source
MIT
2,021
goproc
leventeliu
Go
Code
765
2,399
package goproc import ( "container/heap" "context" "fmt" "sync" "time" ) // Deadliner is the interface implemented by an object that can return a deadline time. type Deadliner interface { Deadline() time.Time } // TimeoutChanStats contains timeout chan statistics returned from TimeoutChan.Stats(). type Timeout...
13,927
https://github.com/tmcclure911/AuraApp/blob/master/src/main/webapp/WEB-INF/components/phoneTest/phoneSender/phoneSenderController.js
Github Open Source
Open Source
MIT
null
AuraApp
tmcclure911
JavaScript
Code
30
152
({ sendPhone : function(component, event, helper) { console.log("Sending phone"); var phoneEvent = $A.get("e.phoneTest:phoneMessage"); phoneEvent.setParams({ "name": "Matt", "date": new Date(), "message": "A tweet!", "imageUrl": "https://www.g...
22,937
https://github.com/PlatiaTeam/authy-client/blob/master/src/bin/commands/application.js
Github Open Source
Open Source
MIT
2,022
authy-client
PlatiaTeam
JavaScript
Code
21
54
/** * Export command definition. */ export default { builder: yargs => yargs.commandDir('application'), command: 'application <command>', describe: 'Manage application information' };
23,192
https://github.com/tjaranowski/Data-Structures/blob/master/src/main/java/pl/nosystems/java/datastructures/state/Full.java
Github Open Source
Open Source
MIT
null
Data-Structures
tjaranowski
Java
Code
19
66
package pl.nosystems.java.datastructures.state; @SuppressWarnings("WeakerAccess") public class Full extends Exception { public Full() {} public Full(Throwable throwable) { super(throwable); } }
23,370
https://github.com/BrecanYT/discord-bot/blob/master/node_modules/free-translate/dist/index.d.ts
Github Open Source
Open Source
MIT
null
discord-bot
BrecanYT
TypeScript
Code
23
51
import { Language } from './types/Language'; export interface Translate { from: Language; to: Language; } export declare function translate(text: string, languages: Translate): Promise<string>;
10,655
https://github.com/caiquetorres/graphql-example-nestjs/blob/master/src/main.ts
Github Open Source
Open Source
MIT
2,021
graphql-example-nestjs
caiquetorres
TypeScript
Code
151
431
import { INestApplication, ValidationPipe } from '@nestjs/common' import { NestFactory } from '@nestjs/core' import { EnvService } from './modules/env/services/env.service' import { AppModule } from './app.module' import { I18nFilter } from './filters/i18n/i18n.filter' import { SentryFilter } from './filters/sentry/s...
46,606
https://github.com/CiscoTestAutomation/genielibs/blob/master/pkgs/sdk-pkg/src/genie/libs/sdk/apis/iosxe/install/execute.py
Github Open Source
Open Source
Apache-2.0
2,023
genielibs
CiscoTestAutomation
Python
Code
3,021
8,516
# Python import logging import re import time # Unicon from unicon.eal.dialogs import Statement, Dialog log = logging.getLogger(__name__) def execute_install_remove_version(device, version=None, timeout=60, connect_timeout = 10): """ Performs install remove for the version provided on the device Args: ...
15,499
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0x7944B4407796014D7D3191960A44478056beed07_WMTDrop/contracts/WMTDrop.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
55
225
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.6.12; import "@openzeppelin/contracts@3.4.0/token/ERC20/IERC20.sol"; contract WMTDrop { mapping(address => bool) public mapped; IERC20 wmtToken; event Mapped(address sender, string cardanoAddress, uint256 amount0); constructor(address...
26,658
https://github.com/intfrr/jail/blob/master/sbin/jctl
Github Open Source
Open Source
BSD-2-Clause, BSD-3-Clause
2,016
jail
intfrr
Python
Code
46
197
#!/usr/bin/python # main program if __name__ == '__main__': from jail import setup from jail import chroot import argparse parser = argparse.ArgumentParser(description='Jail utilities') parser.add_argument('--chroot-update', action='store_true', help='Setup chroot environment') parser.add_argument('--groups-set...
23,905
https://github.com/xavor92/Ardis2Holzma/blob/master/editmatdb.h
Github Open Source
Open Source
MIT
2,021
Ardis2Holzma
xavor92
C
Code
50
173
#ifndef EDITMATDB_H #define EDITMATDB_H #include <QAbstractButton> #include <QDialog> #include <QList> #include "matdb.h" namespace Ui { class EditMatDB; } class EditMatDB : public QDialog { Q_OBJECT public: explicit EditMatDB(QWidget *parent = 0, MatDB *mat_db = 0); ~EditMatDB(); private slots: v...
43,626
https://github.com/NinoMaj/carousel-virtualized/blob/master/tests/components/CarouselVirtualized/CarouselVirtualized.tsx
Github Open Source
Open Source
MIT
2,022
carousel-virtualized
NinoMaj
TypeScript
Code
272
1,076
import * as React from 'react'; import { fireEvent, render } from 'react-testing-library'; import 'react-testing-library/cleanup-after-each'; import { CarouselVirtualized } from '../../../src'; describe('CarouselVirtualized', () => { let slideRenderer; let defaultProps; let onEvent; let onItemsRendered; cl...
36,963
https://github.com/harshanu11/Love-Babbar-450-In-CSharp/blob/master/Love-Babbar-450-In-CPPTest/07_binary_search_trees/02_deletion_of_node_in_BST.cpp
Github Open Source
Open Source
MIT
null
Love-Babbar-450-In-CSharp
harshanu11
C++
Code
222
605
/* link: https://leetcode.com/problems/delete-node-in-a-bst/ video: https://youtu.be/5_AZcOOc-kM */ #include "../06_binary_trees/01_level_order_traversal.cpp" #include "CppUnitTest.h" #include <iostream> #include <algorithm> #include <vector> #include <map> #include <unordered_set> #include <set> #include <un...
17,214
https://github.com/panicDev/KotlinDemo/blob/master/app/src/main/kotlin/id.paniclabs.kotlinmvp/model/PhotoUrls.kt
Github Open Source
Open Source
Apache-2.0
2,017
KotlinDemo
panicDev
Kotlin
Code
49
160
package id.paniclabs.kotlinmvp.model import com.google.gson.annotations.SerializedName /** * @author ali@pergikuliner * @created 5/23/17. * @project BelajarKotlinMVP. */ data class PhotoUrls( @SerializedName("raw") val raw: String? = null, @SerializedName("full") val full: String? = null, ...
39,543
https://github.com/vgerich/Pods/blob/master/AviasalesSDK/Library/AviasalesSDK.framework/Headers/JRSDKPrice.h
Github Open Source
Open Source
MIT
2,019
Pods
vgerich
Objective-C
Code
48
95
// Copyright 2016 Go Travel Un Limited // This code is distributed under the terms and conditions of the MIT license. // @interface JRSDKPrice : JRSDKModelObject /** * Price currency */ @property (nonatomic, strong, nonnull) JRSDKCurrency currency; /** * Price value */ @property (nonatomic, assign) float val...
27,376
https://github.com/mcognetta/federated/blob/master/tensorflow_federated/python/research/utils/checkpoint_utils_test.py
Github Open Source
Open Source
Apache-2.0
null
federated
mcognetta
Python
Code
308
1,133
# Lint as: python3 # Copyright 2019, The TensorFlow Federated 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 ...
21,174
https://github.com/kaliop/kaliop-ez-remoteid-bundle/blob/master/Resources/views/tabs/modal_edit_remote_id.html.twig
Github Open Source
Open Source
MIT
2,020
kaliop-ez-remoteid-bundle
kaliop
Twig
Code
200
1,107
{% form_theme location_form '@ezdesign/content/form_fields.html.twig' %} {% form_theme content_form '@ezdesign/content/form_fields.html.twig' %} <div class="modal fade ez-modal" id="kaliop-remote-id-modal--edit-location" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> {{ form_start(...
44,259
https://github.com/rshekar027/streamalert/blob/master/stream_alert_cli/manage_lambda/rollback.py
Github Open Source
Open Source
Apache-2.0
2,020
streamalert
rshekar027
Python
Code
285
873
""" Copyright 2017-present, Airbnb 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 writing, sof...
27,839
https://github.com/Originate/OriginateUI/blob/master/Pod/Sources/Classes/OriginateValidatedTextField.m
Github Open Source
Open Source
MIT
2,017
OriginateUI
Originate
Objective-C
Code
296
1,196
// // OriginateValidatedTextField.m // OriginateUI // // Created by Allen Wu on 8/13/15. // Copyright (c) 2015 Originate. All rights reserved. // #import "OriginateValidatedTextField.h" @interface OriginateValidatedTextField () <UITextFieldDelegate> @property (nonatomic, assign, readwrite) BOOL valid; @property ...
49,756
https://github.com/hao-wang/Montage/blob/master/js-test-suite/testsuite/056e2298deb94b64a7348cdb1be83413.js
Github Open Source
Open Source
MIT
2,021
Montage
hao-wang
JavaScript
Code
64
175
load("bf4b12814bc95f34eeb130127d8438ab.js"); load("93fae755edd261212639eed30afa2ca4.js"); // Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 10.4.3-1-58gs description: > checking 'this' from a global scope (Injected ge...
18,799
https://github.com/wablair/pic-rtu/blob/master/main.h
Github Open Source
Open Source
0BSD
2,018
pic-rtu
wablair
C
Code
208
640
#ifndef _main_h_ #define _main_h_ #include "adcon.h" #define ASCIIHEX_TO_BIN(X) ((X < 65) ? (X - 48) : (X < 97) ? (X - 55) : \ (X - 87)) /* * must parenthesize (X) in order to preserve value if the result is * bit shifted */ #define BIN_TO_ASCIIHEX(X) (((X & 0x0F) < 10) ? ((X & 0x0F) + '0') : \ (...
23,997
https://github.com/bpjohannessen/xamarin-forms-sqlite-sample/blob/master/Alus/Alus/Helpers/AProducers.cs
Github Open Source
Open Source
MIT
null
xamarin-forms-sqlite-sample
bpjohannessen
C#
Code
59
196
using System; using System.Collections.Generic; using System.Linq; using Alus.Models; using Alus.Services; using SQLite; namespace Alus.Helpers { public class AProducers { static SQLiteConnection db = AData.database; public AProducers() { } public static List<AProducer...
31,067
https://github.com/henrichg/PhoneProfilesPlus/blob/master/phoneProfilesPlus/src/main/java/sk/henrichg/phoneprofilesplus/LiveWallpapersDialogPreference.java
Github Open Source
Open Source
Apache-2.0
2,023
PhoneProfilesPlus
henrichg
Java
Code
371
1,462
package sk.henrichg.phoneprofilesplus; import android.app.WallpaperInfo; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.content.res.TypedArray; import android.os.Parcel; import android.os.Parcelable; import ...
32,429
https://github.com/FenixEdu/fenixedu-scala-sdk/blob/master/src/main/scala/org/fenixedu/sdk/services/package.scala
Github Open Source
Open Source
MIT
null
fenixedu-scala-sdk
FenixEdu
Scala
Code
82
262
package org.fenixedu.sdk import cats.effect.Concurrent import io.circe.{Decoder, Encoder, Printer} import org.http4s.{EntityDecoder, EntityEncoder, circe} package object services { val jsonPrinter: Printer = Printer.noSpaces.copy(dropNullValues = true) implicit def jsonEncoder[F[_], A: Encoder]: EntityEncoder[F, ...
35,021
https://github.com/maaeedee/NRI/blob/master/data/customizing.py
Github Open Source
Open Source
MIT
null
NRI
maaeedee
Python
Code
137
680
import numpy as np import networkx as nx def labeling (int_mat): all_groups = [] grp_type = np.unique(int_mat) grp_type = grp_type[grp_type>0] for j in grp_type : A = int_mat temp_mat = (A==j).astype(float) G = nx.from_numpy_matrix(temp_mat) groups = list(list(...
19,071
https://github.com/labs14-pawsitive/back-end/blob/master/data/migrations/20190712154806_first_layer_tables.js
Github Open Source
Open Source
MIT
null
back-end
labs14-pawsitive
JavaScript
Code
159
831
exports.up = function(knex, Promise) { return knex.schema .createTable('size', tbl => { tbl.increments() tbl.string('size', 256) .notNullable() .unique(); }) .createTable('coat_length', tbl => { tbl.increments() tbl.string('coat_length', 256) ...
18,813
https://github.com/Yuloran/wanandroid_java/blob/master/lib_repository/src/main/java/com/yuloran/lib_repository/http/interceptor/CacheControlInterceptor.java
Github Open Source
Open Source
Apache-2.0
2,020
wanandroid_java
Yuloran
Java
Code
288
814
/* * Copyright (C) 2018 Yuloran(https://github.com/Yuloran) * * 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...
23,562
https://github.com/bzrmed10/inventoryFront/blob/master/src/app/pages/category/category-add/category-add.component.ts
Github Open Source
Open Source
MIT
null
inventoryFront
bzrmed10
TypeScript
Code
197
730
import { Component, OnInit } from '@angular/core'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { ActivatedRoute, Params, Router } from '@angular/router'; import { SharedService } from 'src/app/services/shared.service'; import { Category } from '../category.model'; import { CategoryServic...
5,608
https://github.com/cosyUI/hybrid-sdk/blob/master/android/sdk/src/main/java/com/wya/hybrid/methods/bean/installed/InstalledData.java
Github Open Source
Open Source
MIT
2,020
hybrid-sdk
cosyUI
Java
Code
70
219
package com.wya.hybrid.methods.bean.installed; /** * @date: 2019/2/19 15:56 * @author: Chunjiang Mao * @classname: InstalledData * @describe: */ public class InstalledData { /** * 执行结果的返回方式。为false时通过callback返回,为true时直接返回。 */ private boolean sync; /** * scheme 或 包名 */ private String scheme; public bo...
49,960
https://github.com/mem-memov/mytarget-php-ads-sdk/blob/master/src/Token/DoctrineCacheTokenStorage.php
Github Open Source
Open Source
Apache-2.0
2,016
mytarget-php-ads-sdk
mem-memov
PHP
Code
233
643
<?php namespace MyTarget\Token; use Doctrine\Common\Cache\Cache; use Psr\Http\Message\RequestInterface; use MyTarget as f; class DoctrineCacheTokenStorage implements TokenStorage { /** * @var Cache */ private $cache; /** * @var callable(string $id, RequestInterface, $context): string ...
18,912