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/JetBrains/intellij-community/blob/master/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/roots/KotlinNonJvmSourceRootConverterProvider.kt | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-unknown-license-reference | 2,023 | intellij-community | JetBrains | Kotlin | Code | 603 | 2,711 | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.roots
import com.intellij.conversion.*
import com.intellij.conversion.impl.ConversionContextImpl
import com.intellij.openapi.roots.ExternalProjectSystemRegistry
imp... | 51,613 |
https://github.com/loxal/matcher/blob/master/dex/src/main/scala/com/wavesplatform/dex/AddressWsMutableState.scala | Github Open Source | Open Source | MIT | null | matcher | loxal | Scala | Code | 313 | 1,266 | package com.wavesplatform.dex
import java.util.UUID
import akka.actor.ActorRef
import cats.syntax.option._
import com.wavesplatform.dex.api.websockets.{WsAddressState, WsBalances, WsOrder}
import com.wavesplatform.dex.domain.asset.Asset
import com.wavesplatform.dex.domain.model.Denormalization._
import com.wavesplatf... | 42,372 |
https://github.com/bazelruby/rules_ruby/blob/master/ruby/private/sdk.bzl | Github Open Source | Open Source | Apache-2.0, LicenseRef-scancode-warranty-disclaimer | 2,023 | rules_ruby | bazelruby | Starlark | Code | 65 | 366 | load(
"@bazelruby_rules_ruby//ruby/private/toolchains:ruby_runtime.bzl",
_ruby_runtime = "ruby_runtime",
)
def rules_ruby_select_sdk(version = "host"):
"""Registers ruby toolchains in the WORKSPACE file."""
supported_versions = [
"host",
"2.7.0",
"2.7.1",
"2.7.2",
... | 6,531 |
https://github.com/ParanoidParrot/TA/blob/master/src/app/shared.service.ts | Github Open Source | Open Source | MIT | 2,017 | TA | ParanoidParrot | TypeScript | Code | 33 | 103 | import { Injectable } from '@angular/core';
import {BehaviorSubject} from "rxjs";
@Injectable()
export class SharedService {
private headerSource = new BehaviorSubject<string>("Welcome to UF");
currentHeader = this.headerSource.asObservable();
constructor() { }
changeHeader(header: string){
this.headerS... | 41,712 |
https://github.com/luonianxin/master/blob/master/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/MyDiary/user/ModifyPassword.jsp | Github Open Source | Open Source | OFL-1.1, MPL-2.0, LicenseRef-scancode-unknown-license-reference, xpp, Apache-2.0, LicenseRef-scancode-public-domain, BSD-2-Clause, LicenseRef-scancode-unknown | 2,019 | master | luonianxin | null | Spoken | 116 | 667 | <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改密码</title>
<%@ include file="..... | 12,551 |
https://github.com/tohenk/php-dpfb-demo/blob/master/src/RPCLogger.php | Github Open Source | Open Source | MIT | null | php-dpfb-demo | tohenk | PHP | Code | 357 | 844 | <?php
/*
* The MIT License
*
* Copyright (c) 2021 Toha <tohenk@yahoo.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the right... | 53,380 |
https://github.com/rax845163/federatorai-operator/blob/master/vendor/github.com/containers-ai/alameda/pkg/framework/datahub/config.go | Github Open Source | Open Source | Apache-2.0 | 2,019 | federatorai-operator | rax845163 | Go | Code | 25 | 68 | package datahub
// Config datahub service configuration
type Config struct {
Address string `mapstructure:"address"`
}
func NewDefaultConfig() Config {
return Config{
Address: "datahub.alameda.svc:50050",
}
}
| 17,412 |
https://github.com/dgrunwald/SharpDevelop/blob/master/src/AddIns/BackendBindings/Ruby/RubyBinding/Project/Src/RubyLineIndenter.cs | Github Open Source | Open Source | MIT, BSD-3-Clause | 2,014 | SharpDevelop | dgrunwald | C# | Code | 422 | 1,562 | // Copyright (c) 2014 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, co... | 41,485 |
https://github.com/brownsys/brownsys-hibench/blob/master/common/mahout-trunk/core/src/test/java/org/apache/mahout/vectorizer/encoders/TextValueEncoderTest.java | Github Open Source | Open Source | Apache-2.0 | null | brownsys-hibench | brownsys | Java | Code | 405 | 1,158 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 16,869 |
https://github.com/rodrigohsb/LaricaFoodOwner/blob/master/app/src/main/java/com/laricafood/owner/app/util/Utils.java | Github Open Source | Open Source | Apache-2.0 | null | LaricaFoodOwner | rodrigohsb | Java | Code | 139 | 452 | package com.laricafood.owner.app.util;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.google.gson.Gson;
import com.laricafood.owner.app.bean.User;
import com.laricafood.owner.app.persistence.UserRepository;
import java.io.InputStream;... | 51,949 |
https://github.com/ElementsProject/rust-elements/blob/master/contrib/test.sh | Github Open Source | Open Source | CC0-1.0 | 2,023 | rust-elements | ElementsProject | Shell | Code | 284 | 641 | #!/bin/sh -ex
FEATURES="serde"
# Pin dependencies as required if we are using MSRV toolchain.
if cargo --version | grep "1\.48"; then
cargo update -p once_cell --precise 1.13.1
cargo update -p quote --precise 1.0.28
cargo update -p proc-macro2 --precise 1.0.63
cargo update -p serde_json --precise 1.0.... | 24,733 |
https://github.com/GppCalcagno/SoftEng-Project/blob/master/src/main/java/it/polimi/ingsw/View/Gui/Gui.java | Github Open Source | Open Source | FTL | null | SoftEng-Project | GppCalcagno | Java | Code | 926 | 4,201 | package it.polimi.ingsw.View.Gui;
import it.polimi.ingsw.Client.ClientController;
import it.polimi.ingsw.Client.PlayerBoard;
import it.polimi.ingsw.View.ViewInterface;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import java.util.List;
public class Gui impleme... | 3,304 |
https://github.com/eerimoq/monolinux-example-project/blob/master/3pp/linux/tools/testing/selftests/kvm/lib/s390x/processor.c | Github Open Source | Open Source | MIT, Linux-syscall-note, GPL-2.0-only | 2,020 | monolinux-example-project | eerimoq | C | Code | 1,100 | 3,211 | // SPDX-License-Identifier: GPL-2.0-only
/*
* KVM selftest s390x library code - CPU-related functions (page tables...)
*
* Copyright (C) 2019, Red Hat, Inc.
*/
#define _GNU_SOURCE /* for program_invocation_name */
#include "processor.h"
#include "kvm_util.h"
#include "../kvm_util_internal.h"
#define KVM_GUEST_PA... | 6,856 |
https://github.com/Tenpi/Kisaragi/blob/master/commands/website 2/8kun.ts | Github Open Source | Open Source | GPL-3.0-only | 2,023 | Kisaragi | Tenpi | TypeScript | Code | 296 | 1,223 | import axios from "axios"
import {Message, MessageEmbed} from "discord.js"
import {Command} from "../../structures/Command"
import {Embeds} from "../../structures/Embeds"
import {Kisaragi} from "../../structures/Kisaragi"
import {Functions} from "./../../structures/Functions"
import {Permission} from "./../../structure... | 27,838 |
https://github.com/fvutils/libvsc/blob/master/src/ModelValRangelist.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | libvsc | fvutils | C++ | Code | 38 | 127 | /*
* ModelValRangelist.cpp
*
* Created on: Nov 21, 2021
* Author: mballance
*/
#include "ModelValRangelist.h"
namespace vsc {
ModelValRangelist::ModelValRangelist(bool is_signed)
: m_is_signed(is_signed) {
}
ModelValRangelist::~ModelValRangelist() {
// TODO Auto-generated destructor stub
}
} /* name... | 19,534 |
https://github.com/brantburnett/couchbase-index-manager/blob/master/packages/couchbase-index-manager/app/options.ts | Github Open Source | Open Source | Apache-2.0 | 2,021 | couchbase-index-manager | brantburnett | TypeScript | Code | 74 | 199 |
/**
* Callback which returns true if the sync should continue.
*/
export type ConfirmSyncCallback = (prompt: string) => Promise<boolean>;
export interface SyncOptions {
interactive: boolean;
confirmSync: ConfirmSyncCallback;
dryRun: boolean;
safe: boolean;
buildTimeout: number;
logger?: Logg... | 40,351 |
https://github.com/CircuitVerse/CircuitVerse/blob/master/app/queries/generic_query.rb | Github Open Source | Open Source | MIT, LicenseRef-scancode-free-unknown | 2,023 | CircuitVerse | CircuitVerse | Ruby | Code | 20 | 69 | # frozen_string_literal: true
class GenericQuery
attr_reader :relation
def initialize(query_params, relation)
@search = Search.new(query_params, relation)
end
def results
@search.call
end
end
| 28,689 |
https://github.com/marblestation/solr-service/blob/master/config.py | Github Open Source | Open Source | MIT | null | solr-service | marblestation | Python | Code | 120 | 539 | import os
LOG_LEVEL = 30 # To be deprecated when all microservices use ADSFlask
LOGGING_LEVEL = "INFO"
LOG_STDOUT = True
SOLR_SERVICE_VERSION = 'v4.10'
SOLR_SERVICE_URL = os.environ.get('SOLR_SERVICE_URL', 'http://localhost:8983/solr')
SOLR_SERVICE_TVRH_HANDLER = SOLR_SERVICE_URL + '/tvrh'
SOLR_SERVICE_SEARCH_HANDLER ... | 20,183 |
https://github.com/smartboot/smart-socket/blob/master/aio-core/src/main/java/org/smartboot/socket/enhance/EnhanceAsynchronousServerChannel.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | smart-socket | smartboot | Java | Code | 986 | 3,193 | /*******************************************************************************
* Copyright (c) 2017-2021, org.smartboot. All rights reserved.
* project name: smart-socket
* file name: EnhanceAsynchronousSocketChannel.java
* Date: 2021-07-29
* Author: sandao (zhengjunweimail@163.com)
*
*************************... | 53,271 |
https://github.com/RN8209C/RN8209C-SDK/blob/master/example_prj_52832/rn8209c_52832/components/softdevice/s132_nrf52_5.0.0-3.alpha/s132_nrf52_5.0.0-3.alpha_API/doc/html/a00182.js | Github Open Source | Open Source | Apache-2.0 | 2,021 | RN8209C-SDK | RN8209C | JavaScript | Code | 10 | 52 | var a00182 =
[
[ "BLE_CONN_CFG_TAG_DEFAULT", "a00182.html#ga89acf9001767489b7df523c80785fae5", null ]
]; | 10,978 |
https://github.com/acbin/seckill-project/blob/master/src/main/java/com/bingo/dao/ProductMapper.java | Github Open Source | Open Source | MIT | 2,019 | seckill-project | acbin | Java | Code | 106 | 373 | package com.bingo.dao;
import com.bingo.model.Product;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
/**
* ProductMapper 接口
*
* @author bingo
* @since 2018/11/3
*/
@Mapper
public interface ProductMapper {
String TABLE_NAME = "seckill_product";
String INSERT_FI... | 55,214 |
https://github.com/bnowack/phue/blob/master/src/Phue/Security/elements/phue-login-form.vue | Github Open Source | Open Source | MIT | 2,018 | phue | bnowack | Vue | Code | 237 | 952 | <template>
<form @submit="onSubmit" method="POST" action="">
<md-card class="phue-login-form">
<md-card-header>
<div class="md-title">{{ heading }}</div>
</md-card-header>
<md-card-content>
<md-field :class="{'md-invalid': showAccountErro... | 51,803 |
https://github.com/anselmobd/tuzle/blob/master/sql/016 copia preco informado para medio.sql | Github Open Source | Open Source | MIT | 2,019 | tuzle | anselmobd | SQL | Code | 8 | 33 | UPDATE basi_010 i
SET
i.PRECO_MEDIO = i.PRECO_CUSTO_INFO
;
| 53,549 |
https://github.com/play0451/wan-android-jetpack-mvvm-practice/blob/master/app/src/main/java/com/gw/mvvm/wan/network/NetworkManager.kt | Github Open Source | Open Source | MIT | null | wan-android-jetpack-mvvm-practice | play0451 | Kotlin | Code | 83 | 350 | package com.gw.mvvm.wan.network
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import com.blankj.utilcode.util.NetworkUtils
import com.gw.mvvm.framework.ext.utils.connectivityManager
import com.ku... | 51,173 |
https://github.com/stevenhtun/School-Management-System-PHP/blob/master/teacher/includes/exam_mark_setting_datatable_by_ajax.php | Github Open Source | Open Source | FSFUL | 2,022 | School-Management-System-PHP | stevenhtun | PHP | Code | 221 | 1,196 | <?php include("db.php");
session_start();
$branchid = $_SESSION['LOGIN_BRANCH'];
$s = "SELECT id,class_id,stu_id,sub_id,subjective_mark,objective_mark,ct_mark,total_mark,grade,YEAR,period FROM `std_class_exam_mark_setting` WHERE branch_id=$branchid ORDER BY id DESC";
$str = m... | 49,802 |
https://github.com/saseungmin/project-react-2-saseungmin/blob/master/src/services/api.js | Github Open Source | Open Source | MIT | 2,021 | project-react-2-saseungmin | saseungmin | JavaScript | Code | 326 | 896 | import { db, auth, fireStore } from './firebase';
const timeStamp = (dateTime) => fireStore.Timestamp.fromDate(new Date(dateTime));
const branchGetGroups = (tag) => {
if (tag) {
return db
.collection('groups')
.where('tags', 'array-contains', tag)
.orderBy('applyEndDate', 'asc')
.get();
... | 20,208 |
https://github.com/Krypton-Suite/Extended-Toolkit/blob/master/Source/Krypton Toolkit/Krypton.Toolkit.Suite.Extended.Software.Updater/NetSparkle/Core/Classes/AppCastItem.cs | Github Open Source | Open Source | BSD-3-Clause | 2,023 | Extended-Toolkit | Krypton-Suite | C# | Code | 1,654 | 4,485 | #region BSD License
/*
* Use of this source code is governed by a BSD-style
* license or other governing licenses that can be found in the LICENSE.md file or at
* https://raw.githubusercontent.com/Krypton-Suite/Extended-Toolkit/master/LICENSE
*/
#endregion
namespace Krypton.Toolkit.Suite.Extended.Software.Updater... | 16,705 |
https://github.com/jorgicor/uz80as/blob/master/tests/longlabel.test | Github Open Source | Open Source | MIT | 2,023 | uz80as | jorgicor | Shell | Code | 4 | 24 | #!/bin/sh
nom=longlabel
. "$srcdir"/chkep0.inc
| 46,748 |
https://github.com/kanivel/android-mvc-framework/blob/master/src/com/android_mvc/framework/gps/GetMyLocationEventTask.java | Github Open Source | Open Source | Apache-2.0 | 2,018 | android-mvc-framework | kanivel | Java | Code | 173 | 990 | package com.android_mvc.framework.gps;
import com.android_mvc.framework.common.FWUtil;
import com.android_mvc.framework.task.SequentialEventTask;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundl... | 29,906 |
https://github.com/unlock-protocol/unlock/blob/master/unlock-app/src/hooks/usePostmateParent.ts | Github Open Source | Open Source | MIT | 2,023 | unlock | unlock-protocol | TypeScript | Code | 52 | 126 | import { useState, useEffect } from 'react'
import Postmate from 'postmate'
export const usePostmateParent = (model: any = {}) => {
const [parent, setParent] = useState<Postmate.ChildAPI | undefined>(undefined)
const handshake = async () => {
const parent = await new Postmate.Model(model)
setParent(parent... | 29,012 |
https://github.com/pk-sam/crosswalk-test-suite/blob/master/misc/webappmanu-linux-tests/webapp/resources/org.webapps.ismartbook/sample_book/OEBPS/controls/label/model.js | Github Open Source | Open Source | BSD-3-Clause | 2,015 | crosswalk-test-suite | pk-sam | JavaScript | Code | 28 | 80 | define(function(require, exports, module) {
var Base = require('base');
var LabelModel = Base.Model.extend ({
defaults: {
type: 'default',
size: 16,
family: 'Arial',
color: 'black'
}
});
return LabelModel;
}); | 3,197 |
https://github.com/ustaxcourt/ef-cms/blob/master/web-client/src/presenter/actions/CourtIssuedDocketEntry/fileAndServeCourtIssuedDocumentAction.ts | Github Open Source | Open Source | LicenseRef-scancode-public-domain, CC0-1.0 | 2,023 | ef-cms | ustaxcourt | TypeScript | Code | 107 | 287 | import { state } from '@web-client/presenter/app.cerebral';
/**
* File and serve a court issued document
* @param {object} providers the providers object
* @param {object} providers.applicationContext the applicationContext
* @param {object} providers.get the cerebral get function
* @param {object} providers.prop... | 41,509 |
https://github.com/yemingfeng/kit-message/blob/master/kit-message-client/src/main/java/com/kit/message/ProducerMain.java | Github Open Source | Open Source | Apache-2.0 | 2,021 | kit-message | yemingfeng | Java | Code | 59 | 183 | package com.kit.message;
import com.kit.message.producer.MessageProducer;
import java.util.Random;
public class ProducerMain {
public static void main(String[] args) throws InterruptedException {
MessageProducer messageProducer = new MessageProducer("127.0.0.1", 8800);
for (int i = 0; i < 10000; i++) {
... | 15,465 |
https://github.com/okpoyu/docker-volume-vmax/blob/master/vmaxafdockerplugin/exception.py | Github Open Source | Open Source | Apache-2.0 | 2,019 | docker-volume-vmax | okpoyu | Python | Code | 364 | 926 | import sys
import six
import webob.exc
from oslo_config import cfg
from oslo_log import log as logging
from webob.util import status_generic_reasons
from webob.util import status_reasons
LOG = logging.getLogger(__name__)
exc_log_opts = [
cfg.BoolOpt('fatal_exception_format_errors',
default=False,... | 45,345 |
https://github.com/osoco/better-ways-of-thinking-about-software/blob/master/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/common/djangoapps/util/tests/test_keyword_sub_utils.py | Github Open Source | Open Source | MIT | 2,022 | better-ways-of-thinking-about-software | osoco | Python | Code | 346 | 1,231 | """
Tests for keyword_substitution.py
"""
from unittest.mock import patch
from ddt import ddt, file_data
from common.djangoapps.student.tests.factories import UserFactory
from common.djangoapps.util import keyword_substitution as Ks
from common.djangoapps.util.date_utils import get_default_time_display
from xmodule.m... | 37,136 |
https://github.com/Nedal-Erekat/note/blob/master/lib/models/notes-collection.js | Github Open Source | Open Source | MIT | null | note | Nedal-Erekat | JavaScript | Code | 72 | 226 | 'use strict';
const schema = require('./notes.js')
class Note {
constructor() {
}
creat(newRecord) {
let toBeAdded = new schema(newRecord)
return toBeAdded.save();
}
get(obj) {
if (obj.category) {
console.log('I will show you the catedory');
... | 42,989 |
https://github.com/alfirahadian/ticketing/blob/master/application/models/Attendance_model.php | Github Open Source | Open Source | LicenseRef-scancode-unknown-license-reference, MIT | 2,016 | ticketing | alfirahadian | PHP | Code | 27 | 122 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Attendance_model extends CI_Model {
public function add_attendance()
{
$data=array(
'name'=>$this->input->post('name'),
'email'=>$this->input->post('email'),
'afiliasi'=>$this->input->post('afiliasi'));
... | 915 |
https://github.com/tails5555/Our_Title_Academy_2018_Server/blob/master/ContextAPI/src/main/java/io/kang/vo/BestTitleVO.java | Github Open Source | Open Source | MIT | 2,018 | Our_Title_Academy_2018_Server | tails5555 | Java | Code | 40 | 144 | package io.kang.vo;
import io.kang.dto.mysql.TitleDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode
@AllArgsConstructor
public class BestTitleVO {
private String userId;
private String context;
private long likeCount;
public static Bes... | 10,430 |
https://github.com/rosmarmendoza/daily-meals/blob/master/dailymeals/urls.py | Github Open Source | Open Source | MIT | 2,021 | daily-meals | rosmarmendoza | Python | Code | 42 | 171 | # Django
from django.urls import include, path
# Django Rest Framework
from rest_framework import routers
# Views
from . import views
router = routers.DefaultRouter()
router.register(r'users', views.UserViewSet, basename='users')
router.register(r'meals', views.MealViewSet, basename='meals')
router.register(r'foods... | 47,588 |
https://github.com/185driver/vuetify/blob/master/packages/docs/src/components/doc/BecomeSponsor.vue | Github Open Source | Open Source | MIT | 2,020 | vuetify | 185driver | Vue | Code | 22 | 115 | <template>
<v-btn
large
href="https://github.com/users/johnleider/sponsorship"
>
<v-icon left>
$mdiGithub
</v-icon>
{{ $t('become-a-sponsor') }}
</v-btn>
</template>
<script>
export default {
name: 'BecomeSponsor',
}
</script>
| 47,466 |
https://github.com/grunkgrunk/lovejam2020/blob/master/test2.lua | Github Open Source | Open Source | MIT | null | lovejam2020 | grunkgrunk | Lua | Code | 144 | 410 | local lume = require("libraries/lume")
px = 500
py = 300
direction = -math.pi/2
angspd = 1
mag = 10
amp = 10
ampspd = 10
points = {}
time = 0
function cfreq(amp)
return 100/amp
end
function cspeed(amp)
return 600/amp
end
function love.update(dt)
time = time + dt * cfreq(amp)
dx = math.cos(direction)
... | 32,580 |
https://github.com/WesUnwin/obj-file-parser/blob/master/tests/OBJFile.test.js | Github Open Source | Open Source | MIT | 2,022 | obj-file-parser | WesUnwin | JavaScript | Code | 814 | 2,325 | 'use strict';
const OBJFile = require('../src/OBJFile');
describe('OBJ File Parser', () => {
describe('Object Name', () => {
it('assigns objects the default name "untitled" if no object name was declared', () => {
const fileContents = "v 1.0 2.0 3.0";
const modelName = new OBJFile(fileContents).pars... | 49,276 |
https://github.com/dokmeh/mesh/blob/master/js/admin/events/order.js | Github Open Source | Open Source | Apache-2.0, MIT | 2,016 | mesh | dokmeh | JavaScript | Code | 48 | 206 | $(document).ready(function(){
$('.pbox').arrangeable();
$("#porderform").submit(function(){
$("form input:submit").prop("disabled", true);
var formData = new FormData(this);
$.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: form... | 16,427 |
https://github.com/huanghaiyang/curie.dart/blob/master/test/eachLimit_test.dart | Github Open Source | Open Source | MIT | 2,021 | curie.dart | huanghaiyang | Dart | Code | 84 | 323 | import 'package:curie/curie.dart';
import 'package:curie/src/utils.dart';
import 'package:test/test.dart';
void main() {
group('async', () {
test('eachLimit', () async {
List<Function> functions = new List();
functions.add(delayedConstantFunction(1, 100));
functions.add(delayedConstantFunction(... | 6,561 |
https://github.com/likstepan/source/blob/master/packages/apps/Launcher2/src/com/android/launcher2/SceneChooserDialogFragment.java | Github Open Source | Open Source | Apache-2.0 | 2,013 | source | likstepan | Java | Code | 1,057 | 3,102 | /*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 app... | 30,189 |
https://github.com/lmperezCuba/AlgorithmsJavaLibrary/blob/master/AlgotihmsJavaLibrary/src/NumberTheory/ModularInverse.java | Github Open Source | Open Source | Apache-2.0 | 2,019 | AlgorithmsJavaLibrary | lmperezCuba | Java | Code | 206 | 437 | package NumberTheory;
/**
* Modular Inverse
* <pre>
* [6] page.202
* CodeSignal Problem
* https://app.codesignal.com/interview-practice/task/tNajEfDckCgSvrjQp
* </pre>
*
* @author lmperez
*/
public class ModularInverse {
ExtendedEuclid ee;
public ModularInverse() {
ee = new ExtendedEuclid();... | 29,329 |
https://github.com/brodyh/tensorflow/blob/master/tensorflow/core/kernels/cwise_op_logical_or.cc | Github Open Source | Open Source | Apache-2.0 | 2,015 | tensorflow | brodyh | C++ | Code | 18 | 136 | #include "tensorflow/core/kernels/cwise_ops_common.h"
namespace tensorflow {
REGISTER_KERNEL_BUILDER(Name("LogicalOr").Device(DEVICE_CPU),
BinaryOp<CPUDevice, functor::logical_or>);
#if GOOGLE_CUDA
REGISTER_KERNEL_BUILDER(Name("LogicalOr").Device(DEVICE_GPU),
BinaryOp<GP... | 12,043 |
https://github.com/enebe-nb/SokuMods/blob/master/modules/DiscordIntegration/CompiledString/BasicCompiledString.hpp | Github Open Source | Open Source | Unlicense | 2,022 | SokuMods | enebe-nb | C++ | Code | 34 | 143 | //
// Created by PinkySmile on 15/01/2021.
//
#ifndef SWRSTOYS_BASICCOMPILEDSTRING_HPP
#define SWRSTOYS_BASICCOMPILEDSTRING_HPP
#include "CompiledString.hpp"
class BasicCompiledString: public CompiledString {
private:
std::string _value;
public:
BasicCompiledString(const std::string &&str);
std::string getString... | 43,022 |
https://github.com/manolisvasilakis/smartgas/blob/master/back/app/controller/Shops/getShopsController.js | Github Open Source | Open Source | MIT | 2,019 | smartgas | manolisvasilakis | JavaScript | Code | 178 | 628 | 'use strict';
const checks = require("../utils.js");
var getem = require('../../model/Shops/getShopsModel.js');
exports.view_shops = function(req, res) {
if (req.query.format && req.query.format != "json") {
res.status(400).json({"success":false, "message":"Unsupported format !"});
}
else if(req.query.sta... | 53,819 |
https://github.com/arvitaly/sails-fixture-app/blob/master/api/models/Model5.ts | Github Open Source | Open Source | MIT | 2,017 | sails-fixture-app | arvitaly | TypeScript | Code | 9 | 22 | export = {
attributes: {
name: "string",
},
};
| 47,973 |
https://github.com/mpouwels/Event-Agent-2015/blob/master/src/templates/partials/slider.hbs | Github Open Source | Open Source | MIT | 2,016 | Event-Agent-2015 | mpouwels | null | Spoken | 76 | 379 | <section class="event-hero event-hero--slider">
<div class="event-hero-content">
<div class="table">
<div class="vertical-align">
<div class="container">
<div class="row">
<div class="col-xs-10 col-xs-offset-1 text-center">
... | 32,624 |
https://github.com/funkring/fclipboard/blob/master/cordova/node_modules/plugman/node_modules/cordova-lib/src/util/npm-helper.js | Github Open Source | Open Source | Apache-2.0 | 2,015 | fclipboard | funkring | JavaScript | Code | 313 | 671 | /**
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use... | 31,219 |
https://github.com/RangerMauve/sodium-javascript/blob/master/index.js | Github Open Source | Open Source | MIT | 2,020 | sodium-javascript | RangerMauve | JavaScript | Code | 63 | 370 | 'use strict'
// Based on https://github.com/dchest/tweetnacl-js/blob/6dcbcaf5f5cbfd313f2dcfe763db35c828c8ff5b/nacl-fast.js.
// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri.
// Public domain.
//
// Implementation derived from TweetNaCl version 20140427.
// See for details: http://tweetnacl.cr.yp.to/
forward(re... | 25,263 |
https://github.com/Sanket9825/Bike-Rental/blob/master/searchbike.php | Github Open Source | Open Source | MIT | 2,021 | Bike-Rental | Sanket9825 | PHP | Code | 222 | 1,165 | <?php
$conn=mysqli_connect('localhost','root','');
if(!$conn)
{
echo 'Not Connected To Server';
}
if(!mysqli_select_db($conn , 'bikerental'))
{
echo 'Database Not Selected';
}
$queryy1=mysqli_query($conn,"SELECT Brand from brand");
if(isset($_POST['brandname']))
{
$vb=$_POST['brandname'];
// echo $vb;
$_SESSION['vb'] ... | 6,157 |
https://github.com/robzoros/tienda_online/blob/master/carga_contadores.py | Github Open Source | Open Source | MIT | null | tienda_online | robzoros | Python | Code | 178 | 619 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from cassandra.cluster import Cluster
# Conectamos al Cluster
cluster = Cluster()
session = cluster.connect('tienda_online')
#******************************************************
# CONTADORES
#******************************************************
# Cargamos l... | 19,773 |
https://github.com/libcs/game.ultimaonline.io/blob/master/UltimaOnline.Data/Engines/Factions/Mobiles/Vendors/FactionBottleVendor.cs | Github Open Source | Open Source | MIT | 2,019 | game.ultimaonline.io | libcs | C# | Code | 184 | 634 | using System;
using System.Collections.Generic;
using UltimaOnline;
using UltimaOnline.Items;
using UltimaOnline.Mobiles;
namespace UltimaOnline.Factions
{
public class FactionBottleVendor : BaseFactionVendor
{
public FactionBottleVendor(Town town, Faction faction) : base(town, faction, "the Bottle Sel... | 39,053 |
https://github.com/TheAlgorithms/Go/blob/master/other/doc.go | Github Open Source | Open Source | MIT | 2,023 | Go | TheAlgorithms | Go | Code | 24 | 31 | // Package other is dedicated to algorithms that
// do not quite fit into any of the other subpackages in this repository.
package other
| 41,123 |
https://github.com/jacebrowning/voc/blob/master/tests/structures/test_exception.py | Github Open Source | Open Source | BSD-3-Clause | 2,019 | voc | jacebrowning | Python | Code | 271 | 1,038 | from unittest import expectedFailure
from ..utils import TranspileTestCase
class ExceptionTests(TranspileTestCase):
def test_raise(self):
# Caught exception
self.assertCodeExecution("""
raise KeyError("This is the name")
print('Done.')
""", exits_early=True)
... | 3,715 |
https://github.com/mikeyrcamp/kustomize/blob/master/kyaml/Makefile | Github Open Source | Open Source | Apache-2.0 | null | kustomize | mikeyrcamp | Makefile | Code | 219 | 925 | # Copyright 2019 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
MYGOBIN := $(shell go env GOPATH)/bin
GOPATH := $(shell go env GOPATH)
export PATH := $(MYGOBIN):$(PATH)
.PHONY: generate license fix vet fmt test lint tidy openapi schema
all: generate license fix vet fmt test lint tidy
fix:
go fix ./..... | 46,361 |
https://github.com/apparena/styleguide/blob/master/source/frontend/include/props-container.jsx | Github Open Source | Open Source | MIT | null | styleguide | apparena | null | Spoken | 248 | 944 | import React from 'react';
import PropTypes from 'prop-types';
import {ReactComponent, Table} from 'apparena-patterns-react';
import styles from './styles.module.scss';
export default class Props extends ReactComponent {
static defaultProps = {
code: PropTypes.string.isRequired,
children: PropTypes... | 28,153 |
https://github.com/dasmysh/VulkanFramework_Lib/blob/master/include/vkfw_core/gfx/vk/wrappers/ResourceViews.h | Github Open Source | Open Source | MIT | null | VulkanFramework_Lib | dasmysh | C | Code | 85 | 310 | /**
* @file ImageResources.h
* @author Sebastian Maisch <sebastian.maisch@googlemail.com>
* @date 2021.09.25
*
* @brief Wrapper for the vulkan image related objects.
*/
#pragma once
#include "VulkanObjectWrapper.h"
#include "main.h"
namespace vkfw_core::gfx {
class ImageView : public VulkanObjectWrap... | 50,984 |
https://github.com/ethansaxenian/RosettaDecode/blob/master/lang/Java/s-expressions-5.java | Github Open Source | Open Source | MIT | 2,018 | RosettaDecode | ethansaxenian | Java | Code | 152 | 452 | package jfkbits;
import java.util.AbstractCollection;
import java.util.Arrays;
import java.util.Iterator;
import java.util.ArrayList;
import jfkbits.LispParser.Expr;
public class ExprList extends ArrayList<Expr> implements Expr
{
ExprList parent = null;
int indent =1;
public int getIndent()
{
... | 15,192 |
https://github.com/nickc01/cuberite/blob/master/src/Mobs/Bat.cpp | Github Open Source | Open Source | Apache-2.0 | 2,022 | cuberite | nickc01 | C++ | Code | 32 | 133 |
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "Bat.h"
#include "../Chunk.h"
cBat::cBat(void) :
Super("Bat", mtBat, "entity.bat.hurt", "entity.bat.death", "entity.bat.ambient", 0.5f, 0.9f)
{
SetGravity(-2.0f);
SetAirDrag(0.05f);
}
| 14,416 |
https://github.com/erlandsona/elm-spa/blob/master/docs/src/UI.elm | Github Open Source | Open Source | BSD-3-Clause | null | elm-spa | erlandsona | null | Spoken | 1,275 | 3,007 | module UI exposing
( Html, none, row, col
, h1, h2, h3, h4, h5, h6, markdown
, pad, padX, padY, align
, link
, logo, icons, iconLink
, gutter, hero
)
{-|
@docs Html, none, el, row, col
@docs h1, h2, h3, h4, h5, h6, markdown
@docs pad, padX, padY, align
@docs link
@docs logo, icons, iconLin... | 34,574 |
https://github.com/tootedom/spray-cache-spymemcached/blob/master/src/main/java/org/greencheek/spy/extensions/hashing/JenkinsHash.java | Github Open Source | Open Source | Apache-2.0 | 2,014 | spray-cache-spymemcached | tootedom | Java | Code | 113 | 294 | package org.greencheek.spy.extensions.hashing;
import net.spy.memcached.HashAlgorithm;
import java.io.UnsupportedEncodingException;
/**
* Taken from xmemcached:
* https://github.com/killme2008/xmemcached/blob/master/src/main/java/net/rubyeye/xmemcached/HashAlgorithm.java
*/
public class JenkinsHash implements Has... | 41,916 |
https://github.com/box-software/SlinkyTyped/blob/master/r/relay-runtime/src/main/scala/typingsSlinky/relayDashRuntime/Anon_EdgeData.scala | Github Open Source | Open Source | MIT | 2,020 | SlinkyTyped | box-software | Scala | Code | 50 | 251 | package typingsSlinky.relayDashRuntime
import org.scalablytyped.runtime.StringDictionary
import typingsSlinky.relayDashRuntime.libStoreRelayConnectionMod.ConnectionEvent
import typingsSlinky.relayDashRuntime.relayDashRuntimeStrings.update
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.anno... | 2,302 |
https://github.com/ryancco/laravel-pages/blob/master/tests/PagesControllerTest.php | Github Open Source | Open Source | MIT | 2,021 | laravel-pages | ryancco | PHP | Code | 161 | 787 | <?php
namespace Ryancco\Pages\Tests;
use Ryancco\Pages\Events\IncomingPageRequest;
use Ryancco\Pages\Events\PageFound;
use Ryancco\Pages\Events\PageNotFound;
use Ryancco\Pages\Http\Controllers\PagesController;
use Ryancco\Pages\Pages;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class PagesContr... | 11,442 |
https://github.com/siundu254/Ember-question-answer/blob/master/tmp/funnel-output_path-R4Yq0SRY.tmp/modules/lodash/internal/initCloneArray.js | Github Open Source | Open Source | MIT | 2,017 | Ember-question-answer | siundu254 | JavaScript | Code | 1 | 28 | /home/rahmak/ip3/node_modules/lodash-es/internal/initCloneArray.js | 8,413 |
https://github.com/corersky/semi-conductor-image-classification-first/blob/master/plot_samples.ipynb | Github Open Source | Open Source | MIT | 2,020 | semi-conductor-image-classification-first | corersky | Jupyter Notebook | Code | 439 | 1,833 | {
"cells": [
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt\n",
"from utils.data_utils import data_generators"
]
},
{
"cell_type": "code",
"execution_... | 7,169 |
https://github.com/gwierzchowski/cryptoexch/blob/master/src/zonda/trading_orderbook/pb/trading_orderbook.proto | Github Open Source | Open Source | MIT | 2,023 | cryptoexch | gwierzchowski | null | Spoken | 54 | 116 | syntax = "proto3";
message OrderBooks {
message Order {
enum OrderType {
BYE = 0;
SELL = 1;
}
uint64 timestamp = 1;
OrderType otype = 2;
uint32 count = 3;
float rate = 4;
float curr_amt = 5;
float prev_amt = 6;
float start_amt = 7;
}
repeated Order orders = 1;
}
| 47,706 |
https://github.com/wikimedia/mediawiki-extensions-Thanks/blob/master/includes/ApiThank.php | Github Open Source | Open Source | MIT | 2,018 | mediawiki-extensions-Thanks | wikimedia | PHP | Code | 532 | 1,480 | <?php
namespace MediaWiki\Extension\Thanks;
use ApiBase;
use ExtensionRegistry;
use ManualLogEntry;
use MediaWiki\CheckUser\Hooks;
use MediaWiki\MediaWikiServices;
use Title;
use User;
/**
* Base API module for Thanks
*
* @ingroup API
* @ingroup Extensions
*/
abstract class ApiThank extends ApiBase {
protected... | 9,432 |
https://github.com/darkoverlordofdata/node-vala-sdl2/blob/master/src/ApplicationListener.gs | Github Open Source | Open Source | Apache-2.0 | 2,017 | node-vala-sdl2 | darkoverlordofdata | null | Spoken | 38 | 88 | /**
* ApplicationListener.gs
* port of libgdx.
*
*
*/
[indent=4]
namespace sdx
interface ApplicationListener : Object
def abstract create()
def abstract resize(width: int, height: int)
def abstract render()
def abstract pause()
def abstract resume()
def abstrac... | 23,328 |
https://github.com/hapifhir/org.hl7.fhir.core/blob/master/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/instance/EnableWhenEvaluator.java | Github Open Source | Open Source | Apache-2.0 | 2,023 | org.hl7.fhir.core | hapifhir | Java | Code | 1,523 | 4,561 | package org.hl7.fhir.validation.instance;
/*
Copyright (c) 2011+, HL7, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copy... | 50,026 |
https://github.com/shawnritchie/AxonFramework/blob/master/core/src/main/java/org/axonframework/eventhandling/EventRegistrationCallback.java | Github Open Source | Open Source | Apache-2.0 | 2,016 | AxonFramework | shawnritchie | Java | Code | 214 | 385 | /*
* Copyright (c) 2010-2014. Axon Framework
*
* 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 ... | 18,481 |
https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/hybridaks/Azure.ResourceManager.HybridContainerService/src/Generated/Models/VirtualNetworksPropertiesInfraVnetProfileVmware.cs | Github Open Source | Open Source | LGPL-2.1-or-later, Apache-2.0, MIT, LicenseRef-scancode-generic-cla | 2,023 | azure-sdk-for-net | Azure | C# | Code | 95 | 262 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.ResourceManager.HybridContainerService.Models
{
/// <summary> Infra network profile for VMware platform. </summary>
internal partial class VirtualNetworksProp... | 31,033 |
https://github.com/joegeneq/apc-softdev-it111-02/blob/master/practice/ecdadlla/basic/views/layouts/main.php | Github Open Source | Open Source | BSD-3-Clause | 2,015 | apc-softdev-it111-02 | joegeneq | PHP | Code | 509 | 2,027 | <?php
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;
use claudejanz\jquerySlider\widgets\SliderWidget;
use yii\web\JsExpression;
use yii\foundation\widgets\Orbit;
use yii\bootstrap\Carousel;
/* @var $this \yii\web\View */
/* @var $content st... | 47,576 |
https://github.com/Galina337/neotracker-wallet/blob/master/src/wallet/shared/components/open/OpenWalletPrivateKey.js | Github Open Source | Open Source | MIT | 2,017 | neotracker-wallet | Galina337 | JavaScript | Code | 381 | 1,245 | /* @flow */
import React from 'react';
import classNames from 'classnames';
import {
compose,
getContext,
pure,
withHandlers,
withProps,
withState,
} from 'recompose';
import { connect } from 'react-redux';
import { createStyleSheet } from 'jss-theme-reactor';
import { withRouter } from 'react-router-dom';... | 18,173 |
https://github.com/zendframework/zf3-web/blob/master/bin/stats.php | Github Open Source | Open Source | BSD-3-Clause | 2,021 | zf3-web | zendframework | PHP | Code | 173 | 695 | <?php
chdir(dirname(__DIR__));
require 'vendor/autoload.php';
if (! isset($argv[1])) {
fwrite(STDERR, printf("Usage: php %s <path/to/stat>\n", basename(__FILE__)));
exit(1);
}
$fileStats = $argv[1];
$fileZfComponents = 'config/autoload/zf-components.global.php';
if (! file_exists($fileZfComponents)) {
fw... | 5,170 |
https://github.com/haiiro-io/violet/blob/master/lib/page-base.ts | Github Open Source | Open Source | CC-BY-4.0, MIT | 2,023 | violet | haiiro-io | TypeScript | Code | 127 | 389 | import { Component, Vue } from "nuxt-property-decorator";
import VueI18n from "vue-i18n";
@Component({
head (this: PageBase): { [key: string]: any } {
return {
title: this.pageTitle,
meta: [
{ property: "og:url", content: this.ogUrl },
{ hid: "author", name: "author", content: this.$t... | 54,262 |
https://github.com/jeffer80/dxf-2-svg/blob/master/test/unit/polylines.test.js | Github Open Source | Open Source | MIT | 2,021 | dxf-2-svg | jeffer80 | JavaScript | Code | 115 | 316 | 'use strict';
const fs = require('fs');
const assert = require('chai').assert;
const lib = require('../..');
const dfxContents = fs.readFileSync(__dirname + '/../resources/polylines.dxf', 'utf-8');
describe('POLYLINE', () => {
it('can be parsed', () => {
const entities = lib.parseString(dfxContents).entities;... | 6,361 |
https://github.com/ashrafimanesh/larave-nested-category/blob/master/src/routes.php | Github Open Source | Open Source | MIT | null | larave-nested-category | ashrafimanesh | PHP | Code | 22 | 91 | <?php
/**
* Created by PhpStorm.
* User: ashrafimanesh
* Date: 11/12/16
* Time: 10:11 AM
*/
Route::group(['prefix'=>'nestedCategories','middleware' => ['web']],function(){
Route::resource('/','Ashrafi\NestedCategories\NestedCategoriesController');
});
| 30,374 |
https://github.com/SNDST00M/vscode-matlab-interactive-terminal/blob/master/interfaces/unicode/ml_selection.py | Github Open Source | Open Source | MIT | 2,022 | vscode-matlab-interactive-terminal | SNDST00M | Python | Code | 27 | 68 | # Developed by Aurelien Pommel and other contributors
from matlab_interface import MatlabInterface
import sys
matlab = MatlabInterface()
# Run the initial selection given in arg
matlab.run_selection(sys.argv[1])
matlab.interactive_loop() | 4,522 |
https://github.com/BiosBoy/mern-app/blob/master/src/Modules/ShowModal.js | Github Open Source | Open Source | MIT | 2,019 | mern-app | BiosBoy | JavaScript | Code | 38 | 152 | import DOMClassNames from '../Variables/DOMClassNames'
let ShowModal = (target) => {
let closestShow = target.closest('button[name=show]');
if (closestShow) {
let modal = document.querySelector('.modal');
let modalDialog = document.querySelector('.modal-dialog');
modal.classList.add(DO... | 18,129 |
https://github.com/tschimbr/artmachine/blob/master/src/ch/eonum/artmachine/main/CreateJSON.java | Github Open Source | Open Source | MIT | 2,022 | artmachine | tschimbr | Java | Code | 53 | 191 | package ch.eonum.artmachine.main;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import ch.eonum.artmachine.CircleFractal;
import ch.eonum.artmachine.Drawing;
public class CreateJSON {
public static void main(String[] args) throws IOException {
CircleFractal cf = new CircleFractal(4... | 15,507 |
https://github.com/facebook/litho/blob/master/litho-it/src/main/java/com/facebook/litho/widget/EventHandlerBindingSectionSpec.kt | Github Open Source | Open Source | Apache-2.0 | 2,023 | litho | facebook | Kotlin | Code | 253 | 884 | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 13,554 |
https://github.com/SylvesterAbreu/sling/blob/master/samples/mail-archive/ui/src/main/resources/initial-content/apps/mailarchiveserver/util.js | Github Open Source | Open Source | Apache-2.0 | 2,022 | sling | SylvesterAbreu | JavaScript | Code | 163 | 371 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 43,760 |
https://github.com/kejsar/gc-auto-parts-sc/blob/master/csc/Classes/Checks/CheckPost.php | Github Open Source | Open Source | MIT | null | gc-auto-parts-sc | kejsar | PHP | Code | 108 | 480 | <?php
namespace SCL\Classes\Checks;
defined("SCL_SAFETY_CONST") or die;
class CheckPost
{
private $dbh;
private $post_data;
private $db_user_data;
public function __construct($dbh)
{
$this->dbh = $dbh;
}
public function init()
{
$this->get_post_data();
$this->... | 35,528 |
https://github.com/aoju/bus/blob/master/bus-starter/src/main/java/org/aoju/bus/starter/tracer/TracerConfiguration.java | Github Open Source | Open Source | MIT | 2,023 | bus | aoju | Java | Code | 452 | 1,565 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 43,859 |
https://github.com/random-python/mail_serv/blob/master/src/main/mail_serv/etc/systemd/system/arkon.service | Github Open Source | Open Source | Apache-2.0 | 2,022 | mail_serv | random-python | null | Spoken | 12 | 85 |
[Unit]
Description=Arkon service
After=local-fs.target network.target
[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=-/etc/conf.d/arkon.conf
ExecStart=/usr/bin/mail_serv_arkon
[Install]
WantedBy=multi-user.target
| 36,400 |
https://github.com/Pixelated-Project/aosp-android-jar/blob/master/android-31/src/com/android/settingslib/users/EditUserPhotoController.java | Github Open Source | Open Source | MIT | 2,022 | aosp-android-jar | Pixelated-Project | Java | Code | 1,566 | 5,266 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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 app... | 23,056 |
https://github.com/warmchang/turms/blob/master/turms-client-kotlin/src/main/java/im/turms/client/model/proto/model/user/NearbyUser.java | Github Open Source | Open Source | Apache-2.0 | null | turms | warmchang | Java | Code | 1,908 | 6,842 | /*
* Copyright (C) 2019 The Turms Project
* https://github.com/turms-im/turms
*
* 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
*
*... | 47,849 |
https://github.com/bendavis/gehome/blob/master/gehomesdk/erd/values/laundry/dryness_level.py | Github Open Source | Open Source | MIT | 2,021 | gehome | bendavis | Python | Code | 32 | 115 | import enum
@enum.unique
class DrynessLevel(enum.Enum):
DASH = "---"
DAMP = "Damp"
LESS_DRY = "Less Dry"
DRY = "Dry"
MORE_DRY = "More Dry"
EXTRA_DRY = "Extra Dry"
def stringify(self, **kwargs):
return self.name.replace("STATUS_","").replace("_"," ").title()
| 29,013 |
https://github.com/react-state/store/blob/master/projects/react-state/src/decorators/inject-store.decorator.ts | Github Open Source | Open Source | MIT | 2,020 | store | react-state | TypeScript | Code | 559 | 1,641 | import 'reflect-metadata';
import { StateHistory } from '../state/history';
import { Store } from '../store/store';
import { AsyncValueResolver } from '../helpers/async-value-resolver';
import { Helpers } from '../helpers/helpers';
import { DataStrategyProvider } from '../data-strategy/data-strategy-provider';
import ... | 1,608 |
https://github.com/ecomfe/okam/blob/master/packages/okam-core/test/tasks/wx/Component.spec.js | Github Open Source | Open Source | MIT | 2,021 | okam | ecomfe | JavaScript | Code | 138 | 420 | /**
* @file Wx Component test spec
* @author sparklewhy@gmail.com
*/
'use strict';
/* eslint-disable babel/new-cap */
/* eslint-disable fecs-min-vars-per-destructure */
import assert from 'assert';
import expect from 'expect';
import base from 'core/base/base';
import component from 'core/base/component';
import ... | 23,500 |
https://github.com/fmatosinhos/node-odp/blob/master/libs/binding.gyp | Github Open Source | Open Source | MIT | 2,013 | node-odp | fmatosinhos | Python | Code | 90 | 488 | {
'target_defaults': {
'default_configuration': 'Release'
},
'targets': [
{
'target_name': 'odpnode',
'sources': [
'src/helpers/helpers.cc',
'odpnode.cc',
'src/odpconnection.cc',
'src/odpcommand.cc',
'src/odpdata.cc'
],
'conditions' : [
['OS=="win"', {
'defines': [
... | 21,773 |
https://github.com/CUAHSI/QA-AutomationEngine/blob/master/simulations/core-one/DEVS_Suite_3.0.0_executable_linux_64/src/model/simulation/coreSimulatorInterface.java | Github Open Source | Open Source | BSD-2-Clause | 2,023 | QA-AutomationEngine | CUAHSI | Java | Code | 80 | 185 | /*
* Author : ACIMS(Arizona Centre for Integrative Modeling & Simulation)
* Version : DEVSJAVA 2.7
* Date : 08-15-02
*/
package model.simulation;
import java.util.*;
import GenCol.*;
import model.modeling.*;
//what is the core requirement on legacy models if they
//are just required to hav... | 6,588 |
https://github.com/grubern/fdlint/blob/master/rules.d/html.rule.rb | Github Open Source | Open Source | BSD-3-Clause | 2,015 | fdlint | grubern | Ruby | Code | 416 | 1,547 | # encoding: utf-8
html_rules
review( 'doc' ) { |doc|
unless doc.have_dtd?
error "必须存在文档类型声明"
end
}
review( 'dtd' ) { |dtd|
unless dtd.type =~ /^html$/i
warn '推荐使用HTML 5 DTD'
end
unless dtd =~ /^<!DOCTYPE/
warn '必须使用大写的"DOCTYPE"'
end
}
review( 'property' ) { |prop|
# Bad case: <div style="... | 6,500 |
https://github.com/ckprod/js-csvparser/blob/master/js-csvparser.umd.js | Github Open Source | Open Source | MIT | 2,020 | js-csvparser | ckprod | JavaScript | Code | 2,488 | 6,523 | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.CSVParser = factory());
}(this, function () { 'use strict';
// util
// code snippets from https://github.c... | 37,439 |
https://github.com/richnicholls404/jsonschema2graphql/blob/master/test/assets/jsonschema/family/index.ts | Github Open Source | Open Source | MIT | 2,021 | jsonschema2graphql | richnicholls404 | TypeScript | Code | 40 | 74 | export * from './pattern'
export * from './timeRange'
export * from './valueRange'
export * from './objectId'
export * from './email'
export * from './approval'
export * from './item'
export * from './log'
export * from './user'
export * from './family'
| 8,864 |
https://github.com/cloudcost/trackit/blob/master/aws/pricings/fetchEc2Pricings.go | Github Open Source | Open Source | Apache-2.0 | 2,021 | trackit | cloudcost | Go | Code | 1,376 | 3,670 | // Copyright 2019 MSolution.IO
//
// 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 ... | 35,969 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.