hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f15456f12e42e52a85c1ea17348ab231e447c6a | 2,861 | php | PHP | apps/prestashop/htdocs/src/Core/Grid/Position/GridPositionUpdater.php | Gacheri/prestashop | 145e8163d32f3d616bbf710a4a3fef607f707aff | [
"Apache-2.0"
] | 1 | 2021-11-05T12:06:33.000Z | 2021-11-05T12:06:33.000Z | apps/prestashop/htdocs/src/Core/Grid/Position/GridPositionUpdater.php | Gacheri/prestashop | 145e8163d32f3d616bbf710a4a3fef607f707aff | [
"Apache-2.0"
] | 4 | 2021-11-12T13:20:54.000Z | 2021-11-15T17:41:10.000Z | apps/prestashop/htdocs/src/Core/Grid/Position/GridPositionUpdater.php | Gacheri/prestashop | 145e8163d32f3d616bbf710a4a3fef607f707aff | [
"Apache-2.0"
] | 1 | 2021-11-05T12:06:35.000Z | 2021-11-05T12:06:35.000Z | <?php
/**
* Copyright since 2007 PrestaShop SA and Contributors
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.md.
* It is also ... | 33.658824 | 137 | 0.714086 |
571b2c08516ea1300203e3159b79db819f729195 | 103 | js | JavaScript | src/hoc/Utility/Utility.js | rubenribeiro/BurgerBuilderApp | c70786504cdde18bfc1468891b056bf61634a70e | [
"MIT"
] | null | null | null | src/hoc/Utility/Utility.js | rubenribeiro/BurgerBuilderApp | c70786504cdde18bfc1468891b056bf61634a70e | [
"MIT"
] | null | null | null | src/hoc/Utility/Utility.js | rubenribeiro/BurgerBuilderApp | c70786504cdde18bfc1468891b056bf61634a70e | [
"MIT"
] | null | null | null | // Utility created to wrap elements
const utility = (props) => props.children;
export default utility; | 25.75 | 42 | 0.757282 |
e82fc40602c0f5ce3b19070504130325c53a46c3 | 2,219 | cs | C# | Enterprise/Domain/SvaSorcery.Patterns.Enterprise.Domain.TransactionScript/RecognitionService.cs | svasorcery/architectural-patterns | 25d23353238ff255c9ffa48a37929b3f170962ae | [
"Apache-2.0"
] | 3 | 2017-11-17T14:26:09.000Z | 2018-07-18T19:10:48.000Z | Enterprise/Domain/SvaSorcery.Patterns.Enterprise.Domain.TransactionScript/RecognitionService.cs | svasorcery/architectural-patterns | 25d23353238ff255c9ffa48a37929b3f170962ae | [
"Apache-2.0"
] | 71 | 2017-11-17T09:04:56.000Z | 2021-12-25T12:26:08.000Z | Enterprise/Domain/SvaSorcery.Patterns.Enterprise.Domain.TransactionScript/RecognitionService.cs | svasorcery/architectural-patterns | 25d23353238ff255c9ffa48a37929b3f170962ae | [
"Apache-2.0"
] | 2 | 2017-11-17T14:22:33.000Z | 2018-07-16T16:40:53.000Z | using System;
using System.Linq;
using System.Threading.Tasks;
namespace SvaSorcery.Patterns.Enterprise.Domain.TransactionScript
{
public class RecognitionService
{
private readonly Gateway _gateway;
public RecognitionService(Gateway gateway)
{
_gateway = gateway;
... | 40.345455 | 107 | 0.620099 |
b01d510932f81abca9379d788d5d2d0b45400866 | 12,608 | py | Python | subway/extensions/sqlalchemy/schemas.py | 15696/async-web-framework | a8e11039e03d85673a132d97f11b10ce7724dcaa | [
"MIT"
] | 4 | 2022-02-06T13:56:14.000Z | 2022-02-08T03:44:48.000Z | subway/extensions/sqlalchemy/schemas.py | blanketsucks/async-web-framework | 567ef22f37fd405e54818349649d6e3da24168d4 | [
"MIT"
] | 1 | 2022-02-19T16:57:19.000Z | 2022-02-19T16:57:19.000Z | subway/extensions/sqlalchemy/schemas.py | 15696/async-web-framework | a8e11039e03d85673a132d97f11b10ce7724dcaa | [
"MIT"
] | 2 | 2022-02-06T14:12:21.000Z | 2022-02-19T16:50:31.000Z | from __future__ import annotations
from typing import TYPE_CHECKING, AsyncIterator, Callable, Generic, ItemsView, Optional, Union, Type, Tuple, List, Dict, Any, Mapping, Sequence
import importlib
import inspect
import sqlalchemy
from sqlalchemy import sql
from subway.models import Model
from subway.app import Applica... | 31.363184 | 143 | 0.616672 |
2c4cea7c2bf8cc21f586806528ed5ec04b4f3845 | 307 | py | Python | attachments/__init__.py | leckronz/django-dynamic-attachments | e77fa6a59375bb19c71d1bcc58dbacfde191c45c | [
"BSD-2-Clause"
] | 1 | 2021-10-15T14:02:14.000Z | 2021-10-15T14:02:14.000Z | attachments/__init__.py | leckronz/django-dynamic-attachments | e77fa6a59375bb19c71d1bcc58dbacfde191c45c | [
"BSD-2-Clause"
] | 6 | 2018-07-02T20:16:05.000Z | 2021-04-14T14:02:22.000Z | attachments/__init__.py | leckronz/django-dynamic-attachments | e77fa6a59375bb19c71d1bcc58dbacfde191c45c | [
"BSD-2-Clause"
] | 14 | 2018-06-29T12:46:46.000Z | 2022-01-03T19:08:10.000Z | __version_info__ = (3, 0, 0, 'dev')
__version__ = '.'.join(str(i) for i in __version_info__)
def session(*args, **kwargs):
# Expose utils.session without importing utils from __init__ at module level.
from .utils import session as attachment_session
return attachment_session(*args, **kwargs)
| 34.111111 | 81 | 0.726384 |
af95232e337f1b996c3e35f30d084dbc57fc4521 | 21,904 | py | Python | Lib/pkgutil.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | 1 | 2018-06-21T18:21:24.000Z | 2018-06-21T18:21:24.000Z | Lib/pkgutil.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | Lib/pkgutil.py | sireliah/polish-python | 605df4944c2d3bc25f8bf6964b274c0a0d297cc3 | [
"PSF-2.0"
] | null | null | null | """Utilities to support packages."""
z functools zaimportuj singledispatch jako simplegeneric
zaimportuj importlib
zaimportuj importlib.util
zaimportuj importlib.machinery
zaimportuj os
zaimportuj os.path
zaimportuj sys
z types zaimportuj ModuleType
zaimportuj warnings
__all__ = [
'get_importer', 'iter_importers'... | 34.768254 | 82 | 0.620709 |
8e645ae91439633780115626be55a7d84f534ed5 | 325 | js | JavaScript | src/components/organisms/HeroImage.stories.js | ratovia/MyPortfolioSite | bec59a32dde811d58abbd2c875f4095958d92c35 | [
"RSA-MD"
] | null | null | null | src/components/organisms/HeroImage.stories.js | ratovia/MyPortfolioSite | bec59a32dde811d58abbd2c875f4095958d92c35 | [
"RSA-MD"
] | null | null | null | src/components/organisms/HeroImage.stories.js | ratovia/MyPortfolioSite | bec59a32dde811d58abbd2c875f4095958d92c35 | [
"RSA-MD"
] | null | null | null | import React from "react"
import { HeroImage } from "./HeroImage"
import bgImage from "../../stories/assets/bg.jpg"
export default {
title: "MyPortFolioSite/HeroImage",
component: HeroImage,
}
const Template = args => <HeroImage {...args} />
export const hero = Template.bind({})
hero.args = {
imageUrl: bgImag... | 19.117647 | 49 | 0.686154 |
af034f3b20c7151456f2e6c524f6e3a98d178581 | 1,456 | py | Python | HNC_github/data/cifar10.py | JM-IP/HNC | d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a | [
"Apache-2.0"
] | 3 | 2022-01-10T10:05:35.000Z | 2022-02-14T08:06:27.000Z | HNC_github/data/cifar10.py | JM-IP/HNC | d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a | [
"Apache-2.0"
] | null | null | null | HNC_github/data/cifar10.py | JM-IP/HNC | d3a2e77d1e922d2c712dd0ae82cebc0dea525f6a | [
"Apache-2.0"
] | null | null | null | from importlib import import_module
import torchvision.datasets as datasets
from torch.utils.data import DataLoader
from torchvision import transforms
def get_loader(args, kwargs):
norm_mean=[x/255.0 for x in [125.3, 123.0, 113.9]]
norm_std=[x/255.0 for x in [63.0, 62.1, 66.7]]
#norm_mean = [0.49139968, 0... | 29.714286 | 71 | 0.626374 |
3949b41dcfc9f0da595edf0a4338d53f2f937b49 | 283 | py | Python | test.py | leo9344/A-non-local-algorithm-for-image-denoising- | 2b791ba2f9870d4433cdc6269a19cd5e7e2b4f13 | [
"MIT"
] | 1 | 2021-06-15T05:58:34.000Z | 2021-06-15T05:58:34.000Z | test.py | leo9344/A-non-local-algorithm-for-image-denoising- | 2b791ba2f9870d4433cdc6269a19cd5e7e2b4f13 | [
"MIT"
] | null | null | null | test.py | leo9344/A-non-local-algorithm-for-image-denoising- | 2b791ba2f9870d4433cdc6269a19cd5e7e2b4f13 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# @Time : 2021/6/3 20:06
# @Author : Leo Li
# @Email : 846016122@qq.com
import numpy as np
x = np.matrix([-1,-1,0,2,0,-2,0,0,1,1],dtype="float")
x = x.reshape(2,5)
print(x*x.transpose())
s,v,d = np.linalg.svd(0.2*x*x.transpose())
print(s)
print(v)
print(d) | 23.583333 | 53 | 0.600707 |
8b3e4c110c527ad00cb5527ef7395c8f6fd9875f | 2,455 | kt | Kotlin | app/src/main/java/fr/corenting/edcompanion/activities/AbstractViewPagerActivity.kt | corenting/EDCompanion | a3ee7555e824cf8e8057f6e546ae9774937dd12d | [
"MIT"
] | 18 | 2017-06-01T10:43:11.000Z | 2022-02-20T12:36:50.000Z | app/src/main/java/fr/corenting/edcompanion/activities/AbstractViewPagerActivity.kt | corenting/EDCompanion | a3ee7555e824cf8e8057f6e546ae9774937dd12d | [
"MIT"
] | 91 | 2019-06-06T12:56:04.000Z | 2022-03-25T04:01:25.000Z | app/src/main/java/fr/corenting/edcompanion/activities/AbstractViewPagerActivity.kt | corenting/EDCompanion | a3ee7555e824cf8e8057f6e546ae9774937dd12d | [
"MIT"
] | 5 | 2019-06-06T12:53:06.000Z | 2021-07-23T22:46:56.000Z | package fr.corenting.edcompanion.activities
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.content.ContextCompat
import androidx.fragment.app.FragmentPagerAdapter
import fr.corenting.edcompanion.... | 35.071429 | 100 | 0.693686 |
b8c44f2788d70359a0337a0c0997a8e698b4969d | 763 | h | C | WriteAVI.h | chentiangemalc/DumpScreenToVideo | 065812fe5073012597978df9aba4bfa04a9a5c64 | [
"MIT"
] | null | null | null | WriteAVI.h | chentiangemalc/DumpScreenToVideo | 065812fe5073012597978df9aba4bfa04a9a5c64 | [
"MIT"
] | null | null | null | WriteAVI.h | chentiangemalc/DumpScreenToVideo | 065812fe5073012597978df9aba4bfa04a9a5c64 | [
"MIT"
] | null | null | null | #include <vfw.h>
#include <String>
#define TEXT_HEIGHT 20
#define AVIIF_KEYFRAME 0x00000010L // this frame is a key frame.
#define BUFSIZE 260
#pragma comment(lib,"Vfw32.lib")
class CAVIFile
{
public:
CAVIFile(LPWSTR lpFileName, int xdim = -1, int ydim = -1);
virtual ~CAVIFile();
virtual bool AddFram... | 21.194444 | 65 | 0.678899 |
b2bdbd1fe2f2ad3c87e15d6124c6ed572b7d7005 | 5,857 | css | CSS | app/assets/stylesheets/modules/stats.css | portocodes/rubygems.org | c5116ed53966b3d79fca35922a3c2c9e70c0b0de | [
"MIT"
] | 20 | 2015-07-06T17:37:07.000Z | 2021-12-23T05:37:05.000Z | app/assets/stylesheets/modules/stats.css | portocodes/rubygems.org | c5116ed53966b3d79fca35922a3c2c9e70c0b0de | [
"MIT"
] | 35 | 2015-07-13T16:22:51.000Z | 2016-05-29T01:05:10.000Z | app/assets/stylesheets/modules/stats.css | portocodes/rubygems.org | c5116ed53966b3d79fca35922a3c2c9e70c0b0de | [
"MIT"
] | 10 | 2015-10-07T14:57:35.000Z | 2021-06-04T11:26:39.000Z | .stats {
margin-top: -15px;
overflow: auto;
border-bottom: 1px solid #c1c4ca; }
@media (max-width: 709px) {
.stats {
margin-bottom: 24px;
padding-bottom: 12px; } }
@media (min-width: 710px) {
.stats {
margin-bottom: 60px;
padding-bottom: 10px; } }
.stat {
width: 33.33%;
fl... | 28.158654 | 67 | 0.664504 |
146ec6ee24a47e63ed2a7a2c4ee356df9a4e3dd3 | 1,774 | ts | TypeScript | modules/plugins/describe-ui/src/app/common/lobby/lobby.component.spec.ts | nodulusteam/-methodus-server | ca2bf049009e136e02cb0d299ebe1d04ed4c6d64 | [
"MIT"
] | 21 | 2019-06-16T05:12:53.000Z | 2021-05-25T10:13:57.000Z | modules/plugins/describe-ui/src/app/common/lobby/lobby.component.spec.ts | nodulusteam/methodulus | ca2bf049009e136e02cb0d299ebe1d04ed4c6d64 | [
"MIT"
] | 13 | 2019-06-15T15:55:35.000Z | 2021-06-05T21:08:39.000Z | modules/plugins/describe-ui/src/app/common/lobby/lobby.component.spec.ts | nodulusteam/methodulus | ca2bf049009e136e02cb0d299ebe1d04ed4c6d64 | [
"MIT"
] | 1 | 2019-06-15T15:50:06.000Z | 2019-06-15T15:50:06.000Z | import { ComponentFixture, TestBed, async } from '@angular/core/testing';
import { SharedModule } from '../../../modules/shared.module';
import { LobbyComponent } from './lobby.component';
import { LoaderComponent } from '../loader/loader.component';
import { KeysPipe } from '../../pipes/keys-pipe';
import { LobbyItemC... | 24.985915 | 73 | 0.630214 |
da39e6e58f5447b577a6fd4305bad719a7b7d771 | 2,840 | php | PHP | routes/web.php | dekbanbanproject/sasukBackend | e3bf50d3f0dd243117ea7cbbf102047b55146c45 | [
"MIT"
] | null | null | null | routes/web.php | dekbanbanproject/sasukBackend | e3bf50d3f0dd243117ea7cbbf102047b55146c45 | [
"MIT"
] | null | null | null | routes/web.php | dekbanbanproject/sasukBackend | e3bf50d3f0dd243117ea7cbbf102047b55146c45 | [
"MIT"
] | null | null | null | <?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FontController;
use App\Http\Controllers\UserAuthController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\ConfigController;
use App\Http\Controllers\DashController;
use Illuminate\Support\Facades\DB;
Route::get('/', function ()... | 47.333333 | 143 | 0.678169 |
5724b58bc55f58893c0d680f3f0f9de6a5ab0b7c | 4,954 | js | JavaScript | test/unit/message.js | dcsan/superscript | 879bf128aab9eb907b8a43fe998bb9da5bd9ff2d | [
"MIT"
] | null | null | null | test/unit/message.js | dcsan/superscript | 879bf128aab9eb907b8a43fe998bb9da5bd9ff2d | [
"MIT"
] | null | null | null | test/unit/message.js | dcsan/superscript | 879bf128aab9eb907b8a43fe998bb9da5bd9ff2d | [
"MIT"
] | 1 | 2020-09-01T13:29:07.000Z | 2020-09-01T13:29:07.000Z | var mocha = require("mocha");
var should = require("should");
var norm = require("node-normalizer");
var qtypes = require("qtypes");
var cnet = require("conceptnet")({host:'127.0.0.1', user:'root', pass:''});
var Concepts = require("../../lib/concepts");
var data = ['./data/names.top',
'./data/affect.top'... | 32.807947 | 134 | 0.633629 |
7e971da726801d5272cc7ab2ddaca8363f3d23d3 | 3,982 | rs | Rust | verovio/src/bindings.rs | alec-deason/music_editor | 931722c4fdcf3ad5f39266a38623229eb2477f6d | [
"MIT"
] | null | null | null | verovio/src/bindings.rs | alec-deason/music_editor | 931722c4fdcf3ad5f39266a38623229eb2477f6d | [
"MIT"
] | null | null | null | verovio/src/bindings.rs | alec-deason/music_editor | 931722c4fdcf3ad5f39266a38623229eb2477f6d | [
"MIT"
] | null | null | null | /* automatically generated by rust-bindgen 0.58.1 */
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __bool_true_false_are_defined: u32 = 1;
pub type Toolkit = u8;
extern "C" {
#[doc = " Methods exported a functions to use the Toolkit class"]
pub fn vrvToolkit_constructor() -> *mut ::std::os::ra... | 28.647482 | 98 | 0.600703 |
c27e4244f92f61d3a8ff9a88ccbe52423897894e | 358 | h | C | DASH Player/DASH Player/Model/SegmentBase.h | mlvhub/MPEGDASH-iOS-Player | 5f9e5f109d527f68584e1fd9e445b14c14109e62 | [
"MIT"
] | 67 | 2015-03-20T11:32:27.000Z | 2021-05-17T22:05:14.000Z | DASH Player/DASH Player/Model/SegmentBase.h | mlvhub/MPEGDASH-iOS-Player | 5f9e5f109d527f68584e1fd9e445b14c14109e62 | [
"MIT"
] | 5 | 2015-06-18T15:08:42.000Z | 2021-02-17T08:36:22.000Z | DASH Player/DASH Player/Model/SegmentBase.h | MPEGDASHPlayer/MPEGDASH-iOS-Player | 5f9e5f109d527f68584e1fd9e445b14c14109e62 | [
"MIT"
] | 29 | 2015-02-19T14:32:52.000Z | 2021-11-14T13:31:04.000Z | //
// SegmentBase.h
// DASH Player
//
// Created by DataArt Apps on 04.11.14.
// Copyright (c) 2014 DataArt Apps. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Initialization.h"
@interface SegmentBase : NSObject
@property (nonatomic, strong) NSString *indexRange;
@property (nonatomic, strong)... | 22.375 | 61 | 0.734637 |
10ed4db5a216b49da4e5fb17ea881494c3e8b920 | 38 | sql | SQL | Vault7/Lost-in-Translation/windows/Resources/Ops/Data/database_plans/SQL Server/Kaspersky 8/hst_inventory_hstprds.sql | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 46 | 2017-05-15T11:15:08.000Z | 2018-07-02T03:32:52.000Z | Vault7/Lost-in-Translation/windows/Resources/Ops/Data/database_plans/SQL Server/Kaspersky 8/hst_inventory_hstprds.sql | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | null | null | null | Vault7/Lost-in-Translation/windows/Resources/Ops/Data/database_plans/SQL Server/Kaspersky 8/hst_inventory_hstprds.sql | dendisuhubdy/grokmachine | 120a21a25c2730ed356739231ec8b99fc0575c8b | [
"BSD-3-Clause"
] | 24 | 2017-05-17T03:26:17.000Z | 2018-07-09T07:00:50.000Z | select * from hst_inventory_hstprds;
| 19 | 37 | 0.815789 |
0c6792ae9b8a06bfdec2f8c2b776901234bde7b6 | 176 | jbuilder | Ruby | app/views/author/site_storages/index.json.jbuilder | teamco/js-oop | 5bfe9d3f5e05292680198260b82aaf5a973b148a | [
"MIT"
] | null | null | null | app/views/author/site_storages/index.json.jbuilder | teamco/js-oop | 5bfe9d3f5e05292680198260b82aaf5a973b148a | [
"MIT"
] | 30 | 2017-02-22T09:06:33.000Z | 2022-03-30T21:59:06.000Z | app/views/author/site_storages/index.json.jbuilder | teamco/js-oop | 5bfe9d3f5e05292680198260b82aaf5a973b148a | [
"MIT"
] | 2 | 2016-05-18T19:26:03.000Z | 2019-08-15T21:47:58.000Z | json.array!(@author_site_storages) do |author_site_storage|
json.extract! author_site_storage, :id
json.url author_site_storage_url(author_site_storage, format: :json)
end
| 35.2 | 70 | 0.818182 |
b50bf0a1ec4c58bf0134819fddb745201703eedc | 3,337 | sql | SQL | backend/SQLCommands.sql | Software-Developers-Association/restaurant-app | e1528dc001d8a77f43612d1d54668461ab615ebf | [
"MIT"
] | null | null | null | backend/SQLCommands.sql | Software-Developers-Association/restaurant-app | e1528dc001d8a77f43612d1d54668461ab615ebf | [
"MIT"
] | null | null | null | backend/SQLCommands.sql | Software-Developers-Association/restaurant-app | e1528dc001d8a77f43612d1d54668461ab615ebf | [
"MIT"
] | 2 | 2020-08-20T18:32:23.000Z | 2022-02-01T18:50:18.000Z | -- Comment in SQL
-- How to create a database...
create database name_of_database;
-- Example to run
create database MYDB;
-- How to delete a database...
drop database name_of_database;
-- Example to run
drop database MYDB;
-- How to create a table...
create table name_of_table;
-- Example to run... | 30.614679 | 111 | 0.682949 |
5412956e29c5ae7fe772f257d02c700614bfd0be | 53,691 | css | CSS | resources/taurus/css/stylesheet.css | JaservTECH/SIKTA | 3b1a7808a77f315b2755d1bd1a16373bbe264bc9 | [
"Apache-2.0"
] | null | null | null | resources/taurus/css/stylesheet.css | JaservTECH/SIKTA | 3b1a7808a77f315b2755d1bd1a16373bbe264bc9 | [
"Apache-2.0"
] | null | null | null | resources/taurus/css/stylesheet.css | JaservTECH/SIKTA | 3b1a7808a77f315b2755d1bd1a16373bbe264bc9 | [
"Apache-2.0"
] | 1 | 2020-09-01T15:57:44.000Z | 2020-09-01T15:57:44.000Z | .tal{text-align:left !important}
.tar{text-align:right !important}
.tac{text-align:center !important}
.nm{margin:0 !important}
.nmt{margin-top:0 !important}
.nmb{margin-bottom:0 !important}
.nmr{margin-right:0 !important}
.nml{margin-left:0 !important}
.np{padding:0 !important}
.npt{padding-top:0 !import... | 92.73057 | 1,454 | 0.770781 |
8278a7ecd80b8d932e094c2c2e8257c62cfaab9a | 4,113 | cpp | C++ | src/xmlsettingsdialog/itemhandlers/itemhandlermultiline.cpp | devel29a/leechcraft | faf5e856010fb785e4bbf3ce7b5c6a5c49f3239a | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/xmlsettingsdialog/itemhandlers/itemhandlermultiline.cpp | ForNeVeR/leechcraft | 384d041d23b1cdb7cc3c758612ac8d68d3d3d88c | [
"BSL-1.0"
] | null | null | null | src/xmlsettingsdialog/itemhandlers/itemhandlermultiline.cpp | ForNeVeR/leechcraft | 384d041d23b1cdb7cc3c758612ac8d68d3d3d88c | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 33.169355 | 83 | 0.669341 |
afe0e954c6ac116edda17819ff41cecf0b8b6796 | 415 | py | Python | Sorting/Insertion_Sort/doubledare704.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 28 | 2017-10-04T19:42:26.000Z | 2021-03-26T04:00:48.000Z | Sorting/Insertion_Sort/doubledare704.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 375 | 2017-09-28T02:58:37.000Z | 2019-10-31T09:10:38.000Z | Sorting/Insertion_Sort/doubledare704.py | baroood/Hacktoberfest-2k17 | 87383df4bf705358866a5a4120dd678a3f2acd3e | [
"MIT"
] | 519 | 2017-09-28T02:40:29.000Z | 2021-02-15T08:29:17.000Z | import random
def insertion_sort(lst):
for index in range(1, len(lst)):
currentvalue = lst[index]
position = index
while position > 0 and lst[position - 1] > currentvalue:
lst[position] = lst[position - 1]
position = position - 1
lst[position] = currentva... | 20.75 | 64 | 0.633735 |
a91315397c8c36e42f42bb88a5b432299e018051 | 1,022 | css | CSS | application/blocks/wanikani_people/css/zmd.hierarchical-display.min.css | drago2308/WaniKani-Classroom | fbe3521fdab510dfa8607bcaf1a167a147e562da | [
"MIT"
] | null | null | null | application/blocks/wanikani_people/css/zmd.hierarchical-display.min.css | drago2308/WaniKani-Classroom | fbe3521fdab510dfa8607bcaf1a167a147e562da | [
"MIT"
] | null | null | null | application/blocks/wanikani_people/css/zmd.hierarchical-display.min.css | drago2308/WaniKani-Classroom | fbe3521fdab510dfa8607bcaf1a167a147e562da | [
"MIT"
] | null | null | null | .zmd-hierarchical-display{visibility:hidden}.zmd-hierarchical-display.in{visibility:visible}.zmd-hierarchical-displaying{visibility:visible}.animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.zoomIn,.animated.zoomOut{-webkit-animation-timing-... | 1,022 | 1,022 | 0.805284 |
a3ad0ac56eeb3399a98cead4b40fa9380bb87163 | 4,467 | java | Java | jqm-all/jqm-runner/jqm-runner-shell/src/main/java/com/enioka/jqm/tools/OsHelpers.java | BrystolDash/jqm | 6dabf8e822be57c978f56c4e9bf55d01e7cec435 | [
"Apache-2.0"
] | null | null | null | jqm-all/jqm-runner/jqm-runner-shell/src/main/java/com/enioka/jqm/tools/OsHelpers.java | BrystolDash/jqm | 6dabf8e822be57c978f56c4e9bf55d01e7cec435 | [
"Apache-2.0"
] | null | null | null | jqm-all/jqm-runner/jqm-runner-shell/src/main/java/com/enioka/jqm/tools/OsHelpers.java | BrystolDash/jqm | 6dabf8e822be57c978f56c4e9bf55d01e7cec435 | [
"Apache-2.0"
] | null | null | null | package com.enioka.jqm.tools;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import com.enioka.jqm.api.JobRunnerException;
import com.enioka.jqm.model.JobInstance;
import com.enioka.jqm.model.JobDef.PathType;
import org.apache.commo... | 28.452229 | 137 | 0.58809 |
e84f728b4083b8cf2a95cbced5029cbe436a84b4 | 3,606 | cs | C# | src/NuGetGallery/Helpers/ViewModelExtensions/PackageViewModelFactory.cs | 0xced/NuGetGallery | 00c59a923f36b9f6a8edb5caa3971e4bd23a395f | [
"Apache-2.0"
] | 1,022 | 2015-01-08T13:54:07.000Z | 2022-03-26T01:37:07.000Z | src/NuGetGallery/Helpers/ViewModelExtensions/PackageViewModelFactory.cs | 0xced/NuGetGallery | 00c59a923f36b9f6a8edb5caa3971e4bd23a395f | [
"Apache-2.0"
] | 5,617 | 2015-01-08T08:11:13.000Z | 2022-03-30T22:33:52.000Z | src/NuGetGallery/Helpers/ViewModelExtensions/PackageViewModelFactory.cs | 0xced/NuGetGallery | 00c59a923f36b9f6a8edb5caa3971e4bd23a395f | [
"Apache-2.0"
] | 614 | 2015-01-05T09:55:15.000Z | 2022-03-18T13:11:39.000Z | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using NuGet.Services.Entities;
namespace NuGetGallery
{
public class PackageViewModelFactory
{
private readonly IIconUrl... | 41.448276 | 111 | 0.621187 |
ff4a8ab7b459134eb1d8e00e714c994e706008d6 | 460 | py | Python | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | null | null | null | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | null | null | null | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | 2 | 2020-09-10T22:28:23.000Z | 2021-03-23T22:23:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-13 19:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0011_auto_20180113_1248'),
]
operations = [
migrations.AlterField(
... | 21.904762 | 63 | 0.617391 |
3fbb6389ff9d0bba7bf9455b9ec99e7bfd3bfc9f | 39,359 | sql | SQL | jovi_blog.sql | jovijulian/blog-laravel | 727db38a68df7c04ba50a73426b17d0e7dd16f66 | [
"MIT"
] | null | null | null | jovi_blog.sql | jovijulian/blog-laravel | 727db38a68df7c04ba50a73426b17d0e7dd16f66 | [
"MIT"
] | null | null | null | jovi_blog.sql | jovijulian/blog-laravel | 727db38a68df7c04ba50a73426b17d0e7dd16f66 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 07, 2021 at 06:09 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.4.15
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | 151.380769 | 1,986 | 0.779491 |
b31eb80f9041f176d585e94e235e47cc16b9a05a | 464 | asm | Assembly | oeis/122/A122685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/122/A122685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/122/A122685.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A122685: a(n) = n! except that a(2) = -2 and a(2n) = 0 for n > 2.
; Submitted by Christian Krause
; 1,1,-2,6,0,120,0,5040,0,362880,0,39916800,0,6227020800,0,1307674368000,0,355687428096000,0,121645100408832000,0,51090942171709440000,0,25852016738884976640000,0,15511210043330985984000000,0,1088886945041835216076800000... | 29 | 255 | 0.724138 |
0ac497c457186c0d2f63d8e856fb58b89bc2b8b1 | 862 | cs | C# | UnityTypescriptFramework/Assets/Scripts/Common/Utility/TimeUtil.cs | shuidong/unity-typescript-framework | ed21986d50adad3f3f6ee4e797d6d4d9910ca3fa | [
"MIT"
] | 3 | 2021-08-05T03:40:02.000Z | 2021-09-22T11:05:51.000Z | UnityTypescriptFramework/Assets/Scripts/Common/Utility/TimeUtil.cs | dengxuhui/unity-typescript-framework | ed21986d50adad3f3f6ee4e797d6d4d9910ca3fa | [
"MIT"
] | null | null | null | UnityTypescriptFramework/Assets/Scripts/Common/Utility/TimeUtil.cs | dengxuhui/unity-typescript-framework | ed21986d50adad3f3f6ee4e797d6d4d9910ca3fa | [
"MIT"
] | 3 | 2021-07-12T07:14:57.000Z | 2021-10-18T01:22:11.000Z | using System;
public class TimeUtil
{
/// <summary>
/// 获取时间戳
/// </summary>
/// <returns></returns>
public static int GetTimestamp()
{
var span = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0);
return Convert.ToInt32(span.TotalSeconds);
}
/// <summary>
/// 获取本... | 23.944444 | 71 | 0.562645 |
96de66ea28e1bbeaf5c4e35d6ab2f91ee50eafde | 4,223 | swift | Swift | Sources/SexpyJSON/Functions/NumberConversion.swift | juri/SexpyJSON | 73d9bfb99f38a2d804d6eaf1961185607a2d0a01 | [
"MIT"
] | null | null | null | Sources/SexpyJSON/Functions/NumberConversion.swift | juri/SexpyJSON | 73d9bfb99f38a2d804d6eaf1961185607a2d0a01 | [
"MIT"
] | null | null | null | Sources/SexpyJSON/Functions/NumberConversion.swift | juri/SexpyJSON | 73d9bfb99f38a2d804d6eaf1961185607a2d0a01 | [
"MIT"
] | 1 | 2021-09-29T10:21:17.000Z | 2021-09-29T10:21:17.000Z | /* fundoc name
round
*/
/* fundoc example
(round 12.4)
*/
/* fundoc expect
12.0
*/
/* fundoc example
(round 12.5)
*/
/* fundoc expect
13.0
*/
/* fundoc example
(round -12.5)
*/
/* fundoc expect
-13.0
*/
/* fundoc text
The `round` function rounds its parameter number away from zero. It does not ... | 17.669456 | 120 | 0.668245 |
62eafd530daea320ccc59fc462b31fa4b6108bcc | 1,115 | swift | Swift | Sources/Scout/Definitions/SerializationFormat.swift | scriptingosx/scout | 4cfbf67f83044b73f339c57618cebebbd3a072ca | [
"MIT"
] | 3 | 2021-06-23T15:59:45.000Z | 2022-01-02T23:40:54.000Z | Sources/Scout/Definitions/SerializationFormat.swift | scriptingosx/scout | 4cfbf67f83044b73f339c57618cebebbd3a072ca | [
"MIT"
] | null | null | null | Sources/Scout/Definitions/SerializationFormat.swift | scriptingosx/scout | 4cfbf67f83044b73f339c57618cebebbd3a072ca | [
"MIT"
] | null | null | null | import Foundation
/// Format which allows serialization
public protocol SerializationFormat {
static func serialize(data: Data) throws -> Any
static func serialize(value: Any) throws -> Data
}
public struct PlistFormat: SerializationFormat {
public static func serialize(data: Data) throws -> Any {
... | 33.787879 | 120 | 0.689686 |
d3d08603096d9a75f745a82d866c82e1616681ec | 73 | rb | Ruby | rails/init.rb | codesnik/console_update | 2bb4a5b461bf06783429a78dcbe94e01c7d8f238 | [
"MIT"
] | 1 | 2016-05-09T05:28:18.000Z | 2016-05-09T05:28:18.000Z | rails/init.rb | codesnik/console_update | 2bb4a5b461bf06783429a78dcbe94e01c7d8f238 | [
"MIT"
] | null | null | null | rails/init.rb | codesnik/console_update | 2bb4a5b461bf06783429a78dcbe94e01c7d8f238 | [
"MIT"
] | null | null | null | require 'console_update'
ActiveRecord::Base.send :include, ConsoleUpdate
| 24.333333 | 47 | 0.835616 |
7ae4730f2d6ab6aa92165bad23e66320568ead92 | 995 | cs | C# | src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs | arcadiogarcia/ComputeSharp | 19514062707e5d176ea427d9ca00ea6e004f33e7 | [
"MIT"
] | null | null | null | src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs | arcadiogarcia/ComputeSharp | 19514062707e5d176ea427d9ca00ea6e004f33e7 | [
"MIT"
] | null | null | null | src/ComputeSharp.SourceGenerators/Helpers/MemoryMarshal.cs | arcadiogarcia/ComputeSharp | 19514062707e5d176ea427d9ca00ea6e004f33e7 | [
"MIT"
] | null | null | null | using System;
namespace ComputeSharp.SourceGenerators.Helpers;
/// <summary>
/// A polyfill type that mirrors some methods from <see cref="System.Runtime.InteropServices.MemoryMarshal"/> on .NET 5.
/// </summary>
internal static class MemoryMarshal
{
/// <inheritdoc cref="System.Runtime.InteropServices.MemoryMar... | 39.8 | 120 | 0.676382 |
728ad49590201f87397c0f76677fc06dd5d83f44 | 1,252 | h | C | include/text/ui_ctl_arg.h | zhiyaluo/LongUI | af15e0594317c53375774ca69a0d769ec6e1866e | [
"MIT"
] | 174 | 2015-05-30T08:02:19.000Z | 2022-03-12T12:23:46.000Z | include/text/ui_ctl_arg.h | zhiyaluo/LongUI | af15e0594317c53375774ca69a0d769ec6e1866e | [
"MIT"
] | 6 | 2017-09-16T07:30:57.000Z | 2021-07-25T01:39:35.000Z | include/text/ui_ctl_arg.h | zhiyaluo/LongUI | af15e0594317c53375774ca69a0d769ec6e1866e | [
"MIT"
] | 44 | 2016-03-14T03:19:51.000Z | 2022-02-21T01:10:58.000Z | #pragma once
// decl
#include "ui_ctl_decl.h"
#include "ui_attribute.h"
// ui namespace
namespace LongUI {
// text arg
struct TextArg {
// font, null for default
I::Font* font;
// string pointer, be carefual about dangling pointer
const char16_t* string;
// stri... | 28.454545 | 95 | 0.53754 |
8abca308e8a595d7da38de6e66986c421e0200a0 | 315 | rs | Rust | src/agent/onefuzz-agent/src/tasks/mod.rs | tonybaloney/onefuzz | e0f2e9ed5aae006e0054387de7a0ff8c83c8f722 | [
"MIT"
] | 2,692 | 2020-09-15T17:54:21.000Z | 2022-03-31T11:58:57.000Z | src/agent/onefuzz-agent/src/tasks/mod.rs | tonybaloney/onefuzz | e0f2e9ed5aae006e0054387de7a0ff8c83c8f722 | [
"MIT"
] | 980 | 2020-09-18T18:23:01.000Z | 2022-03-30T22:20:43.000Z | src/agent/onefuzz-agent/src/tasks/mod.rs | nharper285/onefuzz | 1de2cc841d6fc885f8bcb6d032bf5b96ddb52493 | [
"MIT"
] | 177 | 2020-09-16T00:10:56.000Z | 2022-03-30T21:18:10.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
pub mod analysis;
pub mod config;
#[cfg(any(target_os = "linux", target_os = "windows"))]
pub mod coverage;
pub mod fuzz;
pub mod generic;
pub mod heartbeat;
pub mod merge;
pub mod regression;
pub mod report;
pub mod stats;
pub mod utils;
| 19.6875 | 55 | 0.733333 |
93200a952e42fc5c4913b0ef1f386d2181ef7c2b | 1,193 | sql | SQL | openid-connect-server-webapp/src/main/resources/db/hsql/hsql_database_index.sql | kabiliravi/OpenID-Connect-Java-Spring-Server | bf1064f8dadcb8b9fb34149a4bfa0ea0edc7e62f | [
"Apache-2.0"
] | null | null | null | openid-connect-server-webapp/src/main/resources/db/hsql/hsql_database_index.sql | kabiliravi/OpenID-Connect-Java-Spring-Server | bf1064f8dadcb8b9fb34149a4bfa0ea0edc7e62f | [
"Apache-2.0"
] | null | null | null | openid-connect-server-webapp/src/main/resources/db/hsql/hsql_database_index.sql | kabiliravi/OpenID-Connect-Java-Spring-Server | bf1064f8dadcb8b9fb34149a4bfa0ea0edc7e62f | [
"Apache-2.0"
] | null | null | null | --
-- Indexes for HSQLDB
--
CREATE INDEX IF NOT EXISTS at_tv_idx ON access_token(token_value);
CREATE INDEX IF NOT EXISTS ts_atu_idx ON token_scope(access_token_uuid);
CREATE INDEX IF NOT EXISTS at_exp_idx ON access_token(expiration);
CREATE INDEX IF NOT EXISTS rf_ahu_idx ON refresh_token(auth_holder_uuid);
CREATE I... | 59.65 | 91 | 0.84912 |
2295e2daadbf7903a386c8380b917310498c9310 | 973 | dart | Dart | lib/src/extension/string.x.dart | yohom/decorated_flutter | 1885922042f9326adcaa66572ddbf599670702bd | [
"Apache-2.0"
] | 24 | 2019-03-11T13:20:09.000Z | 2021-03-28T11:55:10.000Z | lib/src/extension/string.x.dart | yohom/decorated_flutter | 1885922042f9326adcaa66572ddbf599670702bd | [
"Apache-2.0"
] | 6 | 2019-06-15T04:12:04.000Z | 2021-06-12T11:57:40.000Z | lib/src/extension/string.x.dart | yohom/decorated_flutter | 1885922042f9326adcaa66572ddbf599670702bd | [
"Apache-2.0"
] | 37 | 2019-04-11T03:13:14.000Z | 2021-03-30T02:33:19.000Z | import 'dart:convert';
extension StringX on String {
String plus(String addend) {
final additionNum = num.parse(addend);
final thisNum = num.parse(this);
return '${additionNum + thisNum}';
}
dynamic get json {
return jsonDecode(this);
}
Uri? get uri {
return Uri.tryParse(this);
}
i... | 20.270833 | 68 | 0.653649 |
c47eff3d038eac49c6ebcbd7d03ce34182bdc98b | 296 | cpp | C++ | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 5 | 2018-01-08T22:20:07.000Z | 2021-06-19T17:42:29.000Z | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | null | null | null | test/suits/nav/test_atcproceduresid.cpp | ignmiz/ATC_Console | 549dd67a007cf54b976e33fed1581f30beb08b06 | [
"Intel",
"MIT"
] | 2 | 2017-08-07T23:07:42.000Z | 2021-05-09T13:02:39.000Z |
#include "test_atcproceduresid.h"
void Test_ATCProcedureSID::test_constructObject()
{
ATCProcedureSID foo("NAME", "CODE", "01");
QVERIFY(foo.getName() == "NAME");
QVERIFY(foo.getAirport() == "CODE");
QVERIFY(foo.getRunwayID() == "01");
QVERIFY(foo.getFixListSize() == 0);
}
| 24.666667 | 49 | 0.652027 |
38cebafebbb1e75bf0d4cde50c71d7a424809c26 | 175 | php | PHP | src/Entity/Event.php | EmilePerron/fastspring-php | 7a19a97821b0ddd3f194ce0aa2052efa48d55609 | [
"MIT"
] | 2 | 2021-04-09T19:51:32.000Z | 2021-11-26T00:22:22.000Z | src/Entity/Event.php | EmilePerron/fastspring-php | 7a19a97821b0ddd3f194ce0aa2052efa48d55609 | [
"MIT"
] | 1 | 2021-11-26T21:06:35.000Z | 2021-11-29T16:44:52.000Z | src/Entity/Event.php | EmilePerron/fastspring-php | 7a19a97821b0ddd3f194ce0aa2052efa48d55609 | [
"MIT"
] | 3 | 2021-06-15T14:45:14.000Z | 2022-02-24T11:25:38.000Z | <?php
namespace Emileperron\FastSpring\Entity;
use Emileperron\FastSpring\AbstractEntity;
class Event extends AbstractEntity {
protected static $endpoint = 'events';
}
| 17.5 | 42 | 0.782857 |
c0136c59d9eaaf736316bd34fb42721e5bc10bf4 | 2,819 | cs | C# | src/CSharpMinifierConsole/Extensions.cs | atifaziz/CSharpMinifier | 52fcd65218b6a69782b73573643023c8c85a5486 | [
"Apache-2.0"
] | 27 | 2019-02-26T21:12:13.000Z | 2022-02-20T01:17:24.000Z | src/CSharpMinifierConsole/Extensions.cs | atifaziz/CSharpMinifier | 52fcd65218b6a69782b73573643023c8c85a5486 | [
"Apache-2.0"
] | 26 | 2019-03-27T18:30:24.000Z | 2022-03-08T18:40:42.000Z | src/CSharpMinifierConsole/Extensions.cs | atifaziz/CSharpMinifier | 52fcd65218b6a69782b73573643023c8c85a5486 | [
"Apache-2.0"
] | 3 | 2020-01-22T11:52:51.000Z | 2020-10-18T03:42:16.000Z | #region Copyright (c) 2019 Atif Aziz. 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 ap... | 35.2375 | 134 | 0.643845 |
b0d33894d5d22c28cd9b48a75c6ac91817248637 | 1,190 | py | Python | auth_service/entities/user.py | rahungria/clean_arquitecture_auth | 1d0276c2fd5b83705805dfe33f6781dde3bc064a | [
"MIT"
] | 1 | 2022-03-11T21:33:36.000Z | 2022-03-11T21:33:36.000Z | auth_service/entities/user.py | rahungria/clean_arquitecture_auth | 1d0276c2fd5b83705805dfe33f6781dde3bc064a | [
"MIT"
] | null | null | null | auth_service/entities/user.py | rahungria/clean_arquitecture_auth | 1d0276c2fd5b83705805dfe33f6781dde3bc064a | [
"MIT"
] | null | null | null | from datetime import datetime
class User:
'''
User model
name -- string
password -- hashed hex (bytes)
created -- time of creation
last_access -- last time of any use_case by user
'''
def __init__(
self,
username: str,
password: bytes,
created: datet... | 20.517241 | 60 | 0.565546 |
143a98accb92a62a2747c922c90951d435173b17 | 971 | ts | TypeScript | test/v2/tests.ts/moveCopy/copyOnUndefined.ts | hpi-schul-cloud/npm-WebDAV-Server | 820ae446ba0659c60612418e3b1133f1b9f427ee | [
"Unlicense"
] | null | null | null | test/v2/tests.ts/moveCopy/copyOnUndefined.ts | hpi-schul-cloud/npm-WebDAV-Server | 820ae446ba0659c60612418e3b1133f1b9f427ee | [
"Unlicense"
] | null | null | null | test/v2/tests.ts/moveCopy/copyOnUndefined.ts | hpi-schul-cloud/npm-WebDAV-Server | 820ae446ba0659c60612418e3b1133f1b9f427ee | [
"Unlicense"
] | null | null | null | import { Test } from '../Type';
import { v2 } from '../../../../lib/index.js';
import { starter, check } from './.createFiles';
function execute(info, isValid, overwrite: boolean) {
starter(info.startServer(), info, isValid, 'COPY', 'file1Undefined', 'file1_moved', overwrite, v2.HTTPCodes.NotFound);
starter(
info.... | 26.243243 | 119 | 0.677652 |
8b7f83b30c001ee878cc6dc002e5756a67121e40 | 4,135 | rb | Ruby | modules/post/windows/gather/credentials/mremote.rb | NPS-TECH/metasploit-framework | f9b902c6cc9adfe8a7f4c39fd66590c928ac047e | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | modules/post/windows/gather/credentials/mremote.rb | NPS-TECH/metasploit-framework | f9b902c6cc9adfe8a7f4c39fd66590c928ac047e | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | modules/post/windows/gather/credentials/mremote.rb | NPS-TECH/metasploit-framework | f9b902c6cc9adfe8a7f4c39fd66590c928ac047e | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | ##
# This module requires Metasploit: http//metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
require 'rex'
require 'rexml/document'
require 'msf/core/auxiliary/report'
class Metasploit3 < Msf::Post
include Msf::Post::Windows::UserProfiles
include Msf:... | 29.748201 | 112 | 0.627811 |
f43861c7069d84610d7969d0d0b0b0dba4e67e78 | 1,813 | cs | C# | Packages/UGF.Logs/Runtime/LogHandlerUnity.cs | unity-game-framework/ugf-logs | 4f4feec622b457a7aad18eb1f31147fbdf1c488c | [
"MIT"
] | null | null | null | Packages/UGF.Logs/Runtime/LogHandlerUnity.cs | unity-game-framework/ugf-logs | 4f4feec622b457a7aad18eb1f31147fbdf1c488c | [
"MIT"
] | 43 | 2019-07-15T20:07:39.000Z | 2022-03-18T15:13:04.000Z | Packages/UGF.Logs/Runtime/LogHandlerUnity.cs | unity-game-framework/ugf-logs | 4f4feec622b457a7aad18eb1f31147fbdf1c488c | [
"MIT"
] | null | null | null | using System;
using UnityEngine;
namespace UGF.Logs.Runtime
{
public class LogHandlerUnity : LogHandlerBase, ILogHandlerWithEnable
{
public ILogger UnityLogger { get; }
public bool IsEnabled { get { return UnityLogger.logEnabled; } set { UnityLogger.logEnabled = value; } }
public LogH... | 28.328125 | 112 | 0.42802 |
46f8484ab799b8075dca61d004ee86c6b5ed3ab5 | 397 | py | Python | config.py | vekkt0r/harmenubar | 6019a76f85e0b4ddacf4159f88ee31514ed338c8 | [
"MIT"
] | 5 | 2015-04-18T16:57:53.000Z | 2020-12-28T08:50:52.000Z | config.py | vekkt0r/harmenubar | 6019a76f85e0b4ddacf4159f88ee31514ed338c8 | [
"MIT"
] | null | null | null | config.py | vekkt0r/harmenubar | 6019a76f85e0b4ddacf4159f88ee31514ed338c8 | [
"MIT"
] | null | null | null | class HarmonyConfig(object):
def __init__(self, config):
self.json = config
def get_activities(self):
return self._build_kv_menu('activity')
def get_devices(self):
return self._build_kv_menu('device')
def _build_kv_menu(self, key):
menu = {}
for d in self.json[... | 26.466667 | 51 | 0.596977 |
ad9b3cb9a9fa5ae919393da5430c5219fb6575d9 | 1,613 | dart | Dart | lib/main.dart | ChinmayShringi/Plant_SideNav_FlutterUI | c16368993ab22a913c9caecb7dee1e7be3b213ae | [
"Apache-2.0"
] | null | null | null | lib/main.dart | ChinmayShringi/Plant_SideNav_FlutterUI | c16368993ab22a913c9caecb7dee1e7be3b213ae | [
"Apache-2.0"
] | null | null | null | lib/main.dart | ChinmayShringi/Plant_SideNav_FlutterUI | c16368993ab22a913c9caecb7dee1e7be3b213ae | [
"Apache-2.0"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:plant2/widgets/home.dart';
import 'package:flutter/services.dart';
void main() {
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
statusBarColor: Colors.transparent,
));
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
W... | 24.815385 | 104 | 0.65964 |
f5e2a90cd2333fd7649265a6b448ba7761e6c393 | 6,528 | go | Go | WatClient/main.go | EricLewe/TerminalChat | b9f4cee47692058f808a44f870a1f049f828f57c | [
"MIT"
] | null | null | null | WatClient/main.go | EricLewe/TerminalChat | b9f4cee47692058f808a44f870a1f049f828f57c | [
"MIT"
] | null | null | null | WatClient/main.go | EricLewe/TerminalChat | b9f4cee47692058f808a44f870a1f049f828f57c | [
"MIT"
] | null | null | null | package main
import (
"golang.org/x/net/context"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc"
"regexp"
"strings"
"strconv"
"time"
"os"
"io"
google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
wcApi "github.com/E... | 30.222222 | 215 | 0.698223 |
df90bda8895e9be6e47d6f0cf99a289010432586 | 241 | cs | C# | materials/sources/assembly_valheim/Interactable.cs | ingvard/valheim-jserver | 749eb36f02d41e3e3df7d5e16abd5cd0fdb950ad | [
"Apache-2.0"
] | null | null | null | materials/sources/assembly_valheim/Interactable.cs | ingvard/valheim-jserver | 749eb36f02d41e3e3df7d5e16abd5cd0fdb950ad | [
"Apache-2.0"
] | null | null | null | materials/sources/assembly_valheim/Interactable.cs | ingvard/valheim-jserver | 749eb36f02d41e3e3df7d5e16abd5cd0fdb950ad | [
"Apache-2.0"
] | null | null | null | using System;
// Token: 0x020000D7 RID: 215
public interface Interactable
{
// Token: 0x06000DCE RID: 3534
bool Interact(Humanoid user, bool hold);
// Token: 0x06000DCF RID: 3535
bool UseItem(Humanoid user, ItemDrop.ItemData item);
}
| 20.083333 | 53 | 0.738589 |
58b7d862c651f609f8e202d1fb613c2d5178b179 | 67,398 | css | CSS | public/front/css/style.css | luckyali55/blog | f8da14d8168690ed4769a80aed6e62321a0095b0 | [
"MIT"
] | null | null | null | public/front/css/style.css | luckyali55/blog | f8da14d8168690ed4769a80aed6e62321a0095b0 | [
"MIT"
] | null | null | null | public/front/css/style.css | luckyali55/blog | f8da14d8168690ed4769a80aed6e62321a0095b0 | [
"MIT"
] | null | null | null | body.default section{min-height:800px}body.default header.header .navbar{margin-bottom:0;border-radius:0;background-color:#fff;border:none;border-bottom:2px solid rgba(189,189,189,.25)}body.default header.header .navbar-nav>li>a{line-height:40px}body.default header.header .my-account-block ul>li>a .menu-account-img{hei... | 67,398 | 67,398 | 0.802694 |
25a620f7b2ede78d166e9d0c5800e27e73e35027 | 30,299 | js | JavaScript | app/public/js/aframe-mouse-cursor-component.min.js | kevindh89/360-viewer | 2d29c5f5aafc789a65a3a0e193f01f2ad4cf89c2 | [
"MIT"
] | 1 | 2018-07-10T16:18:55.000Z | 2018-07-10T16:18:55.000Z | app/public/js/aframe-mouse-cursor-component.min.js | kevindh89/360-viewer | 2d29c5f5aafc789a65a3a0e193f01f2ad4cf89c2 | [
"MIT"
] | 1 | 2018-07-10T16:16:51.000Z | 2018-07-10T16:16:51.000Z | app/public/js/aframe-mouse-cursor-component.min.js | kevindh89/360-viewer | 2d29c5f5aafc789a65a3a0e193f01f2ad4cf89c2 | [
"MIT"
] | 2 | 2018-07-11T06:05:50.000Z | 2019-01-28T23:32:12.000Z | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
... | 34.3916 | 131 | 0.438001 |
9abc9746bff5b12000697e14e115db2db88c7e1c | 2,038 | py | Python | controller/credentials_controller.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 409 | 2020-07-01T14:10:50.000Z | 2022-02-25T03:10:26.000Z | controller/credentials_controller.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 14 | 2020-07-03T23:09:49.000Z | 2020-10-07T12:37:12.000Z | controller/credentials_controller.py | Chandru01061997/pythonDB | fc164bdc921fd42af316f034433fbc27bacfd24c | [
"Apache-2.0"
] | 303 | 2020-07-01T14:08:53.000Z | 2022-03-08T17:59:34.000Z | import os
from flask import Blueprint, request
from flask_cors import CORS
from service.astra_service import astra_service
credentials_controller = Blueprint('credentials_controller', __name__)
CORS(credentials_controller)
# This controller handles the functionality for connecting to the database
#
# Here we defin... | 28.305556 | 108 | 0.631011 |
387851098b44fec8fc274f3690e60585e8452b27 | 2,150 | php | PHP | resources/views/livewire/user/views/make-order.blade.php | Ibraheem-Aoor/socialmedia | a3f002c9b0992f02eca0af896fa83dcc4d411254 | [
"MIT"
] | null | null | null | resources/views/livewire/user/views/make-order.blade.php | Ibraheem-Aoor/socialmedia | a3f002c9b0992f02eca0af896fa83dcc4d411254 | [
"MIT"
] | null | null | null | resources/views/livewire/user/views/make-order.blade.php | Ibraheem-Aoor/socialmedia | a3f002c9b0992f02eca0af896fa83dcc4d411254 | [
"MIT"
] | null | null | null | <div>
@section('links')
<div class="collapse navbar-collapse" id="navbarCollapse">
<div class="navbar-nav mx-auto py-0">
<a href="{{ route('home') }}" class="nav-item nav-link">Home</a>
<a href="{{ route('home') }}" class="nav-item nav-link">Feature</a>
... | 51.190476 | 125 | 0.432558 |
a9f7affd0dc406e43f9ea6f5eab18deb392fc8c5 | 334 | php | PHP | src/Primearea/OrderBundle/Dto/Order.php | prime-space/old-marketplace | 6e3150445a72e85d42f99c23d02939091d689533 | [
"Apache-2.0"
] | 1 | 2021-03-09T15:41:36.000Z | 2021-03-09T15:41:36.000Z | src/Primearea/OrderBundle/Dto/Order.php | prime-space/old-marketplace | 6e3150445a72e85d42f99c23d02939091d689533 | [
"Apache-2.0"
] | null | null | null | src/Primearea/OrderBundle/Dto/Order.php | prime-space/old-marketplace | 6e3150445a72e85d42f99c23d02939091d689533 | [
"Apache-2.0"
] | 2 | 2021-03-15T15:46:24.000Z | 2021-03-17T04:54:26.000Z | <?php namespace Primearea\OrderBundle\Dto;
use Primearea\PrimeareaBundle\Transaction\TransactionInterface;
class Order implements TransactionInterface
{
public const STATUS_PAY = 'pay';
public $id;
public $status;
public $totalBuyer;
public function getAmount()
{
return $this->totalB... | 18.555556 | 63 | 0.706587 |
0e246706b7dcf107e5ace981b17bcc9d877913a2 | 390 | lua | Lua | game/roommgr/room.lua | damoguyan9527/skynetqipai | 38caa54f8011735e31ee4491a72403a287a79629 | [
"MIT"
] | 1 | 2021-02-03T07:38:36.000Z | 2021-02-03T07:38:36.000Z | game/roommgr/room.lua | damoguyan9527/skynetqipai | 38caa54f8011735e31ee4491a72403a287a79629 | [
"MIT"
] | null | null | null | game/roommgr/room.lua | damoguyan9527/skynetqipai | 38caa54f8011735e31ee4491a72403a287a79629 | [
"MIT"
] | null | null | null | local utils = require "utils"
-- 房间类,每个房间为一场比赛
local M = {}
M.__index = M
function M.new(...)
local o = {}
setmetatable(o, M)
M.init(o, ...)
return o
end
function M:init(info, addr)
utils.print(info)
self.roomid = info.roomid
self.addr = addr
self.ticket = tostring(math.random(os.t... | 13.448276 | 50 | 0.620513 |
a43f705b9f494cb6ab34dc8abb4f82e4a3faab55 | 1,814 | php | PHP | ppdb.man2/simplex/systemplate/response/404.php | Bladefidz/ppdb | 4d8f05bfe6ac983e5e59b4ef75a898407d3d61c8 | [
"Apache-2.0"
] | null | null | null | ppdb.man2/simplex/systemplate/response/404.php | Bladefidz/ppdb | 4d8f05bfe6ac983e5e59b4ef75a898407d3d61c8 | [
"Apache-2.0"
] | null | null | null | ppdb.man2/simplex/systemplate/response/404.php | Bladefidz/ppdb | 4d8f05bfe6ac983e5e59b4ef75a898407d3d61c8 | [
"Apache-2.0"
] | 1 | 2019-02-09T03:57:05.000Z | 2019-02-09T03:57:05.000Z | <!DOCTYPE html>
<html lang="en">
<head>
<title>404 error page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" media="screen" href=<?= SYS_ASSETS."css/bootstra... | 36.28 | 104 | 0.523705 |
c8c32399289aeb5e50e8b77845c6bd531cefa18a | 277,100 | css | CSS | app/src/test/test-data/Baked Macaroni and Cheese Recipe _ Alton Brown _ Food Network_files/recipePage.desktop.md5-4ccd0f80cb908574ccc538ea2e7b0ca1.css | semartinez147/choppit | b2a4b09a53aed4dca62374d5bb3e7bdd2b353b8a | [
"MIT"
] | null | null | null | app/src/test/test-data/Baked Macaroni and Cheese Recipe _ Alton Brown _ Food Network_files/recipePage.desktop.md5-4ccd0f80cb908574ccc538ea2e7b0ca1.css | semartinez147/choppit | b2a4b09a53aed4dca62374d5bb3e7bdd2b353b8a | [
"MIT"
] | null | null | null | app/src/test/test-data/Baked Macaroni and Cheese Recipe _ Alton Brown _ Food Network_files/recipePage.desktop.md5-4ccd0f80cb908574ccc538ea2e7b0ca1.css | semartinez147/choppit | b2a4b09a53aed4dca62374d5bb3e7bdd2b353b8a | [
"MIT"
] | 1 | 2021-08-28T08:36:19.000Z | 2021-08-28T08:36:19.000Z | @charset "UTF-8";.recipePage .o-Attribution{z-index:1;margin-bottom:7px}.recipePage .o-Attribution__m-MediaWrap>a{margin:-54.5px auto -22px}.recipePage .o-Attribution__a-Image{display:block;width:109px;max-width:none;margin:0;border-radius:50%}.recipePage .o-Attribution__m-TextWrap{text-align:center}.recipePage .o-Attr... | 277,100 | 277,100 | 0.811151 |
b142846078106b075faa1295dfd78fa29df807ef | 10,320 | swift | Swift | Source/Models/Highlight+Helper.swift | KyonLi/FolioReaderKit | 5cff27bcb5c874ff349bd2a8155ad49ad73e2cd3 | [
"BSD-3-Clause"
] | 1 | 2017-09-16T08:01:43.000Z | 2017-09-16T08:01:43.000Z | Source/Models/Highlight+Helper.swift | KyonLi/FolioReaderKit-bugfix | 5cff27bcb5c874ff349bd2a8155ad49ad73e2cd3 | [
"BSD-3-Clause"
] | null | null | null | Source/Models/Highlight+Helper.swift | KyonLi/FolioReaderKit-bugfix | 5cff27bcb5c874ff349bd2a8155ad49ad73e2cd3 | [
"BSD-3-Clause"
] | null | null | null | //
// Highlight+Helper.swift
// FolioReaderKit
//
// Created by Heberti Almeida on 06/07/16.
// Copyright (c) 2015 Folio Reader. All rights reserved.
//
import Foundation
import RealmSwift
/**
HighlightStyle type, default is .Yellow.
*/
public enum HighlightStyle: Int {
case Yellow
case Green
case B... | 35.709343 | 165 | 0.583333 |
ff766bdfd676398151741015e2aa77007c6279ca | 296 | py | Python | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | # Benchmark the counting of alanine residues in a PDB file
import time
import MDAnalysis as mda
pdb_filepath = "pdbs/1AKE.pdb"
u = mda.Universe(pdb_filepath)
def count():
return (u.residues.resnames == "ALA").sum()
start = time.time()
count()
elapsed = time.time() - start
print elapsed
| 17.411765 | 58 | 0.716216 |
b56ffb19c082596fcdc2c813a6b758e103ea17de | 287 | rb | Ruby | ruby_practice/array_addition.rb | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | ruby_practice/array_addition.rb | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | ruby_practice/array_addition.rb | williamfdevine/hackerrank | 80045f708d84feafd9af9094c02ce5b08ba43797 | [
"MIT"
] | null | null | null | # array_addition.rb
def end_arr_add(arr, element)
arr.push(element)
end
def begin_arr_add(arr, element)
arr.insert(0, element)
end
def index_arr_add(arr, index, element)
arr.insert(index, element)
end
def index_arr_multiple_add(arr, index)
arr.insert(index, 1, 2)
end | 16.882353 | 38 | 0.731707 |
d3230bda8d60dca10503f63c7d8093aca93032a7 | 5,090 | cs | C# | Plugin.datasyn/DataSynIcons.cs | dbgate/datadmin | 3c86ec23c2adea8fb88985b8d7a9e5ce8f9eaa6f | [
"MIT"
] | null | null | null | Plugin.datasyn/DataSynIcons.cs | dbgate/datadmin | 3c86ec23c2adea8fb88985b8d7a9e5ce8f9eaa6f | [
"MIT"
] | null | null | null | Plugin.datasyn/DataSynIcons.cs | dbgate/datadmin | 3c86ec23c2adea8fb88985b8d7a9e5ce8f9eaa6f | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace Plugin.datasyn
{
public class DataSynIcons
{
public static readonly Dictionary<string, Bitmap> IconTable = new Dictionary<string, Bitmap>();
static Bitmap m_add = StdRes.add;
static Bitm... | 46.272727 | 104 | 0.637132 |
e371df030ef411aaa232cc9daa6b92dd3a5e6fb6 | 196 | rb | Ruby | deps/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb | adarshdec23/h2o_custom_priority | c6dde246a2df2570e40618b51757616de2b3df89 | [
"MIT"
] | null | null | null | deps/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb | adarshdec23/h2o_custom_priority | c6dde246a2df2570e40618b51757616de2b3df89 | [
"MIT"
] | null | null | null | deps/mruby/mrbgems/mruby-numeric-ext/mrblib/numeric_ext.rb | adarshdec23/h2o_custom_priority | c6dde246a2df2570e40618b51757616de2b3df89 | [
"MIT"
] | null | null | null | module Integral
def div(other)
self.divmod(other)[0]
end
def zero?
self == 0
end
def nonzero?
if self == 0
nil
else
self
end
end
end
| 10.888889 | 26 | 0.489796 |
871dea120eb70a04b38842ccc9ef834187217c47 | 3,888 | lua | Lua | server/server.lua | CalixFoxUK/NoMoreTroll | b221f64b18b2c553a650f9d8ba528c708f4546c9 | [
"WTFPL"
] | null | null | null | server/server.lua | CalixFoxUK/NoMoreTroll | b221f64b18b2c553a650f9d8ba528c708f4546c9 | [
"WTFPL"
] | null | null | null | server/server.lua | CalixFoxUK/NoMoreTroll | b221f64b18b2c553a650f9d8ba528c708f4546c9 | [
"WTFPL"
] | 1 | 2020-06-14T12:35:02.000Z | 2020-06-14T12:35:02.000Z | --[[
NoMoreTroll
Version 1.0.0.2
By CalixFoxUK
]]--
-- Freeze command freeze {PlayerID} {true/false}
RegisterCommand("freeze", function(source, arg, raw)
if source > 0 then
pedfreeze = source;
if type(raw) ~= "nil" then
cl = stringsplit(raw, " ");
if cl[1] == "freeze" then
Can_Trigger = ... | 27.971223 | 142 | 0.633488 |
3b40bc5d39f21236f505a44894630703b741cc08 | 2,077 | swift | Swift | WolmoCoreDemo/ViewController.swift | DiegoQuiros94/wolmo-core-ios | b8392cc9670ed5051d9a7de3853c512010271f77 | [
"MIT"
] | null | null | null | WolmoCoreDemo/ViewController.swift | DiegoQuiros94/wolmo-core-ios | b8392cc9670ed5051d9a7de3853c512010271f77 | [
"MIT"
] | 2 | 2019-12-11T16:27:33.000Z | 2019-12-20T18:06:48.000Z | WolmoCoreDemo/ViewController.swift | DiegoQuiros94/wolmo-core-ios | b8392cc9670ed5051d9a7de3853c512010271f77 | [
"MIT"
] | null | null | null | //
// ViewController.swift
// WolmoCoreDemo
//
// Created by Daniela Riesgo on 12/19/17.
// Copyright © 2017 Wolox. All rights reserved.
//
import UIKit
import WolmoCore
final internal class ViewController: UIViewController {
private lazy var _view: View = View.loadFromNib()!
private lazy var _childContr... | 31.469697 | 103 | 0.636013 |
a1dff76c3a4e8926de0bc539c82ee9cc6008d3c3 | 961 | lua | Lua | models/DNN/stratBatchIter.lua | nhammerla/deepHAR | e146930512696b27046be0f240801e69d38cf981 | [
"BSD-2-Clause"
] | 23 | 2017-05-30T00:49:55.000Z | 2021-11-13T12:18:11.000Z | models/DNN/stratBatchIter.lua | nhammerla/deepHAR | e146930512696b27046be0f240801e69d38cf981 | [
"BSD-2-Clause"
] | 2 | 2018-04-24T06:48:28.000Z | 2021-02-05T06:32:49.000Z | models/DNN/stratBatchIter.lua | nhammerla/deepHAR | e146930512696b27046be0f240801e69d38cf981 | [
"BSD-2-Clause"
] | 13 | 2017-05-30T01:20:57.000Z | 2021-09-29T14:03:15.000Z | function stratBatchIter(targets, approxBatchsize)
local T = targets:clone()+torch.randn(targets:size()):typeAs(targets)*0.001 -- add some jitter for randomness
local nbatch = torch.floor(T:size(1) / approxBatchsize)
local batchIds = torch.zeros(T:size())
-- index of sorted elements
local _, ind = torch.sort(T)
... | 25.972973 | 110 | 0.670135 |
b0be94fb9c81a75f4f837400a9026609f64e2449 | 2,246 | py | Python | examples/trivial_post_input.py | ajCameron/mewbot | 0f299ed75241b08b2f94aa9d96ce31507fdf8851 | [
"BSD-2-Clause"
] | null | null | null | examples/trivial_post_input.py | ajCameron/mewbot | 0f299ed75241b08b2f94aa9d96ce31507fdf8851 | [
"BSD-2-Clause"
] | null | null | null | examples/trivial_post_input.py | ajCameron/mewbot | 0f299ed75241b08b2f94aa9d96ce31507fdf8851 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python3
"""
Implementing a new Input - as it happens to be the first input,
a few other things are going to have to go on
- like defining some behaviors
- and actually building a bot
- and fixing any weird type errors
"""
from __future__ import annotations
from typing import Set, Type, Dict, Any
fro... | 23.642105 | 74 | 0.675423 |
38bcf99611fbc8568126b78c06bbde98dfaab482 | 4,800 | php | PHP | src/Concerns/ManagesCustomer.php | IvanSotelo/OpenpayCashier | 5e92cbae6a262e91f0985964c97e2e37ae60d44a | [
"MIT"
] | null | null | null | src/Concerns/ManagesCustomer.php | IvanSotelo/OpenpayCashier | 5e92cbae6a262e91f0985964c97e2e37ae60d44a | [
"MIT"
] | null | null | null | src/Concerns/ManagesCustomer.php | IvanSotelo/OpenpayCashier | 5e92cbae6a262e91f0985964c97e2e37ae60d44a | [
"MIT"
] | null | null | null | <?php
namespace IvanSotelo\OpenpayCashier\Concerns;
use IvanSotelo\OpenpayCashier\OpenpayCashier;
use IvanSotelo\OpenpayCashier\Exceptions\CustomerAlreadyCreated;
use IvanSotelo\OpenpayCashier\Exceptions\InvalidCustomer;
use Openpay\Customer as OpenpayCustomer;
trait ManagesCustomer
{
/**
* Retrieve the Ope... | 24.489796 | 94 | 0.599167 |
f13903aea118d5609210116739d98c504f8635b7 | 97 | rb | Ruby | l1/test.rb | anht37/ruby-lession | f4c367d723e00c754ca79c7c8f942bd17976f0eb | [
"MIT"
] | null | null | null | l1/test.rb | anht37/ruby-lession | f4c367d723e00c754ca79c7c8f942bd17976f0eb | [
"MIT"
] | null | null | null | l1/test.rb | anht37/ruby-lession | f4c367d723e00c754ca79c7c8f942bd17976f0eb | [
"MIT"
] | null | null | null | class Person
attr_accessor :hand
def show_hand
p "My hand length is #{@hand}"
end
end
| 13.857143 | 34 | 0.670103 |
a9325da03e72110c8f2b745d4e5e692527012b48 | 3,273 | swift | Swift | Sources/Definitions/Request.swift | tonyarnold/PactSwift | 291e733cf51aa11f80e7c1fafda1ba9903a7204d | [
"MIT"
] | null | null | null | Sources/Definitions/Request.swift | tonyarnold/PactSwift | 291e733cf51aa11f80e7c1fafda1ba9903a7204d | [
"MIT"
] | null | null | null | Sources/Definitions/Request.swift | tonyarnold/PactSwift | 291e733cf51aa11f80e7c1fafda1ba9903a7204d | [
"MIT"
] | null | null | null | //
// Request.swift
// PactSwift
//
// Created by Marko Justinek on 31/3/20.
// Copyright © 2020 Itty Bitty Apps Pty Ltd / PACT Foundation. All rights reserved.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
... | 32.73 | 131 | 0.691415 |
6e5df852fa256c6225370dfd374b29570d4d5172 | 367 | lua | Lua | MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/bio_engineer/bio_component/bio_component_armor_guanine.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/bio_engineer/bio_component/bio_component_armor_guanine.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/custom_content/draft_schematic/bio_engineer/bio_component/bio_component_armor_guanine.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | object_draft_schematic_bio_engineer_bio_component_bio_component_armor_guanine = object_draft_schematic_bio_engineer_bio_component_shared_bio_component_armor_guanine:new {
}
ObjectTemplates:addTemplate(object_draft_schematic_bio_engineer_bio_component_bio_component_armor_guanine, "object/draft_schematic/bio_engineer/b... | 61.166667 | 191 | 0.934605 |
b36aa729f9038ac1cd424cf647774ea6e553776d | 9,534 | py | Python | utils_1.py | zsl24/tacotron2-hifigan | e24cbb86e7901bd1665f3172961f90a51ab9815e | [
"MIT"
] | 2 | 2021-11-27T16:07:28.000Z | 2022-01-20T15:39:13.000Z | utils_1.py | zsl24/Tacotron2-HiFiGAN-master | e24cbb86e7901bd1665f3172961f90a51ab9815e | [
"MIT"
] | null | null | null | utils_1.py | zsl24/Tacotron2-HiFiGAN-master | e24cbb86e7901bd1665f3172961f90a51ab9815e | [
"MIT"
] | 3 | 2021-11-29T14:40:54.000Z | 2022-03-29T07:59:54.000Z | import argparse
import logging
import cv2 as cv
import librosa
import matplotlib
matplotlib.use('Agg')
import matplotlib.pylab as plt
import numpy as np
import pinyin
import torch
import json
import config
import os
import time
from config import sampling_rate, VOCAB, IVOCAB
def clip_gradient(optimizer, grad_clip):... | 30.07571 | 124 | 0.605517 |
dcbafef4b3839b27ae4af98352753446ec30ea35 | 45 | rb | Ruby | spec/weibo_spec.rb | ballantyne/weibo | f3ebbf4d706e158cf81d9ffe4a6ed700db7210bc | [
"MIT"
] | 9 | 2015-02-01T04:07:03.000Z | 2020-03-31T01:50:12.000Z | spec/weibo_spec.rb | IceskYsl/weibo | 6e367becaba8f6dbd3cb356c1af91ea089e84626 | [
"MIT"
] | null | null | null | spec/weibo_spec.rb | IceskYsl/weibo | 6e367becaba8f6dbd3cb356c1af91ea089e84626 | [
"MIT"
] | 7 | 2015-08-04T03:00:05.000Z | 2017-06-07T09:08:49.000Z | require 'spec_helper'
describe Weibo do
end
| 9 | 21 | 0.8 |
e72e40a296ea7307aed59dc3e9fdffadb519f6ce | 1,987 | php | PHP | backend/views/settings/index.php | Korol/trl | 463d3228b953cc533ea3d4a8a6c1cf1ed3aea63f | [
"BSD-3-Clause"
] | null | null | null | backend/views/settings/index.php | Korol/trl | 463d3228b953cc533ea3d4a8a6c1cf1ed3aea63f | [
"BSD-3-Clause"
] | null | null | null | backend/views/settings/index.php | Korol/trl | 463d3228b953cc533ea3d4a8a6c1cf1ed3aea63f | [
"BSD-3-Clause"
] | null | null | null | <?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\helpers\ArrayHelper;
use app\models\Settings;
/* @var $this yii\web\View */
/* @var $searchModel app\models\SettingsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Параметри';
$this->params['breadcrumbs'][] = $this->title;
?>
... | 24.8375 | 113 | 0.428284 |
bddaba022491be82683627dfb5f6c549e1aadf8c | 721 | rb | Ruby | examples/components/component1.rb | jpartlow/vanagon | fce536179236b741fc3202ba435584495cbdbf3a | [
"Apache-2.0"
] | 28 | 2015-10-07T19:02:37.000Z | 2019-10-03T21:40:18.000Z | examples/components/component1.rb | jpartlow/vanagon | fce536179236b741fc3202ba435584495cbdbf3a | [
"Apache-2.0"
] | 426 | 2015-10-07T18:34:33.000Z | 2022-02-02T22:00:00.000Z | examples/components/component1.rb | jpartlow/vanagon | fce536179236b741fc3202ba435584495cbdbf3a | [
"Apache-2.0"
] | 79 | 2015-10-07T18:17:26.000Z | 2021-12-22T22:05:50.000Z | component "component1" do |pkg, settings, platform|
pkg.version "1.2.3"
pkg.md5sum "abcd1234"
pkg.url "http://my-file-store.my-app.example.com/component1-1.2.3.tar.gz"
pkg.mirror "http://mirror-01.example.com/component1-1.2.3.tar.gz"
pkg.mirror "http://mirror-02.example.com/component1-1.2.3.tar.gz"
pkg.mirr... | 24.862069 | 75 | 0.678225 |
ae33e65fb18d76f595ff7347c19fb5ac3127ebc3 | 39 | sh | Shell | build-debug.sh | DominikHorn/learned-hashing | 518de165b227277610c37467abd6303b8bd81d5e | [
"MIT"
] | null | null | null | build-debug.sh | DominikHorn/learned-hashing | 518de165b227277610c37467abd6303b8bd81d5e | [
"MIT"
] | null | null | null | build-debug.sh | DominikHorn/learned-hashing | 518de165b227277610c37467abd6303b8bd81d5e | [
"MIT"
] | null | null | null | #!/bin/bash
./build.sh lh_tests DEBUG
| 9.75 | 25 | 0.692308 |
14e5c6d09fa74a34a19ec8fa3297ae2a4a2936e5 | 459 | ts | TypeScript | packages/pando.js/src/objects/ipld-node.ts | deamme/pando | c0b5a4c689269e24b812db25ad90ac382bc6b2f8 | [
"MIT"
] | null | null | null | packages/pando.js/src/objects/ipld-node.ts | deamme/pando | c0b5a4c689269e24b812db25ad90ac382bc6b2f8 | [
"MIT"
] | null | null | null | packages/pando.js/src/objects/ipld-node.ts | deamme/pando | c0b5a4c689269e24b812db25ad90ac382bc6b2f8 | [
"MIT"
] | null | null | null | import DAG from 'ipld-dag-cbor'
import { promisify } from 'util'
export default abstract class IPLDNode {
public type: string
public constructor(type: string) {
this.type = type
}
public async cid(): Promise<any> {
const ipldNode = await this.toIPLD()
const cid = await promisify(DAG.util.cid)(ipl... | 20.863636 | 57 | 0.655773 |
68feac16d98dcc20a08ef2a2969ddb1f65e2b2f7 | 2,785 | swift | Swift | skylaski/Model/AppConstants.swift | Skylaski-VPN/skylaski-ios | c952390840ac1acc77368291fed6c50d16f82f7e | [
"MIT"
] | 1 | 2022-01-21T08:58:52.000Z | 2022-01-21T08:58:52.000Z | skylaski/Model/AppConstants.swift | Skylaski-VPN/skylaski-ios | c952390840ac1acc77368291fed6c50d16f82f7e | [
"MIT"
] | 1 | 2021-12-04T23:02:12.000Z | 2021-12-21T18:39:31.000Z | skylaski/Model/AppConstants.swift | Skylaski-VPN/skylaski-ios | c952390840ac1acc77368291fed6c50d16f82f7e | [
"MIT"
] | 2 | 2021-12-21T16:16:44.000Z | 2021-12-21T16:32:26.000Z | //
// AppConstants.swift
// skylaski
//
// Created by Anilkumar on 21/05/21.
//
import UIKit
class AppConstants : NSObject {
private static var privateShared : AppConstants?
static var sharedInstance : AppConstants { // change class to final to prevent override
guard let uwShared = privateSha... | 27.574257 | 142 | 0.596409 |
4d8e172fe69419c624f2d51bf1a5acd1d1568db0 | 781 | cs | C# | Assets/Scripts/Dog.cs | dolorismachina/ride-boy-ride | d0cb7387619f21d23b19d706e40771a46cca09be | [
"MIT"
] | null | null | null | Assets/Scripts/Dog.cs | dolorismachina/ride-boy-ride | d0cb7387619f21d23b19d706e40771a46cca09be | [
"MIT"
] | null | null | null | Assets/Scripts/Dog.cs | dolorismachina/ride-boy-ride | d0cb7387619f21d23b19d706e40771a46cca09be | [
"MIT"
] | null | null | null | using UnityEngine;
using System.Collections;
public class Dog : MonoBehaviour {
public float Speed = 3.5f;
GameObject player;
// Use this for initialization
void Start () {
player = GameObject.FindWithTag("Player");
}
// Update is called once per frame
void Update () {
float distanceToPlay... | 20.025641 | 97 | 0.615877 |
a374dae33b6580887dd091d582a0247599c6071e | 2,838 | java | Java | src/test/java/org/salawat/samples/homeaway/api/StationTest.java | Salawatt/ha-api | 685aa8fe4a99546f0c3578d3e1060e8c7f9727ff | [
"Unlicense"
] | null | null | null | src/test/java/org/salawat/samples/homeaway/api/StationTest.java | Salawatt/ha-api | 685aa8fe4a99546f0c3578d3e1060e8c7f9727ff | [
"Unlicense"
] | null | null | null | src/test/java/org/salawat/samples/homeaway/api/StationTest.java | Salawatt/ha-api | 685aa8fe4a99546f0c3578d3e1060e8c7f9727ff | [
"Unlicense"
] | null | null | null | package org.salawat.samples.homeaway.api;
import java.util.List;
import org.salawat.samples.homeaway.commons.BeforeAfterSuiteClass;
import org.salawat.samples.homeaway.json.requests.NRELTransportationRequestFactory;
import org.salawat.samples.homeaway.json.requests.NRELTransportationRequestFactory.NearestStationReque... | 34.609756 | 105 | 0.788584 |
7ae3d7f78d153daa296a07e35838adad6e50ede7 | 462 | cs | C# | SOLID/SOLID/3. LSP/Square.cs | avandam/TrainingVietnam | 995c9d696dec812ef697b81af3b7d2fb6e45f07e | [
"Unlicense"
] | null | null | null | SOLID/SOLID/3. LSP/Square.cs | avandam/TrainingVietnam | 995c9d696dec812ef697b81af3b7d2fb6e45f07e | [
"Unlicense"
] | null | null | null | SOLID/SOLID/3. LSP/Square.cs | avandam/TrainingVietnam | 995c9d696dec812ef697b81af3b7d2fb6e45f07e | [
"Unlicense"
] | 1 | 2018-12-25T07:12:12.000Z | 2018-12-25T07:12:12.000Z | namespace SOLID._3._LSP
{
class Square : Rectangle
{
public Square(int width) : base(width, width)
{
}
public override void SetWidth(int width)
{
SetSide(width);
}
public override void SetHeight(int height)
{
SetSide(heig... | 17.769231 | 53 | 0.474026 |
0ab1cfe1de1e5d751ee0dab344b0a133894bfa72 | 1,544 | cs | C# | src/Azos/Apps/Strategies/Strategy.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 183 | 2018-10-19T21:17:58.000Z | 2022-03-25T04:48:25.000Z | src/Azos/Apps/Strategies/Strategy.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 587 | 2018-10-30T02:51:14.000Z | 2022-03-29T09:30:44.000Z | src/Azos/Apps/Strategies/Strategy.cs | JohnPKosh/azos | b8cb4c3c43628ce0d5b1df9a1ddd861e0a00d861 | [
"MIT"
] | 35 | 2018-10-19T21:17:21.000Z | 2021-12-28T20:27:47.000Z | /*<FILE_LICENSE>
* Azos (A to Z Application Operating System) Framework
* The A to Z Foundation (a.k.a. Azist) licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
</FILE_LICENSE>*/
using System;
using Azos.Data;
namespace Azos.Apps.Strategies
{
/// ... | 41.72973 | 122 | 0.743523 |
6e595a2e6783b76b582b1316324ed53861100443 | 628 | dart | Dart | test/golden/smarteam/app/presentation/widgets/show_error_widget_test.dart | nimec77/flutter_smarteam | c513554256ca8fd889ac4c9d7fcaa6e3f125b042 | [
"MIT"
] | null | null | null | test/golden/smarteam/app/presentation/widgets/show_error_widget_test.dart | nimec77/flutter_smarteam | c513554256ca8fd889ac4c9d7fcaa6e3f125b042 | [
"MIT"
] | null | null | null | test/golden/smarteam/app/presentation/widgets/show_error_widget_test.dart | nimec77/flutter_smarteam | c513554256ca8fd889ac4c9d7fcaa6e3f125b042 | [
"MIT"
] | null | null | null | import 'package:flutter_smarteam/smarteam/app/presentation/widgets/show_error_widget.dart';
import 'package:golden_toolkit/golden_toolkit.dart';
import '../../../../../helpers/helpers.dart';
void main() {
testGoldens('ShowErrorWidget render test', (tester) async {
const widget = ShowErrorWidget(
errorMess... | 29.904762 | 91 | 0.703822 |
08b00fec0bbba1d0a774339b1612f6edd70b418b | 120 | css | CSS | third_party/blink/web_tests/http/tests/devtools/sources/resources/sourcemap-style-2.css | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/web_tests/http/tests/devtools/sources/resources/sourcemap-style-2.css | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/web_tests/http/tests/devtools/sources/resources/sourcemap-style-2.css | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | @media (min-width: 6px){#container{border:1px solid blue;color:blue}}
/*# sourceMappingURL=sourcemap-style-2.css.map */
| 40 | 69 | 0.741667 |
3a7355f3ff32a7bd6f949f5f2c4408559a9a5d07 | 2,555 | lua | Lua | AddOns/PetTracker/addons/main/localization/cn.lua | mrbandler/wow-ui | 1b0eff4a2a90618fd80060433cc5ad7f19621c43 | [
"MIT"
] | null | null | null | AddOns/PetTracker/addons/main/localization/cn.lua | mrbandler/wow-ui | 1b0eff4a2a90618fd80060433cc5ad7f19621c43 | [
"MIT"
] | null | null | null | AddOns/PetTracker/addons/main/localization/cn.lua | mrbandler/wow-ui | 1b0eff4a2a90618fd80060433cc5ad7f19621c43 | [
"MIT"
] | null | null | null | --[[
Chinese Simplified Localization
--]]
local ADDON = ...
local L = LibStub('AceLocale-3.0'):NewLocale(ADDON, 'zhCN')
if not L then return end
-- main
L.AddWaypoint = '添加路径点'
L.AskForfeit = '没有可供升级,退出战斗?'
L.AvailableBreeds = '可用种属'
L.Breed = '种属'
L.BreedExplanation = '确定每级上涨种属属性情况。'
L.CapturedPets = '已捕获宠物'
L.Comm... | 24.567308 | 119 | 0.735812 |
9644f88bd3edefb02907baf1907b1906f3c795ec | 473 | kt | Kotlin | unicorn-coroutines/src/main/kotlin/ru/dimsuz/unicorn/coroutines/Machine.kt | dimsuz/unicorn | 910b96de0caebd1edf40954ea06a7688af50625f | [
"Apache-2.0"
] | 4 | 2021-04-07T12:22:22.000Z | 2021-05-27T12:37:51.000Z | unicorn-coroutines/src/main/kotlin/ru/dimsuz/unicorn/coroutines/Machine.kt | dimsuz/unicorn | 910b96de0caebd1edf40954ea06a7688af50625f | [
"Apache-2.0"
] | null | null | null | unicorn-coroutines/src/main/kotlin/ru/dimsuz/unicorn/coroutines/Machine.kt | dimsuz/unicorn | 910b96de0caebd1edf40954ea06a7688af50625f | [
"Apache-2.0"
] | null | null | null | package ru.dimsuz.unicorn.coroutines
import kotlinx.coroutines.flow.Flow
interface Machine<S : Any, E : Any> {
val states: Flow<S>
/**
* Sends event [e] to the machine, suspending in case event buffer is overflown.
* See [trySend] for a non-suspending variant
*/
suspend fun send(e: E)
/**
* Trie... | 23.65 | 84 | 0.672304 |
53f0bc9e776783d26309c7c15e13b038906fc8a2 | 3,335 | kt | Kotlin | common/src/main/java/com/sec/common/ktx/RecyclerExt.kt | liuhuiAndroid/fizz | 2ccbf66a540cc4db738f9d3e0fdcc6f5db014526 | [
"MIT"
] | null | null | null | common/src/main/java/com/sec/common/ktx/RecyclerExt.kt | liuhuiAndroid/fizz | 2ccbf66a540cc4db738f9d3e0fdcc6f5db014526 | [
"MIT"
] | null | null | null | common/src/main/java/com/sec/common/ktx/RecyclerExt.kt | liuhuiAndroid/fizz | 2ccbf66a540cc4db738f9d3e0fdcc6f5db014526 | [
"MIT"
] | null | null | null | package com.sec.common.ktx
import androidx.core.view.children
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.scwang.smart.refresh.layout.SmartRefreshLayout
import com.scwang.smart.refresh.layout.api.RefreshLayout
import com.scwang.smart.refresh.layou... | 27.561983 | 109 | 0.63928 |
8e5b906ecd27ce6750e630ec6891bcae92aaf091 | 10,844 | rs | Rust | src/color.rs | luke-nuttall/rasterize | 761fa81e7f0c331d23235d6d3a68e420812b54b6 | [
"MIT"
] | null | null | null | src/color.rs | luke-nuttall/rasterize | 761fa81e7f0c331d23235d6d3a68e420812b54b6 | [
"MIT"
] | null | null | null | src/color.rs | luke-nuttall/rasterize | 761fa81e7f0c331d23235d6d3a68e420812b54b6 | [
"MIT"
] | null | null | null | use crate::{Paint, Point, Scalar, Transform, Units};
use std::{
fmt,
ops::{Add, Mul},
str::FromStr,
};
pub trait Color {
fn blend_over(&self, other: &Self) -> Self;
fn with_alpha(&self, alpha: Scalar) -> Self;
fn to_rgba(&self) -> [u8; 4];
fn to_rgb(&self) -> [u8; 3]
where
Se... | 25.880668 | 119 | 0.502029 |
0eb239ee98216c3eea2f3a4689792fea60f738ab | 744 | sql | SQL | openGaussBase/testcase/SQL/DDL/unique_constraint/Opengauss_Function_DDL_Unique_Case0004.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DDL/unique_constraint/Opengauss_Function_DDL_Unique_Case0004.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/SQL/DDL/unique_constraint/Opengauss_Function_DDL_Unique_Case0004.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint: 创建不带约束名字的联合唯一约束,违反联合唯一约束,合理报错
-- @modify at: 2020-11-23
--建表成功
drop table if exists test_unique_constraint004;
create table test_unique_constraint004 (id_p int not null unique, lastname varchar(255) not null, firstname varchar(255), address varchar(255), city varchar(255),unique (id_p,lastname));
--插入数据,... | 53.142857 | 186 | 0.771505 |
8541dcd188bdb50e98e485ac32d3d9f7689abc75 | 3,011 | lua | Lua | drivers/SmartThings/zigbee-lock/src/lock-without-codes/init.lua | teba-home/SmartThingsEdgeDrivers | 924d882f29a9499868faa71c62d481459533dfa0 | [
"Apache-2.0"
] | null | null | null | drivers/SmartThings/zigbee-lock/src/lock-without-codes/init.lua | teba-home/SmartThingsEdgeDrivers | 924d882f29a9499868faa71c62d481459533dfa0 | [
"Apache-2.0"
] | null | null | null | drivers/SmartThings/zigbee-lock/src/lock-without-codes/init.lua | teba-home/SmartThingsEdgeDrivers | 924d882f29a9499868faa71c62d481459533dfa0 | [
"Apache-2.0"
] | null | null | null | -- Copyright 2022 SmartThings
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... | 30.72449 | 100 | 0.750913 |
664afe6f7b499bbbe00753183154aa3fff97b8da | 197 | kt | Kotlin | app/src/main/java/sample/kanda/burn/fact/Constants.kt | jcaiqueoliveira/finger-burn | e71755ffcaffaa1b00c5b1afd4a1b64baef644a6 | [
"MIT"
] | 2 | 2018-03-07T01:46:39.000Z | 2018-05-23T02:01:26.000Z | app/src/main/java/sample/kanda/burn/fact/Constants.kt | jcaiqueoliveira/finger-burn | e71755ffcaffaa1b00c5b1afd4a1b64baef644a6 | [
"MIT"
] | null | null | null | app/src/main/java/sample/kanda/burn/fact/Constants.kt | jcaiqueoliveira/finger-burn | e71755ffcaffaa1b00c5b1afd4a1b64baef644a6 | [
"MIT"
] | null | null | null | package sample.kanda.burn.fact
/**
* Created by caique on 3/12/18.
*/
object Constants {
const val COLOR_TEXT_EMPTY_CATEGORY = -11646634
const val COLOR_TEXT_WITH_CATEGORY = -14835214
} | 19.7 | 51 | 0.730964 |
637f536380d48e4bc56cacccbfe19d755bfa63c1 | 1,477 | rs | Rust | src/inner.rs | Rufflewind/index_queue | 90bb5833b96dc3cfac9d9de8ca55e71572044022 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/inner.rs | Rufflewind/index_queue | 90bb5833b96dc3cfac9d9de8ca55e71572044022 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/inner.rs | Rufflewind/index_queue | 90bb5833b96dc3cfac9d9de8ca55e71572044022 | [
"Apache-2.0",
"MIT"
] | null | null | null | const INVALID_INDEX: usize = !0;
#[derive(Clone, Copy, Debug)]
pub struct Link {
pub prev: usize,
pub next: usize,
}
/// Slots can be either filled or empty.
///
/// - An empty slot is created using `Default`.
/// An existing slot can be made empty using `clear`.
/// - A filled slot is created using `... | 20.802817 | 64 | 0.532837 |
a3587988ad80101e86044cf35ed783a7b9046543 | 1,492 | java | Java | localstack/ext/java/src/main/java/cloud/localstack/docker/command/RunCommand.java | texxIO/localstack | 7d4a7f80a8b06df1d562d2a0bbaa33a508681803 | [
"Apache-2.0"
] | 4 | 2019-01-12T22:48:24.000Z | 2019-12-10T06:56:17.000Z | localstack/ext/java/src/main/java/cloud/localstack/docker/command/RunCommand.java | texxIO/localstack | 7d4a7f80a8b06df1d562d2a0bbaa33a508681803 | [
"Apache-2.0"
] | 101 | 2019-11-26T07:05:59.000Z | 2021-08-03T05:41:12.000Z | localstack/ext/java/src/main/java/cloud/localstack/docker/command/RunCommand.java | texxIO/localstack | 7d4a7f80a8b06df1d562d2a0bbaa33a508681803 | [
"Apache-2.0"
] | 6 | 2019-07-10T10:27:54.000Z | 2021-04-08T09:59:54.000Z | package cloud.localstack.docker.command;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class RunCommand extends Command {
private final String imageName;
private final String imageTag;
public RunCommand(String imageName) {
this(imageName, null);
}
publ... | 27.62963 | 100 | 0.647453 |
f4a9f075936525416d1507ed0492a1b92b74194a | 4,926 | ts | TypeScript | packages/@dicebear/miniavs/src/components/hair.ts | DiceBear/dicebear | dfd65cbd3ef269e6dbc9283bf4a644318e4724b5 | [
"MIT"
] | 2,408 | 2021-03-09T05:35:28.000Z | 2022-03-31T19:16:12.000Z | packages/@dicebear/miniavs/src/components/hair.ts | NitroJett/dicebear | 88c396fdffadf8d12f2017aeab10e33c570305f1 | [
"MIT"
] | 92 | 2017-07-27T20:23:38.000Z | 2021-03-02T11:58:36.000Z | packages/@dicebear/miniavs/src/components/hair.ts | NitroJett/dicebear | 88c396fdffadf8d12f2017aeab10e33c570305f1 | [
"MIT"
] | 97 | 2021-03-12T17:32:50.000Z | 2022-03-31T13:50:04.000Z | import type { ComponentGroup, ComponentPickCollection, ColorPickCollection } from '../static-types';
export const hair: ComponentGroup = {
'balndess': (components: ComponentPickCollection, colors: ColorPickCollection) => `
<g fill="${colors.hair.value}">
<rect x="14" y="26" width="9" height="2" rx="1"/>
<r... | 114.55814 | 766 | 0.656719 |
596d77ed7c00e32b79f6e6c58e54fd6f6f21c306 | 2,632 | swift | Swift | build/src/Models/AgentActivity.swift | MyPureCloud/platform-client-sdk-ios | d69e3deedbbe2f30c3641a5c8b4e66eb5eb6858b | [
"MIT"
] | null | null | null | build/src/Models/AgentActivity.swift | MyPureCloud/platform-client-sdk-ios | d69e3deedbbe2f30c3641a5c8b4e66eb5eb6858b | [
"MIT"
] | null | null | null | build/src/Models/AgentActivity.swift | MyPureCloud/platform-client-sdk-ios | d69e3deedbbe2f30c3641a5c8b4e66eb5eb6858b | [
"MIT"
] | 1 | 2021-05-11T21:57:38.000Z | 2021-05-11T21:57:38.000Z | //
// AgentActivity.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//
import Foundation
public class AgentActivity: Codable {
/** The globally unique identifier for the object. */
public var _id: String?
public var name: String?
public var agent: User?
... | 31.710843 | 410 | 0.696429 |
0dea28eb669b7d68eca16d3a6b352ac2e23dc55c | 346 | asm | Assembly | test/e2e/data/thm6.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 8 | 2020-06-21T22:05:00.000Z | 2021-10-06T19:59:20.000Z | test/e2e/data/thm6.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 82 | 2020-06-21T22:02:00.000Z | 2020-08-04T01:48:42.000Z | test/e2e/data/thm6.asm | matanlurey/armv4t.dart | 06235938d16cb1f2b09d26f564b985854e4155c0 | [
"MIT"
] | 1 | 2020-06-22T15:16:02.000Z | 2020-06-22T15:16:02.000Z | ; expected result: 0x1fc = 0
; ARM MODE (Entrypoint)
processor CPU32_V1
code32
mov sp, 0x200
mov r0, main - 1
processor CPU32_V4T
BX r0
code16
main:
mov r0, #2 ; r0 = 0x2
mov r1, #2 ; r1 = 0x2
cmp r0, r1 ; Z = 1
sbc r0, r0 ; r0 = r0 - r0
; r0 = 2 - 2
... | 17.3 | 30 | 0.488439 |
ea534ad245654983a5dfdea81581b05edc403ce4 | 1,771 | lua | Lua | lua/apisix/consumer.lua | orangle/apisix | 1737fb702e6b6537d3c7198f859e72d4060b5fc1 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-10-27T07:25:06.000Z | 2019-10-27T07:25:06.000Z | lua/apisix/consumer.lua | orangle/apisix | 1737fb702e6b6537d3c7198f859e72d4060b5fc1 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | lua/apisix/consumer.lua | orangle/apisix | 1737fb702e6b6537d3c7198f859e72d4060b5fc1 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | local lrucache = require("apisix.core.lrucache")
local config = require("apisix.core.config_etcd")
local insert_tab = table.insert
local consumers
local error = error
local ipairs = ipairs
local pairs = pairs
local _M = {
version = 0.1,
}
--[[
{
"id": "ShunFeng",
"plugin_config": {
... | 21.864198 | 80 | 0.546019 |
0da2f8e8dc2b5e63bae97ae9ac80bd6beef4b7fb | 85 | kt | Kotlin | idea/testData/refactoring/inline/function/fromIntellij/FieldInitializer.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | 337 | 2020-05-14T00:40:10.000Z | 2022-02-16T23:39:07.000Z | idea/testData/refactoring/inline/function/fromIntellij/FieldInitializer.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | 92 | 2020-06-10T23:17:42.000Z | 2020-09-25T10:50:13.000Z | idea/testData/refactoring/inline/function/fromIntellij/FieldInitializer.kt | qussarah/declare | c83b764c7394efa3364915d973ae79c4ebed2437 | [
"Apache-2.0"
] | 54 | 2016-02-29T16:27:38.000Z | 2020-12-26T15:02:23.000Z | class A {
val field = foo()
fun <caret>foo(): Int {
return 1
}
} | 12.142857 | 27 | 0.447059 |
9f1190c20ed3fe83b6365f9c7274b9b2bc40ac7b | 567 | asm | Assembly | oeis/024/A024035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/024/A024035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/024/A024035.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A024035: a(n) = 3^n - n^12.
; 1,2,-4087,-531414,-16777135,-244140382,-2176781607,-13841285014,-68719470175,-282429516798,-999999940951,-3138428199574,-8916099916815,-23298083528158,-56693907592327,-129746323541718,-281474933663935,-582622108089598,-1156830994005687,-2213313756804694,-4095996513215599,-735581705103343... | 63 | 486 | 0.816578 |
409283700e511fc440064b8ea032a95a1ff00349 | 989 | rb | Ruby | lib/generators/web_app_theme/assets/assets_generator.rb | profics/web-app-theme | fd3bc16d010857af834fd6e462eb0c52b49fd95f | [
"MIT"
] | null | null | null | lib/generators/web_app_theme/assets/assets_generator.rb | profics/web-app-theme | fd3bc16d010857af834fd6e462eb0c52b49fd95f | [
"MIT"
] | null | null | null | lib/generators/web_app_theme/assets/assets_generator.rb | profics/web-app-theme | fd3bc16d010857af834fd6e462eb0c52b49fd95f | [
"MIT"
] | null | null | null | module WebAppTheme
class AssetsGenerator < Rails::Generators::Base
desc "Copy the --theme stylesheets to your rails application assets path, so you can customize them"
source_root File.expand_path('../../../../../app/', __FILE__)
class_option :theme, :type => :string, :default => :default... | 44.954545 | 141 | 0.668352 |
a3b7f6c24afc3e940fc5efb687accfb71503653d | 1,419 | java | Java | src/main/java/net/finmath/montecarlo/interestrate/products/indices/PowIndex.java | Diffblue-benchmarks/finmath-lib | 6833bc313240c2b1e1ff0d46e3879eea8174e262 | [
"Apache-2.0"
] | null | null | null | src/main/java/net/finmath/montecarlo/interestrate/products/indices/PowIndex.java | Diffblue-benchmarks/finmath-lib | 6833bc313240c2b1e1ff0d46e3879eea8174e262 | [
"Apache-2.0"
] | null | null | null | src/main/java/net/finmath/montecarlo/interestrate/products/indices/PowIndex.java | Diffblue-benchmarks/finmath-lib | 6833bc313240c2b1e1ff0d46e3879eea8174e262 | [
"Apache-2.0"
] | null | null | null | /*
* Created on 22.11.2009
*/
package net.finmath.montecarlo.interestrate.products.indices;
import java.util.Set;
import net.finmath.exception.CalculationException;
import net.finmath.montecarlo.interestrate.LIBORModelMonteCarloSimulationModel;
import net.finmath.montecarlo.interestrate.products.components.Abstract... | 25.8 | 127 | 0.751938 |