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/currentsapi/dragnet/blob/master/extractnet/__init__.py
Github Open Source
Open Source
MIT
null
dragnet
currentsapi
Python
Code
24
108
from extractnet.pipeline import Extractor __version__ = '2.0.4' _LOADED_MODELS = {} def extract_news(html, encoding=None, as_blocks=False): if 'news_extraction' not in _LOADED_MODELS: _LOADED_MODELS['news_extraction'] = Extractor() return _LOADED_MODELS['news_extraction'].extract(html)
6,301
https://github.com/moutainhigh/ses-server/blob/master/ses-tool/src/main/java/com/redescooter/ses/tool/utils/date/DateUtil.java
Github Open Source
Open Source
MIT
null
ses-server
moutainhigh
Java
Code
2,676
9,749
package com.redescooter.ses.tool.utils.date; import com.redescooter.ses.api.common.constant.DateConstant; import java.text.ParseException; import java.text.SimpleDateFormat; import java.time.LocalDate; import java.time.ZoneOffset; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import ja...
28,590
https://github.com/KorpsMariniersA3/catalyst/blob/master/resources/views/frontend/my-squad/indexSquadAnnouncements.blade.php
Github Open Source
Open Source
MIT
2,015
catalyst
KorpsMariniersA3
PHP
Code
95
552
@extends('frontend.layouts.master') @section('title', 'Squad Announcements') @section('css-top') @endsection @section('breadcrumbs') <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li><a href="{{route('vpf')}}">{{$user->vpf}}</a></li> <li><a href="{{route('squad')}}">My Squad</a><...
3,348
https://github.com/percussion/percussioncms/blob/master/modules/segmentation-rx/src/main/resources/com/percussion/soln/segment/rx/SegmentAliasFieldGrammer.g
Github Open Source
Open Source
LicenseRef-scancode-dco-1.1, Apache-2.0, OFL-1.1, LGPL-2.0-or-later, LicenseRef-scancode-public-domain
2,023
percussioncms
percussion
GAP
Code
123
360
header { package com.percussion.soln.segment.rx; import java.util.List; import java.util.Vector; } class SegmentAliasFieldParser extends Parser; { private List<String> aliases = new Vector<String>(); public List<String> getAliases() { return this.aliases; } } startRule : aliasList ; aliasList : aliasRule (...
34,504
https://github.com/Thamsuhang/Dashboard-PP-/blob/master/resources/views/frontend/pages/home/home.blade.php
Github Open Source
Open Source
MIT
null
Dashboard-PP-
Thamsuhang
PHP
Code
4
36
@extends('frontend.master.master') @section('content') <h1>laravel</h1> @endsection
28,270
https://github.com/chenjiaobin/jira-plugin/blob/master/src/main/java/com/expdatacloud/ty/servlet/IssueCreate.java
Github Open Source
Open Source
Apache-2.0
null
jira-plugin
chenjiaobin
Java
Code
386
1,766
package com.expdatacloud.ty.servlet; import java.io.File; import java.io.IOException; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.h...
35,341
https://github.com/golanv/CodeClub/blob/master/Java/src/Circle2D.java
Github Open Source
Open Source
MIT
null
CodeClub
golanv
Java
Code
319
738
/* * Circle2D Class and corresponding methods. * Author: Me. */ public class Circle2D { private double x; private double y; private double radius; private double area; private double perimeter; Circle2D() { x = 0; y = 0; radius = 1; } Circle2D(doub...
3,349
https://github.com/n644dc/spacewaveTx/blob/master/rfcat/firmware/include/immedisplay.h
Github Open Source
Open Source
Unlicense
null
spacewaveTx
n644dc
C
Code
241
483
/* * IM-Me display functions * * Copyright 2010 Dave * http://daveshacks.blogspot.com/2010/01/im-me-lcd-interface-hacked.html * * Copyright 2010 Michael Ossmann * * Copyright 2011 atlas * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lic...
45,565
https://github.com/dansiviter/cito/blob/master/core/src/test/java/cito/server/security/SecurityRegistryTest.java
Github Open Source
Open Source
Apache-2.0
2,018
cito
dansiviter
Java
Code
371
1,379
/* * Copyright 2016-2017 Daniel Siviter * * 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 agree...
38,684
https://github.com/himalay/express-babelify-middleware/blob/master/lib/index.js
Github Open Source
Open Source
MIT
2,016
express-babelify-middleware
himalay
JavaScript
Code
44
154
var browserify = require('browserify-middleware') var babelify = require('babelify') function babelifyMiddleware(entries, brOptions, baOptions) { brOptions = brOptions || {} brOptions.transform = brOptions.transform || [] baOptions = baOptions || {} baOptions.presets = baOptions.presets || ['es2015'] brOptio...
24,055
https://github.com/lukamarin/ScrollGallery-android/blob/master/app/src/main/java/com/veinhorn/example/MainActivity.java
Github Open Source
Open Source
Apache-2.0
2,016
ScrollGallery-android
lukamarin
Java
Code
143
851
package com.veinhorn.example; import android.content.Context; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.widget.ImageView; import com.veinhorn.scrollgalleryview.MediaInfo; import com.veinhorn...
9,553
https://github.com/lihongyang166/core/blob/master/src/task/get_instance_status.go
Github Open Source
Open Source
MIT
2,022
core
lihongyang166
Go
Code
206
895
package task import ( "github.com/project-nano/framework" "github.com/project-nano/core/modules" "log" "time" "fmt" ) type GetInstanceStatusExecutor struct { Sender framework.MessageSender ResourceModule modules.ResourceModule } func (executor *GetInstanceStatusExecutor)Execute(id framework.SessionID,...
8,048
https://github.com/adamhalasz/diet/blob/master/examples/nunjucks/index.js
Github Open Source
Open Source
MIT
2,019
diet
adamhalasz
JavaScript
Code
57
154
// Create HTTP Server var server = require('diet') var app = server() app.listen(3500) // Setup Nunjucks var nunjucks = require('nunjucks') nunjucks.configure(app.path+'/views', { autoescape: true, watch: true }); // Enable HTML Template app.view('html', nunjucks.render) // Route app.get('/', function($){ $....
26,122
https://github.com/gerrymanoim/AdaptiveCards/blob/master/source/uwp/Renderer/lib/AdaptiveContainerConfig.h
Github Open Source
Open Source
MIT
2,017
AdaptiveCards
gerrymanoim
C++
Code
62
465
#pragma once #include "AdaptiveCards.XamlCardRenderer.h" #include "Enums.h" #include "HostConfig.h" namespace AdaptiveCards { namespace XamlCardRenderer { class AdaptiveContainerConfig : public Microsoft::WRL::RuntimeClass< Microsoft::WRL::RuntimeClassFlags<Microsoft::WRL::RuntimeClassType::Wi...
45,694
https://github.com/box-software/SlinkyTyped/blob/master/d/delegated-events/src/main/scala/typingsSlinky/delegatedDashEvents/delegatedDashEventsMod.scala
Github Open Source
Open Source
MIT
2,020
SlinkyTyped
box-software
Scala
Code
5,233
16,852
package typingsSlinky.delegatedDashEvents import org.scalajs.dom.raw.AnimationEvent import org.scalajs.dom.raw.CustomEvent import org.scalajs.dom.raw.DragEvent import org.scalajs.dom.raw.Element import org.scalajs.dom.raw.ErrorEvent import org.scalajs.dom.raw.Event import org.scalajs.dom.raw.EventListenerOptions impor...
24,255
https://github.com/enricobassissi/SMAD/blob/master/Mission Analysis/TrajOptimisation/LowThrust/function/time_law.m
Github Open Source
Open Source
MIT
2,021
SMAD
enricobassissi
MATLAB
Code
288
627
function [TOF, T] = time_law(f1,f2,a,e,mu) %{ VALID ONLY FOR 1 REVOLUTION EXTRA, K=1 a [km] f [rad] e [] mu [km^3/s^2] TOF [s] T_half [s] %} %{ example for validation: -- inputs -- theta1 = 30°; theta2 = 90°; a = 7500; km e = 0.1; mu_E = 398600; [dT] = time_law(deg2rad(30),deg2rad(90),7500,0.1,mu_E) -- procedures res...
28,960
https://github.com/jsuarezruiz/Xamarin.Forms.TabView/blob/master/src/Xamarin.Forms.TabView.iOS/VisualFeedbackEffect.cs
Github Open Source
Open Source
MIT
2,022
Xamarin.Forms.TabView
jsuarezruiz
C#
Code
249
1,066
using System; using UIKit; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; using Xamarin.Forms.TabView.iOS; using XVisualFeedbackEffect = Xamarin.Forms.TabView.VisualFeedbackEffect; [assembly: ResolutionGroupName("TabView")] [assembly: ExportEffect(typeof(VisualFeedbackEffect), nameof(VisualFeedbackEffect))] n...
36,653
https://github.com/NeilDG/ARVRDEV_Courseware/blob/master/Assets/Art/Pictures.meta
Github Open Source
Open Source
MIT
2,019
ARVRDEV_Courseware
NeilDG
Unity3D Asset
Code
16
79
fileFormatVersion: 2 guid: e20d7f5c35a40c241b1b0b69a3acfc06 folderAsset: yes timeCreated: 1511057808 licenseType: Free DefaultImporter: externalObjects: {} userData: assetBundleName: assetBundleVariant:
14,389
https://github.com/zaeleus/noodles/blob/master/noodles-bam/src/record.rs
Github Open Source
Open Source
MIT
2,023
noodles
zaeleus
Rust
Code
3
7
pub mod codec;
5,375
https://github.com/headerx/buku-icons/blob/master/src/Concerns/FiltersData.php
Github Open Source
Open Source
MIT
2,021
buku-icons
headerx
PHP
Code
22
67
<?php namespace HeaderX\BukuIcons\Concerns; trait FiltersData { protected function filterData(array $data): array { return array_filter($data, fn ($value) => $value !== ''); } }
19,590
https://github.com/xiaoshenxian/javaxsx/blob/master/src/main/java/com/eroelf/javaxsx/util/gson/LocalDateTypeAdapter.java
Github Open Source
Open Source
Apache-2.0
2,022
javaxsx
xiaoshenxian
Java
Code
112
499
package com.eroelf.javaxsx.util.gson; import java.lang.reflect.Type; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Locale; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.Js...
18,916
https://github.com/ferimer-dev/escpos-tools/blob/master/src/Parser/Command/RequestResponseTransmissionCmd.php
Github Open Source
Open Source
MIT
2,021
escpos-tools
ferimer-dev
PHP
Code
11
57
<?php namespace ReceiptPrintHq\EscposTools\Parser\Command; use ReceiptPrintHq\EscposTools\Parser\Command\DataCmd; class RequestResponseTransmissionCmd extends DataCmd { }
8,798
https://github.com/raheelahmad/Satin/blob/master/Source/Math/Ray.swift
Github Open Source
Open Source
MIT
null
Satin
raheelahmad
Swift
Code
98
253
// // Ray.swift // Satin // // Created by Reza Ali on 4/22/20. // import simd open class Ray { public var origin: simd_float3 public var direction: simd_float3 public init() { self.origin = simd_make_float3(0.0, 0.0, 0.0) self.direction = simd_make_float3(0.0, 0.0, 1.0) } ...
20,787
https://github.com/gravitational/pithos/blob/master/test/io/pithos/operations_test.clj
Github Open Source
Open Source
Apache-2.0
2,020
pithos
gravitational
null
Spoken
1,788
7,034
(ns io.pithos.operations-test (:require [clojure.test :refer :all] [clojure.java.io :as io] [clojure.core.async :as a] [io.pithos.desc :as desc] [io.pithos.bucket :as bucket] [io.pithos.meta :as meta] [io.pithos.blo...
17,790
https://github.com/mathsigit/ohara/blob/master/ohara-shabondi/src/test/scala/oharastream/ohara/shabondi/common/TestKafkaClient.scala
Github Open Source
Open Source
Apache-2.0
2,019
ohara
mathsigit
Scala
Code
280
934
/* * Copyright 2019 is-land * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
5,259
https://github.com/SocialGouv/mano/blob/master/app/src/scenes/Reports/Collaborations.js
Github Open Source
Open Source
Apache-2.0
2,023
mano
SocialGouv
JavaScript
Code
488
1,579
import React, { useEffect, useMemo, useRef, useState, useCallback } from 'react'; import { Alert } from 'react-native'; import { useRecoilState, useRecoilValue, useSetRecoilState } from 'recoil'; import API from '../../services/api'; import SceneContainer from '../../components/SceneContainer'; import ScreenTitle from ...
22,281
https://github.com/desertskyrangers/flightdeck-api/blob/master/src/main/java/com/desertskyrangers/flightdeck/core/exception/UnauthorizedException.java
Github Open Source
Open Source
MIT
null
flightdeck-api
desertskyrangers
Java
Code
25
97
package com.desertskyrangers.flightdeck.core.exception; import com.desertskyrangers.flightdeck.core.model.User; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode( callSuper = true ) public class UnauthorizedException extends AppSecurityException { private final User user; }
11,009
https://github.com/hovercraft-github/STM32F407VET6_Mbed2_Template/blob/master/src/ILI9341_STM32F4/spidma.h
Github Open Source
Open Source
Apache-2.0
null
STM32F407VET6_Mbed2_Template
hovercraft-github
C
Code
43
173
/*===================================================================*/ /* */ /* spidma.h : SPI DMA function header */ /* */ /* 2016/1/20 Racoon ...
50,443
https://github.com/evertonteotonio/liferay-frontend-projects/blob/master/guidelines/support/checkLinks.js
Github Open Source
Open Source
MIT
2,021
liferay-frontend-projects
evertonteotonio
JavaScript
Code
924
3,223
#!/usr/bin/env node /** * SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: MIT */ const fs = require('fs'); const http = require('http'); const path = require('path'); const {promisify} = require('util'); const accessAsync = promisify(fs.access); const readFileAsync = ...
4,861
https://github.com/hiloWang/notes/blob/master/Python/Code/Python3-Base/06_Functions/lambda.py
Github Open Source
Open Source
Apache-2.0
2,021
notes
hiloWang
Python
Code
40
148
######################### # 匿名函数 ######################### # 匿名函数示例 sum = lambda a, b, c: (a + b + c) print(sum(1, 3, 4)) # 匿名函数应用 functionNew = input("请输入一个lambda表达式:") print(type(functionNew)) functionNew = eval(functionNew) print(type(functionNew)) def test(x, y, func): return func(x, y) print(test(3, 4, f...
14,859
https://github.com/evesys/transbank-sdk-java/blob/master/src/main/java/cl/transbank/onepay/model/Signable.java
Github Open Source
Open Source
BSD-3-Clause
2,020
transbank-sdk-java
evesys
Java
Code
14
45
package cl.transbank.onepay.model; public interface Signable { String getHashableString(); void setSignature(String signature); String getSignature(); }
25,137
https://github.com/wowts/wow-mock/blob/master/src/api/QuestTaskInfo.ts
Github Open Source
Open Source
MIT
2,021
wow-mock
wowts
TypeScript
Code
181
522
import { LuaArray } from "@wowts/lua"; import { UIFrame } from "../ui"; export interface TaskPOIData { questId: number; x: number; y: number; inProgress: boolean; numObjectives: number; mapID: number; isQuestStart: boolean; isDaily: boolean; isCombatAllyQuest: boolean; childDepth...
39,493
https://github.com/SkillsFundingAgency/das-reservations/blob/master/src/SFA.DAS.Reservations.Web.AcceptanceTests/Steps/Employer/EmployerWebAppSteps.cs
Github Open Source
Open Source
MIT
2,023
das-reservations
SkillsFundingAgency
C#
Code
39
164
using SFA.DAS.Reservations.Web.AcceptanceTests.Infrastructure; using TechTalk.SpecFlow; namespace SFA.DAS.Reservations.Web.AcceptanceTests.Steps.Employer { [Binding] public class EmployerWebAppSteps : StepsBase { public EmployerWebAppSteps( EmployerTestServiceProvider serviceProvider, ...
45,143
https://github.com/Milxnor/Nacro/blob/master/Nacro/SDK/FN_AthenaEquipProgress_classes.hpp
Github Open Source
Open Source
BSD-2-Clause
2,022
Nacro
Milxnor
C++
Code
243
1,077
#pragma once // Fortnite (1.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- //Classes //--------------------------------------------------------------------------- // WidgetBlueprintGeneratedClass AthenaEquipProgres...
23,875
https://github.com/varrcan/telegram.send/blob/master/install/version.php
Github Open Source
Open Source
MIT
2,021
telegram.send
varrcan
PHP
Code
11
42
<?php $arModuleVersion = [ 'VERSION' => '1.0.4', 'VERSION_DATE' => '2018-10-14' ];
34,532
https://github.com/BedeGaming/bolt-merkur/blob/master/src/pages/account/profile/template.hbs
Github Open Source
Open Source
MIT
null
bolt-merkur
BedeGaming
null
Spoken
26
218
<user-info> <personal-details></personal-details> <marketing-preferences></marketing-preferences> <div class="balance-section"> <h2>{{translate "profile_balance_title"}}</h2> <wallets-area></wallets-area> <pending-withdrawals></pending-withdrawals> <small class="deposit-footnotes"> {{transla...
26,618
https://github.com/ekov1/Battleship-game-/blob/master/Battleship/webClient/scripts/boardRenderer.js
Github Open Source
Open Source
MIT
null
Battleship-game-
ekov1
JavaScript
Code
370
1,266
const boardRenderer = function () { function renderNormal($, gameTableDiv, boardSize, board) { gameTableDiv.empty(); const alphabet = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']; let rowsColsCount = boardSize; gameTable = $('<table></table>').attr({ id: "gameTable" }); ...
19,047
https://github.com/aheze/Popovers/blob/master/Sources/SwiftUI/Modifiers.swift
Github Open Source
Open Source
MIT
2,022
Popovers
aheze
Swift
Code
1,387
3,220
// // Modifiers.swift // Popovers // // Created by A. Zheng (github.com/aheze) on 12/23/21. // Copyright © 2022 A. Zheng. All rights reserved. // import Combine import SwiftUI /** Present a popover in SwiftUI. Access using `.popover(present:attributes:view:)`. */ struct PopoverModifier: ViewModifier { /** ...
41,556
https://github.com/flypie/atanua/blob/master/src/chip/chip74283.cpp
Github Open Source
Open Source
Zlib
null
atanua
flypie
C++
Code
500
1,881
/* Atanua Real-Time Logic Simulator Copyright (c) 2008-2014 Jari Komppa 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, in...
28,504
https://github.com/octoshell/octoshell-v2/blob/master/engines/core/app/views/core/hooks/_admin_users_show.html.slim
Github Open Source
Open Source
MIT
2,023
octoshell-v2
octoshell
null
Spoken
24
111
= render "core/admin/employments/list", employments: user.employments.where(state: :active).order(primary: :desc, created_at: :desc) h4 = User.human_attribute_name(:projects) = render 'core/projects/projects_list', projects: user.projects.order(created_at: :desc) = render "core/admin/credentials/list", credentials: use...
1,622
https://github.com/MattSpeakman/MattSpeakman.Typescript/blob/master/Controllers/HomeController.js
Github Open Source
Open Source
MIT
null
MattSpeakman.Typescript
MattSpeakman
JavaScript
Code
125
331
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { ext...
40,883
https://github.com/Lucky-victory/harpee/blob/master/index.js
Github Open Source
Open Source
MIT
2,021
harpee
Lucky-victory
JavaScript
Code
1
13
module.exports=require('./lib/harpee');
43,547
https://github.com/felixHdezz/example-project-laravel/blob/master/app/ConsultasUser.php
Github Open Source
Open Source
MIT
2,017
example-project-laravel
felixHdezz
PHP
Code
193
706
<?php namespace SistelNetwork; use Illuminate\Support\Facades\DB; use Illuminate\Database\eloquent\Model; use Illuminate\Http\Request; use Session; use App\Http\Requests; class ConsultasUser extends Model { function __construct(){ parents::__construct(); } public static function get_list_product(){ $result =...
53,634
https://github.com/bidcms/dso2o/blob/master/app/admin/controller/Adminlog.php
Github Open Source
Open Source
Apache-2.0
null
dso2o
bidcms
PHP
Code
501
2,303
<?php namespace app\admin\controller; use think\facade\View; use think\facade\Db; use think\facade\Lang; /** * ============================================================================ * DSO2O多用户商城 * ============================================================================ * 版权所有 2014-2028 长沙德尚网络科技有限公司,并保留所有...
27,445
https://github.com/alexshvid/memcast/blob/master/src/main/java/com/shvid/memcast/utf8/StringMain.java
Github Open Source
Open Source
Apache-2.0
2,015
memcast
alexshvid
Java
Code
317
931
package com.shvid.memcast.utf8; import java.io.UnsupportedEncodingException; import java.util.Arrays; public class StringMain { public static void main(String[] args) { System.out.println("convert string to utf-8"); String str = "Hello world!"; BlobBuilder bb = new BlobBuilder(); writeUtf8(str, ...
14,129
https://github.com/blasttech/laravel-ide-macros/blob/master/src/Console/MacrosCommand.php
Github Open Source
Open Source
MIT
2,017
laravel-ide-macros
blasttech
PHP
Code
255
1,027
<?php namespace Tutorigo\LaravelMacroHelper\Console; use Illuminate\Console\Command; class MacrosCommand extends Command { /** @var string The name and signature of the console command */ protected $signature = 'ide-helper:macros'; /** @var string The console command description */ protected $descri...
42,522
https://github.com/BLQ5/google-api-objectivec-client-for-rest/blob/master/.gitmodules
Github Open Source
Open Source
Apache-2.0
2,020
google-api-objectivec-client-for-rest
BLQ5
Git Config
Code
11
57
[submodule "Deps/gtm-session-fetcher"] path = Deps/gtm-session-fetcher url = https://github.com/google/gtm-session-fetcher.git branch = master
50,091
https://github.com/2nd-Layer/rust-cardano/blob/master/cardano-c/src/types.rs
Github Open Source
Open Source
MIT
2,022
rust-cardano
2nd-Layer
Rust
Code
515
1,406
use cardano::address; use cardano::block; use cardano::coin::CoinDiff; use cardano::hdwallet; use cardano::tx; use cardano::txbuild; use cardano::wallet::bip44; use std::os::raw::c_int; /// C result type, where 0 is success and !0 is failure #[repr(C)] pub struct CardanoResult(c_int); impl CardanoResult { pub fn ...
26,490
https://github.com/vrmiguel/inquire/blob/master/src/error.rs
Github Open Source
Open Source
MIT
2,021
inquire
vrmiguel
Rust
Code
53
192
use std::ffi::NulError; #[derive(thiserror::Error, Debug)] pub enum Error { // TODO: check errno when this happens and subdivide the errors #[error("lstat failed")] Lstat, #[error("Internal zero byte found during CString construction")] InternalNulByte(#[from] NulError), #[error("IO error: {0}"...
27,884
https://github.com/CxiaoyuN/manhua/blob/master/application/index/controller/Index.php
Github Open Source
Open Source
Apache-2.0
2,021
manhua
CxiaoyuN
PHP
Code
267
1,020
<?php namespace app\index\controller; use app\model\Author; use think\Db; class Index extends Base { protected $bookService; protected function initialize() { $this->bookService = new \app\service\BookService(); } public function index() { $pid = input('pid'); if ($p...
3,077
https://github.com/eliassjogreen/pioneer/blob/master/core/entity.ts
Github Open Source
Open Source
MIT
2,022
pioneer
eliassjogreen
TypeScript
Code
44
110
export type Entity = number; export type Mask = number; export interface EntityStore { readonly length: number; spawn(): Entity; kill(entity: Entity): void; get(entity: Entity): Mask; set(entity: Entity, mask: Mask): Mask; enable(entity: Entity, mask: Mask): Mask; disable(entity: Entity, mask: Mask): Ma...
1,612
https://github.com/Choko256/js-minilib/blob/master/src/ajax.js
Github Open Source
Open Source
MIT
null
js-minilib
Choko256
JavaScript
Code
164
482
"use strict"; /** * Ajax HTTP * * Ajax asynchronous singleton object * Find docs on https://github.com/Choko256/js-minilib * * @license MIT License */ var HTTP = (function() { var HTTPRequest = function(method, url, params, headers) { var self = this; self._method = method; self._url = url; self._par...
9,893
https://github.com/Groestlcoin/peach-wallet-desktop/blob/master/frontend/modules/account/types.js
Github Open Source
Open Source
Apache-2.0
2,020
peach-wallet-desktop
Groestlcoin
JavaScript
Code
346
1,744
const $prefix = "app/account/"; export const CREATE_ACCOUNT = `${$prefix}CREATE_ACCOUNT`; export const SUCCESS_CREATE_NEW_ACCOUNT = `${$prefix}SUCCESS_CREATE_NEW_ACCOUNT`; export const ERROR_CREATE_NEW_ACCOUNT = `${$prefix}ERROR_CREATE_NEW_ACCOUNT`; export const SET_LIGHTNING_ID = `${$prefix}SET_LIGHTNING_ID`; export c...
44,906
https://github.com/ansible/awx/blob/master/awx/ui/src/screens/Job/JobOutput/getLineTextHtml.js
Github Open Source
Open Source
Apache-2.0
2,023
awx
ansible
JavaScript
Code
312
981
import Ansi from 'ansi-to-html'; import hasAnsi from 'has-ansi'; import { encode } from 'html-entities'; const EVENT_START_TASK = 'playbook_on_task_start'; const EVENT_START_PLAY = 'playbook_on_play_start'; const EVENT_STATS_PLAY = 'playbook_on_stats'; const TIME_EVENTS = [EVENT_START_TASK, EVENT_START_PLAY, EVENT_STA...
35,241
https://github.com/tyued/blog-nest/blob/master/src/app.module.ts
Github Open Source
Open Source
MIT
null
blog-nest
tyued
TypeScript
Code
203
644
import { ArticleModule } from './module/article/article.module'; import { AuthModule } from './module/auth/auth.module'; import { resolve } from 'path'; import { Module, CacheModule } from '@nestjs/common'; import { AppController } from './app.controller'; import { AppService } from './app.service'; import { ConfigMo...
33,625
https://github.com/synerex/synerex-docker/blob/master/.gitmodules
Github Open Source
Open Source
Apache-2.0
2,021
synerex-docker
synerex
Git Config
Code
104
656
[submodule "minimal-nodeserv/nodeserv"] path = minimal-nodeserv/nodeserv url = https://github.com/synerex/synerex_nodeserv [submodule "minimal-sxserver/synerex_server"] path = minimal-sxserver/synerex_server url = https://github.com/synerex/synerex_server.git [submodule "minimal-harmovis_layers/harmovis_layers"] p...
9,473
https://github.com/chsahit/homotopy_guided_footstep_planner/blob/master/src/footstep_planner/src/proto/environment_projections/unpack_from_proto.cpp
Github Open Source
Open Source
BSD-3-Clause
2,021
homotopy_guided_footstep_planner
chsahit
C++
Code
693
2,620
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2019, Vinitha Ranganeni & Sahit Chintalapudi // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: /...
36,726
https://github.com/huangjinping/test111/blob/master/HDJFKJ/HDJFKJ/SaoMa/QRViewController.h
Github Open Source
Open Source
MIT
null
test111
huangjinping
C
Code
36
124
// // QRViewController.h // QRWeiXinDemo // // Created by lovelydd on 15/4/25. // Copyright (c) 2015年 lovelydd. All rights reserved. // #import <UIKit/UIKit.h> typedef void(^QRUrlBlock)(NSString *url); @interface QRViewController : LDBaseUIViewController @property (nonatomic, copy) QRUrlBlock qrUrlBlock; @...
30,952
https://github.com/WirteR/ecm/blob/master/db/account/migrations/0002_auto_20210310_2334.py
Github Open Source
Open Source
MIT
2,021
ecm
WirteR
Python
Code
110
668
# Generated by Django 3.1.6 on 2021-03-10 23:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='customergroup',...
14,398
https://github.com/guyan0319/go-admin/blob/master/vue-pure-admin/src/router/modules/components.ts
Github Open Source
Open Source
MIT
2,023
go-admin
guyan0319
TypeScript
Code
231
958
import { $t } from "/@/plugins/i18n"; const Layout = () => import("/@/layout/index.vue"); const componentsRouter = { path: "/components", component: Layout, redirect: "/components/video", meta: { icon: "menu", title: $t("menus.hscomponents"), i18n: true, rank: 4 }, children: [ { p...
1,767
https://github.com/codistica/codistica-js/blob/master/packages/codistica-core/src/__tests__/modules/object-utils/internals/parse-circular.test.js
Github Open Source
Open Source
MIT
2,021
codistica-js
codistica
JavaScript
Code
71
272
import {assert} from 'chai'; import {parseCircular} from '../../../../modules/object-utils/internals/parse-circular.js'; import {getCircularObject} from '../../../__utils__/get-circular-object.js'; /** @see module:core/modules/object-utils/parse-circular */ function parseCircularTest() { describe('parseCircular()'...
10,358
https://github.com/d0scoo1/naga_contracts/blob/master/mainnet/contracts/0xbcfdaeb22ab6e10dfb99546e6240155edc1084f7_GenexiToken.sol
Github Open Source
Open Source
MIT
2,023
naga_contracts
d0scoo1
Gerber Image
Code
965
2,743
pragma solidity ^0.4.21; /// @title SafeMath /// @dev Math operations with safety checks that throw on error library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, ...
42,939
https://github.com/RubioHaro/VHDL/blob/master/programasFDD/Practica15.Coders/3.Hexto7sCC.vhd
Github Open Source
Open Source
MIT
null
VHDL
RubioHaro
VHDL
Code
154
397
LIBRARY IEEE; USE IEEE.std_logic_1164.ALL; ENTITY coder IS PORT ( input : IN STD_LOGIC_VECTOR (3 DOWNTO 0);-- 4 Bits display : OUT STD_LOGIC_VECTOR (6 DOWNTO 0) -- 7 Bits ); END coder; ---- ARCHITECTURE arq_coder OF coder IS BEGIN PROCESS (input) BEGIN CASE input IS ...
41,541
https://github.com/farhaz17/DeliveryCRM/blob/master/app/Http/Controllers/Api/Notifications/NotifyController.php
Github Open Source
Open Source
MIT
null
DeliveryCRM
farhaz17
PHP
Code
115
737
<?php namespace App\Http\Controllers\Api\Notifications; use App\Model\BikeDetail; use App\Model\Notifications\NotificationsMsg; use App\Model\Notifications\UserNotificationInfos; use App\Model\Telecome; use App\Model\VerificationForm; use Auth; use Illuminate\Http\Request; use App\Http\Controllers\Controller; //use I...
11,852
https://github.com/yoshimasa36g/reversi-ios/blob/master/ReversiEntity/Game/Player/Players.swift
Github Open Source
Open Source
MIT
null
reversi-ios
yoshimasa36g
Swift
Code
273
977
// // Players.swift // ReversiEntity // // Created by yoshimasa36g on 2020/05/22. // Copyright © 2020 yoshimasa36g. All rights reserved. // import Foundation /// プレイヤー情報 public struct Players { private let players: [Disc: Player] /// 黒と白それぞれのプレイヤーを指定してインスタンスを生成する /// - Parameters: /// - darkPla...
27,529
https://github.com/morristech/okhttp-tlscompat/blob/master/example/app/src/main/java/net/gotev/tlsenabler/MainActivity.java
Github Open Source
Open Source
Apache-2.0
2,017
okhttp-tlscompat
morristech
Java
Code
344
1,348
package net.gotev.tlsenabler; import android.os.Bundle; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.util.Log; import net.gotev.okhttptlscompat.OkHttpTlsCompat; import java.io.IOException; import java.security.Provider; import java.security.Security; impo...
28,077
https://github.com/mambrosi/MaterialMovies/blob/master/app/src/main/java/marcosambrosi/mmovies/fragment/MovieListFragment.java
Github Open Source
Open Source
MIT
2,021
MaterialMovies
mambrosi
Java
Code
295
1,297
package marcosambrosi.mmovies.fragment; import android.content.Intent; import android.os.Bundle; import android.support.annotation.StringDef; import android.support.v4.app.ActivityOptionsCompat; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widg...
24,200
https://github.com/t1anchen/cuda_aes/blob/master/src/cuda_aes_for_py.h
Github Open Source
Open Source
BSD-3-Clause
2,015
cuda_aes
t1anchen
C
Code
13
64
#ifndef ACA_CUDA_AES_API_H #define ACA_CUDA_AES_API_H int kick_off(int argc, char *argv[]); #endif /* ACA_CUDA_AES_API_H */
46,178
https://github.com/gitpharm01/MyCustom3DMakes/blob/master/designs/vawtDisplay/part1.jscad
Github Open Source
Open Source
Apache-2.0
null
MyCustom3DMakes
gitpharm01
JavaScript
Code
374
1,427
//Vertical Axis Wind Turbine(VAWT) powered display stand by Gitpharm01 //Savonius Turbine function getParameterDefinitions() { return [ { name: 'base_diameter', type: 'float', initial: 110, caption: "diameter of turbine base" }, // { name: 'shaft_diameter', type: 'float', initial: 8, caption: "diameter of shaft...
26,558
https://github.com/15881450273/Smart-Traffic/blob/master/Smart-Traffic-WinClient/Smart-Traffic-WinClient.sln
Github Open Source
Open Source
MIT
2,017
Smart-Traffic
15881450273
null
Spoken
72
404
 Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.26430.14 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Smart-Traffic-WinClient", "Smart-Traffic-WinClient\Smart-Traffic-WinClient.csproj", "{29BD6029-A9FB-49B7-A25...
18,977
https://github.com/PaulyJo/my-coding-challenges/blob/master/java/FirstNonRepetatedChar/src/Application.java
Github Open Source
Open Source
MIT
2,017
my-coding-challenges
PaulyJo
Java
Code
73
224
/** * Created by muatik on 2/9/17. */ public class Application { public static void main(String[] args) { System.out.println(findFirstNonRepeatedChar("AABBCDDK")); System.out.println(findFirstNonRepeatedChar("AABBCCDDK")); } private static String findFirstNonRepeatedChar(String text) { ...
22,279
https://github.com/qwefgh90/bside/blob/master/web/src/app/workspace/core/action/user/remove-node-action.ts
Github Open Source
Open Source
Apache-2.0
2,022
bside
qwefgh90
TypeScript
Code
60
189
import { UserAction } from './user-action'; import { UserActionDispatcher } from './user-action-dispatcher'; import { TabCloseMicroAction } from '../micro/tab-close-micro-action'; import { WorkspaceRemoveNodeMicroAction } from '../micro/workspace-remove-node-micro-action'; export class RemoveNodeAction extends UserAct...
11,338
https://github.com/clayne/unicorn_pe/blob/master/unicorn_pe/emuapi.cpp
Github Open Source
Open Source
MIT
2,022
unicorn_pe
clayne
C++
Code
3,081
11,961
#include <unicorn/unicorn.h> #include <capstone/capstone.h> #include <BlackBone/Process/Process.h> #include <BlackBone/ManualMap/MMap.h> #include <iostream> #include <sstream> #include <fstream> #include <functional> #include <vector> #include <intrin.h> #include "buffer.h" #include "encode.h" #include "nativestruct...
3,864
https://github.com/sudhyk/sRestServer/blob/master/src/com/sudhy/rest/util/ProcessService.java
Github Open Source
Open Source
Apache-2.0
null
sRestServer
sudhyk
Java
Code
17
63
package com.sudhy.rest.util; import javax.ws.rs.core.HttpHeaders; public class ProcessService { public Boolean processHeaders(HttpHeaders headers) { return true; } }
30,908
https://github.com/anthonyneedles/WISE-HEADACHE-JASH/blob/master/cfs/osal/src/unit-tests/osprintf-test/ut_osprintf_p.c
Github Open Source
Open Source
Apache-2.0, NASA-1.3, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-warranty-disclaimer
2,020
WISE-HEADACHE-JASH
anthonyneedles
C
Code
269
864
/* * UT_osprintf_p.c * * Created on: May 22, 2013 * Author: Kevin McCluney */ #include "ut_osprintf.h" extern char strg_buf[]; extern char trunc_buf[]; /***************************************************************************** * Test %p format *******************************************************...
24,820
https://github.com/huanhulan/zombicus/blob/master/app/assets/homo-sapien-right.png.d.ts
Github Open Source
Open Source
MIT
2,018
zombicus
huanhulan
TypeScript
Code
13
30
declare namespace homoSapienRight { const toString: () => string; } export = homoSapienRight;
26,029
https://github.com/STAR-RG/entente/blob/master/paper/R/piecharts/truepositives.r
Github Open Source
Open Source
MIT, BSD-3-Clause, BSD-2-Clause
2,020
entente
STAR-RG
R
Code
42
119
# Create Data # ch new 2 dup 1 # v8 new 1 dup 0 # jsc new 5 dup 0 # sm new 0 dup 2 true_positive_perc=c(24,9) true_positive_names=c("Bug","Duplicate") labs <- paste(true_positive_names, " (", true_positive_perc, ")", sep="") pie(true_positive_perc , labels=labs, radius=.5, cex=1.2)
3,765
https://github.com/marv-devops/alfa-start/blob/master/api/rates-api/src/main/java/me/antonle/alfastart/rates/controller/RateController.java
Github Open Source
Open Source
MIT
2,017
alfa-start
marv-devops
Java
Code
41
216
package me.antonle.alfastart.rates.controller; import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImpl; import me.antonle.alfastart.common.api.RateAPI; import me.antonle.alfastart.common.domain.Ccy; import me.antonle.alfastart.rates.service.RateService; import org.springframework.beans.factory.annotation.Autowir...
20,535
https://github.com/ethereum-optimism/optimism/blob/master/op-challenger/game/fault/solver/solver.go
Github Open Source
Open Source
MIT
2,023
optimism
ethereum-optimism
Go
Code
544
1,458
package solver import ( "context" "errors" "fmt" "github.com/ethereum-optimism/optimism/op-challenger/game/fault/types" "github.com/ethereum/go-ethereum/common" ) var ( ErrStepNonLeafNode = errors.New("cannot step on non-leaf claims") ErrStepAgreedClaim = errors.New("cannot step on claims we agree with") ) /...
35,014
https://github.com/nishadi1995/iGoviya/blob/master/node_modules/grpc/deps/grpc/third_party/abseil-cpp/absl/base/internal/scheduling_mode.h
Github Open Source
Open Source
MIT
2,022
iGoviya
nishadi1995
C
Code
330
646
// Copyright 2017 The Abseil 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 applicable law or agre...
53,066
https://github.com/comhon-project/comhon/blob/master/src/Comhon/Exception/Interfacer/InterfaceException.php
Github Open Source
Open Source
MIT
2,020
comhon
comhon-project
PHP
Code
259
696
<?php /* * This file is part of the Comhon package. * * (c) Jean-Philippe <jeanphilippe.perrotton@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Comhon\Exception\Interfacer; use Comhon\Exception\ComhonExcep...
39,747
https://github.com/awesomemachinelearning/ELL/blob/master/libraries/model/optimizer/test/src/OptimizerTest.cpp
Github Open Source
Open Source
MIT, LicenseRef-scancode-unknown-license-reference
2,019
ELL
awesomemachinelearning
C++
Code
121
534
//////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: OptimizerTest.cpp (model/optimizer_test) // Authors: Chuck Jacobs // /////////////////////////////////////////////////////////////////////////////////////...
52,502
https://github.com/RG2N/Spigot-BT/blob/master/BuildTools/work/decompile-d7866d9c/net/minecraft/network/protocol/game/PacketPlayOutSelectAdvancementTab.java
Github Open Source
Open Source
Apache-2.0
2,021
Spigot-BT
RG2N
Java
Code
77
315
package net.minecraft.network.protocol.game; import java.io.IOException; import javax.annotation.Nullable; import net.minecraft.network.PacketDataSerializer; import net.minecraft.network.protocol.Packet; import net.minecraft.resources.MinecraftKey; public class PacketPlayOutSelectAdvancementTab implements Packet<Pack...
16,919
https://github.com/marcosmarf27/jamelo/blob/master/app/resources/tutor/Persistence/Objects/ObjectToJson.php
Github Open Source
Open Source
RSA-MD
2,022
jamelo
marcosmarf27
PHP
Code
46
145
<?php class ObjectToJson extends TPage { public function __construct() { parent::__construct(); try { TTransaction::open('samples'); // Load object $customer = Customer::find(4); // if found if (...
51,023
https://github.com/emilymaskin/gatsby-starter-shopifypwa/blob/master/src/components/AddToCart.js
Github Open Source
Open Source
MIT
null
gatsby-starter-shopifypwa
emilymaskin
JavaScript
Code
397
1,355
import React from 'react'; import gql from 'graphql-tag'; import { Mutation } from 'react-apollo'; import ContextConsumer from '../layouts/context'; import { ReturnFieldsCheckout } from '../helpers/gqlFragments'; import { getSetting } from '../helpers/settings'; import { StaticQuery, graphql } from 'gatsby'; import { S...
46,655
https://github.com/zeesh49/tutorials/blob/master/core-java-collections/src/test/java/com/baeldung/collection/WhenUsingTreeSet.java
Github Open Source
Open Source
MIT
2,022
tutorials
zeesh49
Java
Code
437
1,941
package com.baeldung.collection; import java.util.Comparator; import java.util.ConcurrentModificationException; import java.util.Iterator; import java.util.NavigableSet; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import org.junit.Assert; import org.junit.Test; public class WhenUsingT...
11,159
https://github.com/irina-ash/currency-nest-js/blob/master/ormconfig.js
Github Open Source
Open Source
MIT
null
currency-nest-js
irina-ash
JavaScript
Code
57
208
// eslint-disable-next-line @typescript-eslint/no-var-requires const path = require('path'); const isDev = process.env.NODE_ENV === 'development'; module.exports = { name: 'default', type: 'postgres', host: 'localhost', port: 5432, username: 'postgres', password: 'password', database: 'currency_db', en...
36,759
https://github.com/it9good/tutorial_jveverka_java-11-examples/blob/master/mongodb-demo/src/main/java/itx/examples/mongodb/Main.java
Github Open Source
Open Source
Apache-2.0
2,021
tutorial_jveverka_java-11-examples
it9good
Java
Code
65
278
package itx.examples.mongodb; import com.mongodb.client.MongoClient; import com.mongodb.client.MongoDatabase; import itx.examples.mongodb.dto.Role; import itx.examples.mongodb.services.RoleService; import itx.examples.mongodb.services.RoleServiceImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ja...
40,189
https://github.com/Deek/CoCoC/blob/master/Source/Libs/KLibc/lib.a/frexp.c
Github Open Source
Open Source
LicenseRef-scancode-public-domain
2,023
CoCoC
Deek
C
Code
123
264
/* x = frexp (arg, &i); returns a double fp quantity x which is a fraction < 1.0 and a corresponding binary exponent "i" such that arg = x * 2^i */ double frexp (x, i) double x; int *i; { register int j = 0, neg; unsigned char *cx = &x; neg = (*cx & 0x80); /* check sign bit */ if (neg) *cx &= ~0x80; /* ge...
38,864
https://github.com/LukeM1170/Moderation/blob/master/src/main/java/commands/cmdsay.java
Github Open Source
Open Source
Unlicense
2,018
Moderation
LukeM1170
Java
Code
149
535
package commands; import UTIL.STATIC; import core.permsCore; import net.dv8tion.jda.core.EmbedBuilder; import net.dv8tion.jda.core.Permission; import net.dv8tion.jda.core.events.message.MessageReceivedEvent; import java.awt.*; import java.util.Arrays; import java.util.List; import java.util.concurrent.TimeUnit; /** ...
4,078
https://github.com/Erog38/CaptainsLog/blob/master/searchRoutes.go
Github Open Source
Open Source
Beerware
null
CaptainsLog
Erog38
Go
Code
69
288
package main import ( "net/http" "github.com/gin-gonic/gin" ) func searchAPIHandler(c *gin.Context) { resp := SearchResponse{} pageOpts := PageOpts{} searchPost := Post{} c.BindJSON(&searchPost) c.BindQuery(&pageOpts) if pageOpts.PageSize == 0 { pageOpts.PageSize = 25 } var blogPosts []Post offset ...
42,149
https://github.com/zhxqc/element-plus/blob/master/docs/.vitepress/vitepress/components/full-screen/vp-menu-link.vue
Github Open Source
Open Source
MIT
2,022
element-plus
zhxqc
Vue
Code
65
252
<script lang="ts" setup> import VPLink from '../common/vp-link.vue' import type { Link } from '../../types' defineProps<{ item: Link }>() </script> <template> <VPLink :class="{ 'is-menu-link': true, }" :href="item.link" :no-icon="true" > {{ item.text }} </VPLink> </template> <style...
22,391
https://github.com/smartguy1986/gotours/blob/master/public/admin_assets/sass/components/_form.scss
Github Open Source
Open Source
MIT
null
gotours
smartguy1986
SCSS
Code
474
1,833
form { position: relative; } input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datet...
50,336
https://github.com/wjp22903/geomesa/blob/master/geomesa-plugin/src/main/scala/org/locationtech/geomesa/plugin/process/ImportProcess.scala
Github Open Source
Open Source
Apache-2.0
null
geomesa
wjp22903
Scala
Code
319
1,094
package org.locationtech.geomesa.plugin.process import org.geoserver.catalog.{Catalog, CatalogBuilder, DataStoreInfo} import org.geotools.data.simple.SimpleFeatureCollection import org.geotools.feature.simple.SimpleFeatureTypeBuilder import org.geotools.process.ProcessException import org.geotools.process.factory.{Des...
32,106
https://github.com/kmx/perl-iup/blob/master/_generators/orig.iup/doc.iup/attrib/iup_floating.pod
Github Open Source
Open Source
MIT, Unlicense
2,020
perl-iup
kmx
null
Spoken
127
292
=head1 FLOATING (non inheritable) (since 3.0) If an element has FLOATING=YES then its size and position will be ignored by the layout processing in B<IupVbox>, B<IupHbox> and B<IupZbox>. But the element size and position will still be updated in the native system allowing the usage of B<SIZE>/B<RASTERSIZE> and B<POSIT...
45,632
https://github.com/CXINFINITE/REST-WebFramework/blob/master/src/Basic/REST_WebFramework/core/__init__.py
Github Open Source
Open Source
MIT
null
REST-WebFramework
CXINFINITE
Python
Code
35
135
from .configuration import configuration from .http1_1 import http1_1 from .management import ( package_cli_executor, existing_cli_executor, ) from .managementUtilities import ( Resumable, Terminating, EResumable, ETerminating, SYS_ARGsKey, SYS_ARGS, ) __all__ = [ 'configuration', 'http1_1', 'package_...
21,471
https://github.com/NicolasBizzozzero/Online-Judges/blob/master/Project Euler/pe19.py
Github Open Source
Open Source
Unlicense
null
Online-Judges
NicolasBizzozzero
Python
Code
75
213
#import datetime #import calendar from calendar import monthrange from datetime import date def add_month(sourcedate): month = sourcedate.month year = int(sourcedate.year + month / 12) month = month % 12 + 1 day = min(sourcedate.day, monthrange(year, month)[1]) return date(year, month, day) if __name__ == '__mai...
33,592
https://github.com/4z3/nixpkgs/blob/master/pkgs/applications/graphics/xzgv/default.nix
Github Open Source
Open Source
MIT
2,021
nixpkgs
4z3
null
Spoken
98
334
{ stdenv, fetchurl, gtk, pkgconfig, texinfo }: stdenv.mkDerivation rec { name = "xzgv-${version}"; version = "0.9.1"; src = fetchurl { url = "mirror://sourceforge/xzgv/xzgv-${version}.tar.gz"; sha256 = "1rh432wnvzs434knzbda0fslhfx0gngryrrnqkfm6gwd2g5mxcph"; }; buildInputs = [ gtk pkgconfig texinfo ];...
32,315
https://github.com/Twipped/wellrested/blob/master/tests.js
Github Open Source
Open Source
MIT
2,022
wellrested
Twipped
JavaScript
Code
717
2,280
/* eslint no-shadow: 0 */ var test = require('tap').test; var nock = require('nock'); var wellrested = require('./'); test('request factories', (t) => { var config = { baseUrl: 'http://example.com', headers: { Accepts: 'text/text' }, endpoints: { 'user': '/user/:username', 'message': '/mess...
3,341
https://github.com/dinisAbranches/nwchem/blob/master/src/NWints/texas/num_diff.f
Github Open Source
Open Source
ECL-2.0
2,022
nwchem
dinisAbranches
null
Spoken
273
2,074
* $Id$ program numder implicit real*8 (a-h,o-z) c23456789.123456789.123456789.123456789.123456789.123456789.123456789.12 c parameter (n=10000) cccc character*16 name_p(n),name_m(n) character*16 name_p ,name_m , name_2 character*2 direction cccc dimension del_plus(n,3), del_m(n,3) c ...
20,810