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/freenetdigital/php-formula/blob/master/php/ng/fpm/init.sls | Github Open Source | Open Source | Apache-2.0 | 2,019 | php-formula | freenetdigital | null | Spoken | 77 | 292 | # Meta-state to fully install php.fpm
{% from 'php/ng/map.jinja' import php with context %}
include:
- php.ng.fpm.config
- php.ng.fpm.service
- php.ng.fpm.pools
extend:
php_fpm_service:
service:
- watch:
{% set ini_file_managed = php.fpm.config.ini.get("managed", True) %}
{% if ini_f... | 5,864 |
https://github.com/BreezeZin/DefinitelyTyped/blob/master/types/carbon__icons-react/lib/currency--shekel/32.d.ts | Github Open Source | Open Source | MIT | 2,022 | DefinitelyTyped | BreezeZin | TypeScript | Code | 9 | 22 | import { CurrencyShekel32 } from "../../";
export = CurrencyShekel32;
| 21,343 |
https://github.com/yezhihao/jt808-server/blob/master/jtt808-protocol/src/main/java/org/yzh/protocol/commons/JT808.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | jt808-server | yezhihao | Java | Code | 348 | 1,652 | package org.yzh.protocol.commons;
/**
* 中华人民共和国交通运输行业标准
* 道路运输车辆卫星定位系统终端通信协议
* @author yezhihao
* https://gitee.com/yezhihao/jt808-server
*/
public interface JT808 {
int 终端通用应答 = 0x0001;
int 终端心跳 = 0x0002;
int 终端注销 = 0x0003;
int 查询服务器时间 = 0x0004;//2019 new
int 终端补传分包请求 = 0x0005;//2019 new
... | 55,400 |
https://github.com/zhangbo1997/Graph-Based-Malware-Prediction/blob/master/Data/benign/b1/smali/ti/modules/titanium/ui/widget/picker/TiUISpinnerColumn.smali | Github Open Source | Open Source | MIT | null | Graph-Based-Malware-Prediction | zhangbo1997 | Smali | Code | 1,732 | 10,427 | .class public Lti/modules/titanium/ui/widget/picker/TiUISpinnerColumn;
.super Lorg/appcelerator/titanium/view/TiUIView;
.source "TiUISpinnerColumn.java"
# interfaces
.implements Lkankan/wheel/widget/WheelView$OnItemSelectedListener;
# static fields
.field private static final LCAT:Ljava/lang/String; = "TiUISpinnerCo... | 6,053 |
https://github.com/Aden2018/echarts4r/blob/master/man/graphic.Rd | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,019 | echarts4r | Aden2018 | R | Code | 240 | 943 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/graphic.R
\name{e_graphic_g}
\alias{e_graphic_g}
\alias{e_group_g}
\alias{e_image_g}
\alias{e_text_g}
\alias{e_rect_g}
\alias{e_circle_g}
\alias{e_ring_g}
\alias{e_sector_g}
\alias{e_arc_g}
\alias{e_polygon_g}
\alias{e_polyline_g}
\alias{e_li... | 28,491 |
https://github.com/minhajuddin/mongo_blog/blob/master/src/UI/Domain/Entities/Role.cs | Github Open Source | Open Source | Apache-2.0 | 2,010 | mongo_blog | minhajuddin | C# | Code | 15 | 37 | namespace MongoBlog.Web.Domain.Entities {
public enum Role {
Admin = 1,
Subscriber = 2,
}
} | 8,366 |
https://github.com/reactive-senior/danapay-reactnative/blob/master/extensions/shoutem.loyalty/server/src/modules/program/components/barcode-regex-form/BarcodeRegexForm.jsx | Github Open Source | Open Source | BSD-3-Clause | null | danapay-reactnative | reactive-senior | null | Spoken | 228 | 920 | import React, { Component, PropTypes } from 'react';
import { reduxForm } from 'redux-form';
import {
LoaderContainer,
ReduxFormElement,
FontIcon,
FontIconPopover,
} from '@shoutem/react-web-ui';
import { Row, Col, Button, ButtonToolbar } from 'react-bootstrap';
import { getFormState } from 'src/redux';
import ... | 10,539 |
https://github.com/guyezi/app/blob/master/samba4/Makefile | Github Open Source | Open Source | MIT | null | app | guyezi | Makefile | Code | 943 | 6,058 | # Based partially on (wongsyrone/hbl0307106015) versions
include $(TOPDIR)/rules.mk
PKG_NAME:=samba
PKG_VERSION:=4.9.2
PKG_RELEASE:=3
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
PKG_LICENSE:=GPL-3.0-only
PKG_LICENSE_FILES:=COPYING
PKG_SOURCE_URL:=https://download.samba.org/pub/samba/stable/
PKG_SOURCE... | 47,772 |
https://github.com/iizus/aws-builders-fair-projects/blob/master/reinvent-2019/drone-zone/drone-zone-helpers/gg-bootstrap/stop.sh | Github Open Source | Open Source | Apache-2.0 | 2,020 | aws-builders-fair-projects | iizus | Shell | Code | 57 | 157 | #!/usr/bin/env bash
# Check if we're root and re-execute if we're not.
rootcheck () {
if [ $(id -u) != "0" ]
then
sudo "$0" "$@" # Modified as suggested below.
exit $?
fi
}
rootcheck "${@}"
if [ -f "/lib/systemd/system/greengrass.service" ]; then
echo "Stopping with systemd"
syst... | 10,110 |
https://github.com/oeneika/tesis-front/blob/master/src/app/models/confidenceLevels.ts | Github Open Source | Open Source | MIT | null | tesis-front | oeneika | TypeScript | Code | 17 | 40 | export class ConfidenceLevels {
constructor(
public _id: string,
public title: string,
public description: string
) {}
}
| 25,741 |
https://github.com/jsonxr/react-native-material-icons/blob/master/icons/SvgHardwareSharp.tsx | Github Open Source | Open Source | MIT | null | react-native-material-icons | jsonxr | TypeScript | Code | 49 | 262 | // /src/maps/hardware/materialiconssharp/24px.svg
import { createSvgIcon } from './createSvgIcon';
export const SvgHardwareSharp = createSvgIcon(
`<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24" viewBox="0 0 24 24" width="24">
<g>
<rect fill="none" height="24" width="2... | 21,658 |
https://github.com/gvaduha/rainbgen/blob/master/pkg/sha2svc/reqstatus_test.go | Github Open Source | Open Source | MIT | null | rainbgen | gvaduha | Go | Code | 73 | 198 | package sha2svc
import (
"testing"
)
func TestString(t *testing.T) {
tables := []struct {
arg ReqStatus
res string
}{
{Failed, "failed"},
{InProgress, "in progress"},
{Finished, "finished"},
}
for _, table := range tables {
if table.res != table.arg.String() {
t.Errorf("Wrong string value for %s"... | 48,066 |
https://github.com/AzureMentor/allReady/blob/master/AllReadyApp/Web-App/AllReady.UnitTest/Features/Event/EventsWithUnlockedCampaignsQueryHandlerShould.cs | Github Open Source | Open Source | MIT | 2,019 | allReady | AzureMentor | C# | Code | 130 | 407 | using System.Collections.Generic;
using AllReady.Models;
using System.Threading.Tasks;
using AllReady.Features.Events;
using Xunit;
namespace AllReady.UnitTest.Features.Event
{
using Event = AllReady.Models.Event;
public class EventsWithUnlockedCampaignsQueryHandlerShould : InMemoryContextTest
{
... | 32,965 |
https://github.com/stitchfix/ibex/blob/master/scripts/analyze_system_sklearn.py | Github Open Source | Open Source | BSD-3-Clause | 2,018 | ibex | stitchfix | Python | Code | 287 | 1,167 | import os
import importlib
import inspect
import ast
import re
import glob2
import six
import sklearn
import pandas as pd
from sklearn import base
_identifier_re = re.compile(r'[^\d\W][\w\d_]*_$')
if False:
print(_identifier_re.match('foo'))
print(_identifier_re.match('_foo'))
print(_identifier_re.match(... | 48,233 |
https://github.com/Miko4/ant/blob/master/Markup/Group.mli | Github Open Source | Open Source | WTFPL, LicenseRef-scancode-public-domain | 2,016 | ant | Miko4 | OCaml | Code | 14 | 34 |
open ParseState;
value begin_group : parse_state -> unit;
value end_group : parse_state -> unit;
| 17,634 |
https://github.com/mrKimura/pwa/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,019 | pwa | mrKimura | Ignore List | Code | 6 | 23 | node_modules
.DS_Store
*.lock
*.log
*.yaml
build
| 36,548 |
https://github.com/facebookresearch/detectron2/blob/master/tests/layers/test_blocks.py | Github Open Source | Open Source | Apache-2.0 | 2,023 | detectron2 | facebookresearch | Python | Code | 125 | 611 | # Copyright (c) Facebook, Inc. and its affiliates.
import unittest
import torch
from torch import nn
from detectron2.layers import ASPP, DepthwiseSeparableConv2d, FrozenBatchNorm2d
from detectron2.modeling.backbone.resnet import BasicStem, ResNet
"""
Test for misc layers.
"""
class TestBlocks(unittest.TestCase):
... | 33,002 |
https://github.com/matyioe92/SlinkyTyped/blob/master/a/azdata/src/main/scala/typingsSlinky/azdata/mod/LoadingComponentBuilder.scala | Github Open Source | Open Source | MIT | 2,021 | SlinkyTyped | matyioe92 | Scala | Code | 113 | 401 | package typingsSlinky.azdata.mod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
@js.native
trait LoadingComponentBuilder extends ComponentBuilder[LoadingComponent] {
/**
... | 37,750 |
https://github.com/Poussinou/wsandroid/blob/master/app/src/floss/java/fi/bitrite/android/ws/repository/SettingsRepository.java | Github Open Source | Open Source | Apache-2.0 | null | wsandroid | Poussinou | Java | Code | 22 | 92 | package fi.bitrite.android.ws.repository;
import android.content.Context;
import javax.inject.Inject;
import fi.bitrite.android.ws.di.AppScope;
@AppScope
public class SettingsRepository extends BaseSettingsRepository {
@Inject
SettingsRepository(Context context) {
super(context);
}
}
| 14,954 |
https://github.com/majordodo/majordodo/blob/master/majordodo-core/src/main/java/majordodo/utils/FileUtils.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | majordodo | majordodo | Java | Code | 184 | 439 | /*
Licensed to Diennea S.r.l. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Diennea S.r.l. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except ... | 33,607 |
https://github.com/Buthrakaur/coreddd/blob/master/src/CoreDdd.Nhibernate.Tests/UnitOfWorks/TransactionScopes/IRollingBackUnitOfWorkInTransactionScopeSpecification.cs | Github Open Source | Open Source | MIT | 2,022 | coreddd | Buthrakaur | C# | Code | 14 | 74 | using CoreDdd.UnitOfWorks;
namespace CoreDdd.Nhibernate.Tests.UnitOfWorks.TransactionScopes
{
public interface IRollingBackUnitOfWorkInTransactionScopeSpecificationxxxx
{
void RollbackAct(IUnitOfWork unitOfWork);
}
} | 11,913 |
https://github.com/haller218/gentoo-pkg-repository/blob/master/net-misc/dhcpcd-7.0.1/NEEDED.ELF.2 | Github Open Source | Open Source | MIT | null | gentoo-pkg-repository | haller218 | null | Spoken | 2 | 77 | X86_64;/sbin/dhcpcd;;;libdl.so.2,libc.so.6;x86_64
X86_64;/lib64/dhcpcd/dev/udev.so;udev.so;;libudev.so.1,libc.so.6;x86_64
| 43,698 |
https://github.com/aicactus/aicactus-sdk-reactnative-lib/blob/master/packages/core/android/src/main/java/io/aicactus/sdk/reactnative/core/RNAicactusPackage.kt | Github Open Source | Open Source | MIT | 2,020 | aicactus-sdk-reactnative-lib | aicactus | Kotlin | Code | 39 | 188 | package io.aicactus.sdk.reactnative.core
import android.view.View
import com.facebook.react.ReactPackage
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.uimanager.ReactShadowNode
import com.facebook.react.uimanager.ViewManager
class RNAi... | 42,187 |
https://github.com/oneonlee/Computer-Science/blob/master/1. OOP/05. Polymorphism/fig_13_1_without_polymorphism/CommissionEmployee.cpp | Github Open Source | Open Source | MIT | 2,021 | Computer-Science | oneonlee | C++ | Code | 182 | 493 | #include "CommissionEmployee.h"
#include <iostream>
#include <string>
using namespace std;
CommissionEmployee::CommissionEmployee(const string &first, const string &last, const string &ssn, double sales, double rate)
{
firstName = first;
lastName = last;
socialSecurityNumber = ssn;
setGrossSales(sales... | 34,343 |
https://github.com/vj-abishek/airdrop/blob/master/src/config/fb.js | Github Open Source | Open Source | MIT | 2,022 | airdrop | vj-abishek | JavaScript | Code | 45 | 254 | import firebase from 'firebase/app';
import 'firebase/analytics';
import 'firebase/firestore';
const firebaseConfig = {
apiKey: process.env.REACT_APP_API_KEY,
authDomain: 'abigo-share.firebaseapp.com',
databaseURL: 'https://abigo-share.firebaseio.com',
projectId: 'abigo-share',
storageBucket: 'abigo-share.ap... | 17,316 |
https://github.com/santb08/tape-bot/blob/master/src/index.js | Github Open Source | Open Source | MIT | 2,021 | tape-bot | santb08 | JavaScript | Code | 371 | 1,194 | require('dotenv').config()
// @packages
const { Client, Intents } = require('discord.js');
const Bot = require('./bot');
const { settings } = require('./config');
const Message = require('./message');
const text = require('./config/text/es.json');
const { searchSong } = require('./util/genius');
// @constants
const bo... | 1,405 |
https://github.com/Seals6/stucoursetest/blob/master/course/models.py | Github Open Source | Open Source | MIT | 2,022 | stucoursetest | Seals6 | Python | Code | 286 | 1,363 | from django.db import models
import datetime
from user.models import Student, Teacher
from constants import COURSE_STATUS, COURSE_OPERATION
def current_year():
# refer: https://stackoverflow.com/questions/49051017/year-field-in-django/49051348
return datetime.date.today().year
class Course(models.Model):
... | 41,461 |
https://github.com/ScalablyTyped/ScalajsReactTyped/blob/master/n/nivo__calendar/src/main/scala/typingsJapgolly/nivoCalendar/components/TimeRange.scala | Github Open Source | Open Source | MIT | 2,022 | ScalajsReactTyped | ScalablyTyped | Scala | Code | 541 | 2,239 | package typingsJapgolly.nivoCalendar.components
import japgolly.scalajs.react.Callback
import japgolly.scalajs.react.ReactMouseEventFrom
import org.scalajs.dom.SVGRectElement
import typingsJapgolly.StBuildingComponent
import typingsJapgolly.nivoCalendar.distTypesTypesMod.CalendarDatum
import typingsJapgolly.nivoCalend... | 6,395 |
https://github.com/cillas/Discord.Net/blob/master/src/Discord.Net/DiscordClient.cs | Github Open Source | Open Source | MIT | 2,015 | Discord.Net | cillas | C# | Code | 2,480 | 10,222 | using Discord.API;
using Discord.Collections;
using Discord.Helpers;
using Discord.WebSockets;
using Discord.WebSockets.Data;
using Newtonsoft.Json;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Threading.Tasks;
using VoiceWebSock... | 9,347 |
https://github.com/v-rodionov/avito-android/blob/master/subprojects/test-runner/client/src/main/kotlin/com/avito/runner/config/SchedulingConfigurationData.kt | Github Open Source | Open Source | MIT | 2,022 | avito-android | v-rodionov | Kotlin | Code | 14 | 43 | package com.avito.runner.config
import java.io.Serializable
public data class SchedulingConfigurationData(
val reservation: Reservation
) : Serializable
| 30,853 |
https://github.com/adasegroup/OSM---one-shot-multispeaker/blob/master/src/osms/tts_modules/encoder/__init__.py | Github Open Source | Open Source | MIT | 2,022 | OSM---one-shot-multispeaker | adasegroup | Python | Code | 4 | 14 | from .speaker_encoder_manager import SpeakerEncoderManager
| 18,981 |
https://github.com/gerti98/TankBattle/blob/master/TankBattle/src/tankbattle/VistaGiocoTankBattle.java | Github Open Source | Open Source | MIT | null | TankBattle | gerti98 | Java | Code | 1,882 | 9,191 | package tankbattle;
import javafx.animation.*;
import javafx.beans.property.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.input.*;
import javafx.scene.shape.*;
import javafx.util.*;
/**
*
* @author Gerti
*/
public class VistaGiocoTankBattle extends Group{
... | 43,760 |
https://github.com/BlackSourceLabs/BlackNectar-iOS/blob/master/BlackNectar/BlackNectar/AppDelegate.swift | Github Open Source | Open Source | Apache-2.0 | 2,017 | BlackNectar-iOS | BlackSourceLabs | Swift | Code | 370 | 1,048 | //
// AppDelegate.swift
// BlackNectar
//
// Created by Cordero Hernandez on 11/19/16.
// Copyright © 2017 BlackSource. All rights reserved.
//
import Archeota
import AromaSwiftClient
import Crashlytics
import Fabric
import Kingfisher
import NVActivityIndicatorView
import UIKit
@UIApplicationMain
class AppDelegat... | 20,341 |
https://github.com/PaoloTo/renault-api/blob/master/src/renault_api/kamereon/helpers.py | Github Open Source | Open Source | MIT | 2,020 | renault-api | PaoloTo | Python | Code | 87 | 281 | """Helpers for Kamereon models."""
from __future__ import annotations
from typing import Any
from typing import Dict
from . import models
DAYS_OF_WEEK = [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday",
"saturday",
"sunday",
]
def update_schedule(schedule: models.ChargeSchedule,... | 39,860 |
https://github.com/alibaba/fast-modeling-language/blob/master/fastmodel-converter/fastmodel-converter-dqc/src/test/java/com/aliyun/fastmodel/dqc/check/AddColsConverterTest.java | Github Open Source | Open Source | Apache-2.0 | 2,022 | fast-modeling-language | alibaba | Java | Code | 272 | 1,168 | /*
* Copyright 2021-2022 Alibaba Group Holding Ltd.
*
* 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 require... | 2,210 |
https://github.com/Aurocosh/number-sorter/blob/master/NumberSorter.Core/Logic/Factories/PositionLocator/Direct/BinaryPositionLocatorFactory.cs | Github Open Source | Open Source | MIT | 2,021 | number-sorter | Aurocosh | C# | Code | 28 | 164 | using NumberSorter.Core.Logic.Algorhythm.PositionLocator;
using NumberSorter.Core.Logic.Algorhythm.PositionLocator.Base;
using NumberSorter.Core.Logic.Factories.PositionLocator.Base;
using System.Collections.Generic;
namespace NumberSorter.Core.Logic.Factories.PositionLocator
{
public class BinaryPositionLocatorF... | 17,218 |
https://github.com/dglogik/JSON-to-CSV/blob/master/example/browser/basic.dart | Github Open Source | Open Source | MIT | 2,021 | JSON-to-CSV | dglogik | Dart | Code | 37 | 141 | import 'dart:html';
import 'package:json2csv/json2csv.dart' as JSON2CSV;
void main() {
var json = document.querySelector("#json") as PreElement;
var csv = document.querySelector("#csv") as PreElement;
HttpRequest.getString("basic.json").then((data) {
json.appendText(data);
var output = JSON2CSV.convert(... | 48,241 |
https://github.com/muescha/Coding4GaiAma/blob/master/packages/table-of-contents/src/index.ts | Github Open Source | Open Source | MIT | 2,021 | Coding4GaiAma | muescha | TypeScript | Code | 1,116 | 2,597 | // NOTE: post in https://stackoverflow.com/questions/25569255/find-and-modify-deeply-nested-object-in-javascript-array
type TocItem = {
depth: number
children: TocItem[]
}
/**
* We wouldn't be able to enjoy a clean table of contents
* without this magical piece of technology 🌌
* which was generously broad to ... | 39,460 |
https://github.com/zachsa/catalogue/blob/master/src/clients/src/theme/react-jsonschema-form/Widgets/index.ts | Github Open Source | Open Source | MIT | 2,022 | catalogue | zachsa | TypeScript | Code | 10 | 19 | export { default } from './Widgets'
export * from './Widgets'
| 20,213 |
https://github.com/qichuan/dart-xml/blob/master/lib/xml/nodes/parent.dart | Github Open Source | Open Source | MIT | null | dart-xml | qichuan | Dart | Code | 139 | 439 | library xml.nodes.parent;
import 'package:xml/xml/nodes/element.dart' show XmlElement;
import 'package:xml/xml/nodes/node.dart' show XmlNode;
import 'package:xml/xml/utils/name_matcher.dart' show createNameMatcher;
import 'package:xml/xml/utils/node_list.dart' show XmlNodeList;
import 'package:xml/xml/utils/node_type.... | 19,148 |
https://github.com/giorgiosironi/eris/blob/master/examples/StringTest.php | Github Open Source | Open Source | MIT | 2,023 | eris | giorgiosironi | PHP | Code | 150 | 529 | <?php
use Eris\Generators;
use Eris\Listeners;
function string_concatenation($first, $second)
{
if (strlen($second) > 5) {
$second .= 'ERROR';
}
return $first . $second;
}
class StringTest extends \PHPUnit\Framework\TestCase
{
use Eris\TestTrait;
public function testRightIdentityElement(... | 30,548 |
https://github.com/NickChecan/HanaService/blob/master/CDSScripts/SalesDML.sql | Github Open Source | Open Source | BSD-2-Clause | 2,020 | HanaService | NickChecan | SQL | Code | 88 | 694 | -- Insert products data
insert into "SALES_TUTORIAL"."HanaService.CDSScripts::SalesDDL.Product" values(1,'Shirts');
insert into "SALES_TUTORIAL"."HanaService.CDSScripts::SalesDDL.Product" values(2,'Jackets');
insert into "SALES_TUTORIAL"."HanaService.CDSScripts::SalesDDL.Product" values(3,'Trousers');
insert into "SA... | 55,550 |
https://github.com/pifro/xlayers/blob/master/src/app/editor/viewer/lib/sketch-container.component.spec.ts | Github Open Source | Open Source | Apache-2.0 | 2,018 | xlayers | pifro | TypeScript | Code | 190 | 713 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { SketchContainerComponent } from './sketch-container.component';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { NgxsModule, Store } from '@ngxs/store';
import { SketchService, SketchData } from './sketch.service';
import { ge... | 49,048 |
https://github.com/tecera/dod_importer/blob/master/Makefile | Github Open Source | Open Source | MIT | 2,021 | dod_importer | tecera | Makefile | Code | 47 | 162 | .PHONY: pipeline
pipeline: format linting unittest
venv: venv/touchfile
venv/touchfile: dev_requirements.txt
@test -d .venv || virtualenv .venv
@. .venv/bin/activate; pip install -Ur dev_requirements.txt
@touch .venv/touchfile
format:
@isort .
@black .
linting:
@flake8 .
@pylint dod tests
unittest:
@pytho... | 54,276 |
https://github.com/ScalablyTyped/Distribution/blob/master/n/nivo__legends/src/main/scala/typings/nivoLegends/distTypesDefaultsMod.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 209 | 1,345 | package typings.nivoLegends
import typings.nivoCore.mod.ValueFormat
import typings.nivoLegends.distTypesTypesMod.LegendDirection
import typings.nivoLegends.nivoLegendsStrings.after
import typings.nivoLegends.nivoLegendsStrings.before
import typings.nivoLegends.nivoLegendsStrings.end
import typings.nivoLegends.nivoLege... | 29,290 |
https://github.com/myxzjie/cms/blob/master/cms-boot-web/src/main/java/com/xzjie/cms/visit/service/impl/VisitLogServiceImpl.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | cms | myxzjie | Java | Code | 77 | 372 | package com.xzjie.cms.visit.service.impl;
import com.xzjie.cms.core.service.AbstractService;
import com.xzjie.cms.visit.model.VisitLog;
import com.xzjie.cms.visit.service.VisitLogService;
import com.xzjie.cms.visit.repository.VisitLogRepository;
import com.xzjie.cms.vo.ChartData;
import com.xzjie.cms.vo.VisitStatistic... | 7,694 |
https://github.com/jwhector/meta-meme-market/blob/master/public/js/transaction.js | Github Open Source | Open Source | MIT | 2,021 | meta-meme-market | jwhector | JavaScript | Code | 283 | 1,019 | const buyButton = document.querySelector('#buyMe');
const sellButton = document.querySelector('#sellme');
async function sellShare(e) {
const urlParams = new URLSearchParams(window.location.search);
const id = urlParams.get('id');
fetch(`/api/memes/sell/${id}`, {
method: 'GET',
credential... | 54,791 |
https://github.com/VishalS711/protege/blob/master/protege-editor-owl/src/main/java/org/protege/editor/owl/model/user/Orcid.java | Github Open Source | Open Source | BSD-2-Clause | 2,022 | protege | VishalS711 | Java | Code | 130 | 440 | package org.protege.editor.owl.model.user;
import java.net.URI;
import java.util.Objects;
import java.util.regex.Pattern;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkNotNull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informa... | 24,964 |
https://github.com/xylocarp-whelky/bazel/blob/master/src/main/java/com/google/devtools/build/lib/rules/python/PyExecutable.java | Github Open Source | Open Source | Apache-2.0 | 2,020 | bazel | xylocarp-whelky | Java | Code | 419 | 1,636 | // Copyright 2018 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 43,382 |
https://github.com/edio/chimney/blob/master/chimney/src/main/scala/io/scalaland/chimney/internal/macros/TransformerConfigSupport.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | chimney | edio | Scala | Code | 726 | 2,535 | package io.scalaland.chimney.internal.macros
import io.scalaland.chimney.internal.utils.MacroUtils
import scala.language.existentials
import scala.reflect.macros.blackbox
trait TransformerConfigSupport extends MacroUtils {
val c: blackbox.Context
import c.universe._
def readConfig[C: WeakTypeTag, InstanceFl... | 16,608 |
https://github.com/io7m/coreland-openal-ada/blob/master/UNIT_TESTS/efx_001.adb | Github Open Source | Open Source | 0BSD | 2,017 | coreland-openal-ada | io7m | Ada | Code | 144 | 506 | with OpenAL.Context.Error;
with OpenAL.Context;
with OpenAL.Extension.EFX;
with Test;
procedure efx_001 is
package ALC renames OpenAL.Context;
package ALC_Error renames OpenAL.Context.Error;
package AL_EFX renames OpenAL.Extension.EFX;
Device : ALC.Device_t;
Context : ALC.Context_t;
OK : Bo... | 50,906 |
https://github.com/barakaburus/cloudinary_kotlin/blob/master/url-gen/src/main/kotlin/com/cloudinary/transformation/ITransformable.kt | Github Open Source | Open Source | MIT | null | cloudinary_kotlin | barakaburus | Kotlin | Code | 804 | 2,132 | package com.cloudinary.transformation
import com.cloudinary.transformation.adjust.Adjust
import com.cloudinary.transformation.delivery.Delivery
import com.cloudinary.transformation.effect.Effect
import com.cloudinary.transformation.layer.Layer
import com.cloudinary.transformation.layer.LayerAction
import com.cloudinar... | 48,257 |
https://github.com/krackers/cutlet/blob/master/cutlet/cutlet.py | Github Open Source | Open Source | MIT | null | cutlet | krackers | Python | Code | 839 | 2,259 | import fugashi
import jaconv
import re
import pathlib
import sys
from .mapping import *
SUTEGANA = 'ゃゅょぁぃぅぇぉ'
PUNCT = '\'".!?(),;:-'
SYSTEMS = {
'hepburn': HEPBURN,
'kunrei': KUNREISHIKI,
'nihon': NIHONSHIKI,
}
if sys.version_info >= (3, 7):
def is_ascii(s):
return s.isascii()
el... | 55,229 |
https://github.com/JamieCranston/RangeShift_survey/blob/master/rangesurvey/man/plot_supp_fig_6.Rd | Github Open Source | Open Source | MIT | 2,022 | RangeShift_survey | JamieCranston | R | Code | 36 | 132 | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_supp_fig_6.R
\name{plot_supp_fig_6}
\alias{plot_supp_fig_6}
\title{plot_supp_fig_6}
\usage{
plot_supp_fig_6(speciesdata)
}
\arguments{
\item{speciesdata}{cleaned attitude to species responses}
}
\value{
supplementary figure 6
}
\descript... | 25,381 |
https://github.com/86dh/bc-java/blob/master/util/src/main/java/org/bouncycastle/oer/its/etsi102941/AaEntry.java | Github Open Source | Open Source | MIT | 2,015 | bc-java | 86dh | Java | Code | 183 | 690 | package org.bouncycastle.oer.its.etsi102941;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1Object;
import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.oer.its.etsi103097.EtsiTs103097Certi... | 49,988 |
https://github.com/pedroluisfuertes/inform-3-PW/blob/master/php/BaseDeDatos.inc.php | Github Open Source | Open Source | Apache-2.0 | 2,020 | inform-3-PW | pedroluisfuertes | PHP | Code | 67 | 327 | <?php
class BaseDeDatos
{
private $conexion;
private $server;
private $user;
private $password;
private $baseDeDatos;
function __construct($serverp, $userp, $passwordp, $baseDeDatosp)
{
$this->server = $serverp;
$this->user = $userp;
$this->password = $passwordp;
$this->baseDeDatos = $baseDeDatosp;
... | 1,783 |
https://github.com/emafazillah/quickstart/blob/master/helloworld-mbean/README.adoc | Github Open Source | Open Source | Apache-2.0 | 2,022 | quickstart | emafazillah | AsciiDoc | Code | 679 | 1,712 | include::../shared-doc/attributes.adoc[]
= helloworld-mbean: Helloworld Using MBean and CDI component
:author: Lagarde Jeremie
:level: Intermediate
:technologies: CDI, JMX, MBean
:imagesdir: images/
[abstract]
The `helloworld-mbean` quickstart demonstrates the use of CDI and MBean in {productName} and includes JConso... | 15,489 |
https://github.com/jamezrin/crtm-cards-java/blob/master/src/main/java/com/github/jamezrin/crtmcards/ErrorChecker.java | Github Open Source | Open Source | MIT | 2,018 | crtm-cards-java | jamezrin | Java | Code | 162 | 534 | package com.github.jamezrin.crtmcards;
import com.github.jamezrin.crtmcards.exceptions.*;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class ErrorChecker {
public static final Pattern FORM... | 41,293 |
https://github.com/WalterMalone/Brume/blob/master/fog/packages/web/lib/client/gf.class.php | Github Open Source | Open Source | MIT | null | Brume | WalterMalone | PHP | Code | 183 | 554 | <?php
/**
* Handles GreenFog, now only for legacy client
*
* PHP version 5
*
* @category Greenfog
* @package FOGProject
* @author Tom Elliott <tommygunsster@gmail.com>
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link https://fogproject.org
*/
/**
* Handles GreenFog, now only for legacy... | 4,075 |
https://github.com/ScalablyTyped/Distribution/blob/master/r/react-flip-move/src/main/scala/typings/reactFlipMove/global.scala | Github Open Source | Open Source | MIT | 2,023 | Distribution | ScalablyTyped | Scala | Code | 26 | 111 | package typings.reactFlipMove
import typings.reactFlipMove.mod.default
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object global {
@JSGlobal("FlipMove")
@js.native
open class FlipMove () exte... | 42,986 |
https://github.com/ngraymon/pdaggerq/blob/master/examples/ccsd.py | Github Open Source | Open Source | Apache-2.0 | 2,021 | pdaggerq | ngraymon | Python | Code | 120 | 564 |
import pdaggerq
pq = pdaggerq.pq_helper("fermi")
pq.set_print_level(0)
# energy equation
pq.set_left_operators(['1'])
print('')
print(' < 0 | e(-T) H e(T) | 0> :')
print('')
pq.add_st_operator(1.0,['f'],['t1','t2'])
pq.add_st_operator(1.0,['v'],['t1','t2'])
pq.simplify()
# grab list of fully-contracted strin... | 17,790 |
https://github.com/piotrmsc/compass/blob/master/components/director/hack/plugins/descriptionsdecorator/plugin_test.go | Github Open Source | Open Source | Apache-2.0 | 2,020 | compass | piotrmsc | Go | Code | 182 | 879 | package descriptionsdecorator_test
import (
"errors"
"io/ioutil"
"os"
"testing"
"github.com/99designs/gqlgen/codegen/config"
"github.com/kyma-incubator/compass/components/director/hack/plugins/descriptionsdecorator"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestMutateC... | 54,001 |
https://github.com/MineCraftGensoukyo/MCGUserGUI/blob/master/src/main/kotlin/moe/gensoukyo/gui/commands/Command.kt | Github Open Source | Open Source | MIT | 2,021 | MCGUserGUI | MineCraftGensoukyo | Kotlin | Code | 145 | 569 | package moe.gensoukyo.gui.commands
import moe.gensoukyo.gui.pages.TestPage
import org.bukkit.entity.Player
import taboolib.common.platform.ProxyCommandSender
import taboolib.common.platform.ProxyPlayer
import taboolib.common.platform.command.mainCommand
import taboolib.common.platform.command.subCommand
import tabooli... | 1,070 |
https://github.com/CCasusensa/CSO2-Server/blob/master/database/sqlite/rebuild.go | Github Open Source | Open Source | MIT | 2,020 | CSO2-Server | CCasusensa | Go | Code | 6 | 18 | package sqlite
func RebuildDataBase() {
}
| 856 |
https://github.com/oracle-terraform-modules/terraform-oci-oke/blob/master/modules/network/seclist.tf | Github Open Source | Open Source | UPL-1.0, LicenseRef-scancode-unknown-license-reference, LicenseRef-scancode-google-patent-license-golang, MPL-2.0, ISC, Apache-2.0, MIT, BSD-2-Clause, BSD-3-Clause | 2,023 | terraform-oci-oke | oracle-terraform-modules | HCL | Code | 159 | 632 | # Copyright 2017, 2021 Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl
resource "oci_core_security_list" "control_plane_seclist" {
compartment_id = var.compartment_id
display_name = var.label_prefix == "none" ? "control-... | 53,393 |
https://github.com/RenLiZhou/usb_encryption/blob/master/resources/lang/en/merchant_service.php | Github Open Source | Open Source | MIT | 2,021 | usb_encryption | RenLiZhou | PHP | Code | 88 | 305 | <?php
return [
/**
* AuthorizationService
*/
'the_authorization_code_does_not_exist' =>'The activation code does not exist or has been activated',
'authorization_failed' =>'Authorization failed',
/**
* MerchantService
*/
'username_or_password_is_wrong' =>'Username or password ... | 5,132 |
https://github.com/alphapapa/mldoc/blob/master/lib/export/html.ml | Github Open Source | Open Source | MIT | 2,020 | mldoc | alphapapa | OCaml | Code | 1,853 | 4,725 | open Prelude
open Type
open Inline
open Document
open Timestamp
open Conf
(* taken from mlorg *)
let macros = ref []
(* #+OPTIONS: num:nil toc:2 *)
let options = ref []
let concatmap f l = List.concat (List.map f l)
let list_element = function
| [] -> "ul"
| { ordered; name } :: tl ->
let name = if List.... | 50,460 |
https://github.com/alexnogueirasilva/alanti/blob/master/App/Api/Record.php | Github Open Source | Open Source | MIT | null | alanti | alexnogueirasilva | PHP | Code | 405 | 1,263 | <?php
namespace App\Api;
abstract class Record
{
protected $data;
public function __construct($id = null)
{
if ($id) {
$object = $this->load($id);
if ($object) {
$this->fromArray($object->toArray());
}
}
}
public function __s... | 48,329 |
https://github.com/squeakerboxxx/buttplug-js/blob/master/packages/buttplug-node-websockets/src/ButtplugNodeWebsocketClientConnector.ts | Github Open Source | Open Source | BSD-3-Clause | 2,020 | buttplug-js | squeakerboxxx | TypeScript | Code | 449 | 1,112 | /*!
* Buttplug JS Source Code File - Visit https://buttplug.io for more info about
* the project. Licensed under the BSD 3-Clause license. See LICENSE file in the
* project root for full license information.
*
* @copyright Copyright (c) Nonpolynomial Labs LLC. All rights reserved.
*/
"use strict";
import WebSock... | 33,122 |
https://github.com/barbalex/apf2/blob/master/cypress/e2e/01_user.cy.js | Github Open Source | Open Source | ISC | 2,023 | apf2 | barbalex | JavaScript | Code | 168 | 679 | /* eslint-disable no-undef */
const secrets = require('../../secrets.json')
describe('User login', () => {
beforeEach(() => {
cy.visit('/Daten/')
/*
Example of how to use idb, store or client
cy.window()
.its('__idb__')
.then(idb => {
idb.currentUser.clear()
window.locati... | 55,198 |
https://github.com/SuperOfficeDocs/database/blob/master/docs/tables/media/PriceUnitGroupLink.dot | Github Open Source | Open Source | MIT | null | database | SuperOfficeDocs | Graphviz (DOT) | Code | 60 | 182 | digraph PriceUnitGroupLink {
node [shape = box style="rounded, filled" fontname = "Helvetica" fontsize = "12" ]
edge [fontname = "Helvetica" fontsize = "9"]
PriceUnitGroupLink[fillcolor = "cadetblue1"]
PriceUnit[fillcolor = "azure1"]
UserGroup[fillcolor = "azure1"]
associate[fillcolor = "azure1"]
PriceUnitGroupLink -... | 23,366 |
https://github.com/objectguild/TF-Login/blob/master/src/TF-Login-Tests.package/TLPendingUserTest.class/instance/deadlineSecs..st | Github Open Source | Open Source | MIT | 2,018 | TF-Login | objectguild | null | Spoken | 12 | 30 | as yet unclassified
deadlineSecs: secs
^ Time millisecondClockValue + (secs * 1000) | 55,939 |
https://github.com/Burgax/sito/blob/master/Script/slide.js | Github Open Source | Open Source | Apache-2.0 | null | sito | Burgax | JavaScript | Code | 49 | 147 | var slides = document.querySelectorAll('.slide');
var btns = document.querySelectorAll('.btn');
let currentSlide = 1;
// Javascript for image slider autoplay navigation
var repeat = function(activeClass){
let active = document.getElementsByClassName('active');
let i = 1;
var repeater = () => {
setTimeout(fu... | 28,462 |
https://github.com/felixwahner/TextformatterOEmbed/blob/master/vendor/essence/http/tests/Client/NativeTest.php | Github Open Source | Open Source | MIT, BSD-2-Clause-Views | 2,017 | TextformatterOEmbed | felixwahner | PHP | Code | 74 | 250 | <?php
/**
* @author Félix Girault <felix.girault@gmail.com>
* @license MIT
*/
namespace Essence\Http\Client;
use PHPUnit_Framework_TestCase as TestCase;
/**
* Test case for Native.
*/
class NativeTest extends TestCase {
/**
*
*/
public $Native = null;
/**
*
*/
public function setUp() {
$thi... | 24,949 |
https://github.com/bootingman/summit2019/blob/master/web/app/themes/web3s/scss/_fonts.scss | Github Open Source | Open Source | MIT | 2,020 | summit2019 | bootingman | SCSS | Code | 134 | 670 | @font-face {
font-family: 'SuisseInt-Regular';
src: url('fonts/SuisseIntlMono-Regular-WebS.eot'); /* IE9 Compat Modes */
src: url('fonts/SuisseIntlMono-Regular-WebS.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('fonts/SuisseIntlMono-Regular-WebS.woff2') format('woff2'), /* Super Modern Browse... | 26,797 |
https://github.com/Dsiner/Album/blob/master/lib/src/main/java/com/d/lib/album/widget/photoview/PhotoView.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Album | Dsiner | Java | Code | 786 | 1,908 | package com.d.lib.album.widget.photoview;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
im... | 43,395 |
https://github.com/timengel/jamified-webshop/blob/master/src/pages/cart/index.js | Github Open Source | Open Source | MIT | null | jamified-webshop | timengel | JavaScript | Code | 25 | 54 | import React from 'react';
const Cart = () => {
return (
<div>
THIS IS THE SHOPPING CART PAGE.
</div>
);
};
export default Cart;
| 12,159 |
https://github.com/Quinimbus/Persistence/blob/master/modules/repositories/src/main/java/cloud/quinimbus/persistence/repositories/RepositoryFactory.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | Persistence | Quinimbus | Java | Code | 41 | 159 | package cloud.quinimbus.persistence.repositories;
import cloud.quinimbus.persistence.api.PersistenceContext;
import java.lang.reflect.Proxy;
public class RepositoryFactory {
private final PersistenceContext ctx;
public RepositoryFactory(PersistenceContext persistenceContext) {
this.ctx = persist... | 3,499 |
https://github.com/stmork/blz3/blob/master/src/image/b3TxLoadImage.cc | Github Open Source | Open Source | BSD-3-Clause | null | blz3 | stmork | C++ | Code | 1,201 | 4,689 | /*
**
** $Filename: b3TxLoadImage.cc $
** $Release: Dortmund 2001 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Loading different types of image formats
**
** (C) Copyright 2001 - 2021 Steffen A. Mork
** All Rights Reserved
**
**
**
**
*/
/****************************... | 10,258 |
https://github.com/KylixEza/Tugas-Kuliah-Setumpuk/blob/master/src/sem2/pbo/projectakhir/noteX/app/core/data/note/NoteDao.java | Github Open Source | Open Source | MIT | 2,022 | Tugas-Kuliah-Setumpuk | KylixEza | Java | Code | 40 | 116 | package sem2.pbo.projectakhir.noteX.app.core.data.note;
import java.util.List;
public interface NoteDao {
void insert(String title, String content, String date, String author);
void delete(Integer id);
void update(Integer id, String title, String content, String date, String author);
List<NoteEntity>... | 47,857 |
https://github.com/ghousseyn/flyimg/blob/master/src/Core/Entity/Image.php | Github Open Source | Open Source | MIT | 2,017 | flyimg | ghousseyn | PHP | Code | 443 | 1,366 | <?php
namespace Core\Entity;
/**
* Class Image
* @package Core\Entity
*/
class Image
{
/** @var array */
protected $options = [];
/** @var string */
protected $sourceFile;
/** @var string */
protected $newFileName;
/** @var string */
protected $newFilePath;
/** @var string */... | 18,780 |
https://github.com/hivereview/sciety/blob/master/test/groups-page/to-list-of-group-card-view-models.test.ts | Github Open Source | Open Source | MIT | 2,020 | sciety | hivereview | TypeScript | Code | 152 | 518 | import * as RA from 'fp-ts/ReadonlyArray';
import * as T from 'fp-ts/Task';
import * as TE from 'fp-ts/TaskEither';
import { pipe } from 'fp-ts/function';
import { evaluationRecorded, groupCreated } from '../../src/domain-events';
import { Ports, toListOfGroupCardViewModels } from '../../src/groups-page/to-list-of-grou... | 50,113 |
https://github.com/UVicFH/Telemetry-v2/blob/master/shared/constants.js | Github Open Source | Open Source | MIT | 2,017 | Telemetry-v2 | UVicFH | JavaScript | Code | 25 | 57 | export const PROTOCOL = 'http'
export const LOCATION = 'localhost'
export const PORT = 3000
export const SERIALPORT = '/dev/tty.SLAB_USBtoUART'
export const MODE = 'dev'
| 14,987 |
https://github.com/evansibok/evansibok.github.io/blob/master/src/components/skills/EvnsSkills.js | Github Open Source | Open Source | MIT | null | evansibok.github.io | evansibok | JavaScript | Code | 67 | 230 | import React from 'react';
import { StaticImage } from "gatsby-plugin-image"
import CSS3 from "../svgs/css3-component"
import JsComp from "../svgs/js-component"
import Sass from "../svgs/sass-component"
import GraphQL from "../svgs/graphql-component"
const EvnsSkills = () => {
return (
< div className="projec... | 50,291 |
https://github.com/martinjeannot/geomenum/blob/master/src/main/java/com/geomenum/web/requestsresponses/system/GetUserRequest.java | Github Open Source | Open Source | Apache-2.0 | null | geomenum | martinjeannot | Java | Code | 58 | 163 | /*
* Copyright (c) 2014 Geomenum Inc. All Rights Reserved.
*/
package com.geomenum.web.requestsresponses.system;
import com.geomenum.r2d2.common.Request;
/**
* Retrieve a user by its id.
*/
public class GetUserRequest extends Request {
private String userId;
public GetUserRequest(String userId) {
... | 39,773 |
https://github.com/Tagliatti/Boleto-Validator-PHP/blob/master/.gitignore | Github Open Source | Open Source | MIT | 2,023 | Boleto-Validator-PHP | Tagliatti | Ignore List | Code | 3 | 14 | /vendor/
/.c9/
.idea/ | 27,394 |
https://github.com/zhangli940210/MyWeibo/blob/master/LZWeiBo/LZWeiBo/Classes/Profile(我)/Controller/LZFansViewController.m | Github Open Source | Open Source | Apache-2.0 | 2,016 | MyWeibo | zhangli940210 | Objective-C | Code | 237 | 1,022 | //
// LZFansViewController.m
// LZWeiBo
//
// Created by apple on 16/3/25.
// Copyright © 2016年 m14a. All rights reserved.
//
#import "LZFansViewController.h"
#import "AFNetworking.h"
#import "LZAccountTool.h"
#import "LZUser.h"
#import "MJExtension.h"
#import "LZUserCell.h"
@interface LZFansViewController ()
/*... | 51,878 |
https://github.com/JGeraldoLima/scientific_methodology_DS_optimization/blob/master/TextTwistOptimization/src/com/implementations/bst/TextTwistBST.java | Github Open Source | Open Source | Apache-2.0 | null | scientific_methodology_DS_optimization | JGeraldoLima | Java | Code | 313 | 999 | package com.implementations.bst;
import com.implementations.TextTwist;
public class TextTwistBST implements TextTwist, BST {
protected BSTNode root;
public TextTwistBST() {
root = new BSTNode();
}
public BSTNode getRoot() {
return this.root;
}
@Override
public boolean isEmpty() {
return root.isEmpty(... | 29,438 |
https://github.com/bfehub/vitesse-admin/blob/master/vite.config.ts | Github Open Source | Open Source | MIT | null | vitesse-admin | bfehub | TypeScript | Code | 198 | 699 | import type { UserConfig, ConfigEnv } from 'vite'
import { loadEnv } from 'vite'
import { resolve } from 'path'
import { wrapperEnv } from './build/utils'
import { createProxy } from './build/vite/proxy'
import { createVitePlugins } from './build/vite/plugin'
import { OUTPUT_DIR } from './build/constant'
// https://cn... | 23,237 |
https://github.com/xy200919910128/xyMaill/blob/master/maill-product/src/main/java/com/xy/maill/maillproduct/vo/AttrIdVoEntity.java | Github Open Source | Open Source | Apache-2.0 | null | xyMaill | xy200919910128 | Java | Code | 42 | 124 | package com.xy.maill.maillproduct.vo;
import lombok.Data;
import java.io.Serializable;
/**
* 商品属性
*
* @author xy
* @email xy@gmail.com
* @date 2020-08-10 10:37:38
*/
@Data
public class AttrIdVoEntity implements Serializable {
private static final long serialVersionUID = 1L;
private Long attrId;
private Lon... | 5,561 |
https://github.com/Mirrrek/SmartRGBv2-Audio/blob/master/src/emitter.hpp | Github Open Source | Open Source | Apache-2.0 | null | SmartRGBv2-Audio | Mirrrek | C++ | Code | 34 | 107 | #include <winsock2.h>
#include <time.h>
class Emitter
{
public:
Emitter();
Emitter(char *address, int port);
void Begin();
void Emit(char r, char g, char b);
void End();
char *GetAddress();
int GetPort();
private:
sockaddr_in serverAddress;
int serverSocket;
}; | 13,396 |
https://github.com/carlosphillips/ImperialCommander/blob/master/LORAI/Assets/Resources/Languages/De/MissionText/empire13rules.txt.meta | Github Open Source | Open Source | MIT | 2,021 | ImperialCommander | carlosphillips | Unity3D Asset | Code | 10 | 56 | fileFormatVersion: 2
guid: c445fc2257f47de45961b59ff6748f00
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
| 44,666 |
https://github.com/discourse/discourse-adplugin/blob/master/assets/javascripts/discourse/templates/components/house-ad.hbs | Github Open Source | Open Source | MIT | 2,023 | discourse-adplugin | discourse | null | Spoken | 5 | 21 | {{#if showAd}}
{{html-safe adHtml}}
{{/if}} | 44,030 |
https://github.com/Tarekbouamer/frustum-pointnets/blob/master/Azure/2DtoFrustum.py | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, Apache-2.0 | 2,020 | frustum-pointnets | Tarekbouamer | Python | Code | 2,002 | 7,764 | ''' use 2D detections to create Frustums
Author: Tarek BOUAMER
Institute: ICG TU graz
Date: Feb 2020
'''
from __future__ import print_function
import os
import sys
import numpy as np
import cv2
import glob
from PIL import Image
import matplotlib.pyplot as plt
import matplotlib.pyplot as patches
from PIL import Imag... | 3,960 |
https://github.com/fossabot/assistance-platform-client-sdk-android/blob/master/AssistanceClientFeedbackTransferFormat/src/main/java/de/tudarmstadt/informatik/tk/assistance/model/client/feedback/content/item/ImageDto.java | Github Open Source | Open Source | Apache-2.0 | 2,017 | assistance-platform-client-sdk-android | fossabot | Java | Code | 77 | 257 | /**
*
*/
package de.tudarmstadt.informatik.tk.assistance.model.client.feedback.content.item;
import de.tudarmstadt.informatik.tk.assistance.model.client.feedback.content.ContentDto;
import de.tudarmstadt.informatik.tk.assistance.model.client.feedback.content.enums.FeedbackItemType;
/**
* @author Wladimir Schmidt ... | 44,548 |
https://github.com/kelu124/pyS3/blob/master/com/google/common/reflect/TypeToInstanceMap.java | Github Open Source | Open Source | MIT | 2,021 | pyS3 | kelu124 | Java | Code | 57 | 202 | package com.google.common.reflect;
import com.google.common.annotations.Beta;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.util.Map;
import javax.annotation.Nullable;
@Beta
public interface TypeToInstanceMap<B> extends Map<TypeToken<? extends B>, B> {
@Nullable
<T extends B> T ge... | 47,271 |
https://github.com/EiichiroIto/Stelo/blob/master/Stelost.package/SteloIdTest.class/instance/testRewind.st | Github Open Source | Open Source | MIT | 2,019 | Stelo | EiichiroIto | null | Spoken | 33 | 75 | tests-accessing
testRewind
| s |
s := SteloId new.
self assert: s size equals: 0.
5 timesRepeat: [s newNo].
self assert: s size equals: 5.
s rewind.
self assert: s size equals: 0. | 566 |
https://github.com/ryan-williams/spark-bam/blob/master/check/src/test/scala/org/hammerlab/bam/header/ContigLengthsTest.scala | Github Open Source | Open Source | Apache-2.0 | 2,021 | spark-bam | ryan-williams | Scala | Code | 313 | 1,372 | package org.hammerlab.bam.header
import org.hammerlab.genomics.reference.{ ContigName, NumLoci }
import org.hammerlab.hadoop.Configuration
import org.hammerlab.bam.test.resources.{sam2, bam2}
import org.hammerlab.test.Suite
import org.hammerlab.test.resources.File
class ContigLengthsTest
extends Suite {
implicit... | 15,029 |
https://github.com/chusopr/cloudbreak/blob/master/core/src/main/java/com/sequenceiq/cloudbreak/structuredevent/kafka/KafkaStructuredEventHandler.java | Github Open Source | Open Source | Apache-2.0 | null | cloudbreak | chusopr | Java | Code | 124 | 561 | package com.sequenceiq.cloudbreak.structuredevent.kafka;
import java.util.concurrent.ExecutionException;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.kafka.support.SendResult;
import org.springfram... | 56,226 |
https://github.com/beefsausage/101repo/blob/master/contributions/hibernate/org/softlang/tests/Load.java | Github Open Source | Open Source | MIT | 2,021 | 101repo | beefsausage | Java | Code | 59 | 159 | package org.softlang.tests;
import org.junit.Test;
import static org.junit.Assert.*;
import org.softlang.company.Company;
import org.softlang.features.Persistence;
// See online documentation for detailed instructions
public class Load {
protected Persistence manager;
protected Company sampleCompany;
// Making... | 1,134 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.