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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
05aa648973edc1dadc87a9a8de7c8c2e6067a5a0 | 9,112 | py | Python | train.py | gakkispy/DD-Net-Pytorch | 45032ce373dfa0fffec8e99671555071548445bc | [
"MIT"
] | 31 | 2020-08-25T05:28:33.000Z | 2022-03-25T01:54:57.000Z | train.py | gakkispy/DD-Net-Pytorch | 45032ce373dfa0fffec8e99671555071548445bc | [
"MIT"
] | 1 | 2021-12-25T04:13:22.000Z | 2021-12-25T04:13:22.000Z | train.py | gakkispy/DD-Net-Pytorch | 45032ce373dfa0fffec8e99671555071548445bc | [
"MIT"
] | 7 | 2020-11-08T02:49:46.000Z | 2022-03-08T09:14:37.000Z | #! /usr/bin/env python
#! coding:utf-8
from pathlib import Path
import matplotlib.pyplot as plt
from torch import log
from tqdm import tqdm
import torch
import torch.nn as nn
import argparse
import torch.optim as optim
from torch.optim.lr_scheduler import ReduceLROnPlateau
from sklearn.metrics import confusion_matrix
... | 38.447257 | 102 | 0.613586 |
d07d396d290e097aa74751b2f8b96cac5c013cae | 538 | asm | Assembly | oeis/070/A070781.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/070/A070781.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/070/A070781.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A070781: a(n) = binomial((n+1)^2, n^2).
; 1,4,126,11440,2042975,600805296,262596783764,159518999862720,128447994798305325,132341572939212267400,169758547725351091518726,265242021590899282966358400,495874093230232452749553398586,1092844289151775603486607296657120,2803736645550638260366779399137545800,82836755952683742... | 59.777778 | 447 | 0.881041 |
3a292e76b9eb02de473ad471f8e8f85c964d0fa7 | 10,666 | lua | Lua | fixes/TriggerFixCppLogicExtension.lua | mcb5637/s5CommunityLib | 20fb1521fe65105c128ac45540470000c61ddf3a | [
"MIT"
] | 1 | 2022-02-23T18:56:34.000Z | 2022-02-23T18:56:34.000Z | fixes/TriggerFixCppLogicExtension.lua | mcb5637/s5CommunityLib | 20fb1521fe65105c128ac45540470000c61ddf3a | [
"MIT"
] | null | null | null | fixes/TriggerFixCppLogicExtension.lua | mcb5637/s5CommunityLib | 20fb1521fe65105c128ac45540470000c61ddf3a | [
"MIT"
] | null | null | null | if mcbPacker then --mcbPacker.ignore
mcbPacker.require("s5CommunityLib/fixes/TriggerFix")
mcbPacker.require("s5CommunityLib/comfort/other/FrameworkWrapperLight")
mcbPacker.require("s5CommunityLib/tables/ArmorClasses")
mcbPacker.require("s5CommunityLib/comfort/entity/EntityIdChangedHelper")
end --mcbPacker.ignore
if no... | 44.441667 | 187 | 0.723701 |
bb3648e855870f1a6fcab377be3eb8892eb5982c | 7,385 | cs | C# | Bash.Common/Models/BashData.cs | b3nk4n/ibash0r-app | 4d5e4ebeae3d920e6699c4efd4db06779b1c33bb | [
"MIT"
] | null | null | null | Bash.Common/Models/BashData.cs | b3nk4n/ibash0r-app | 4d5e4ebeae3d920e6699c4efd4db06779b1c33bb | [
"MIT"
] | null | null | null | Bash.Common/Models/BashData.cs | b3nk4n/ibash0r-app | 4d5e4ebeae3d920e6699c4efd4db06779b1c33bb | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using PhoneKit.Framework.Core.MVVM;
namespace Bash.Common.Models
{
[DataContract]
public class BashData : ViewModelBase
{
private const string NEWLINE = "[newline]";
private List<BashQuo... | 31.969697 | 126 | 0.419499 |
bdca4b8304cf57c7ad11f544dac8fd076abf2a18 | 19,743 | sql | SQL | 25072021pj2.sql | hiep820/PJ-2 | 685fc90fb56623606137a3b74d5a94711c2a7a87 | [
"MIT"
] | null | null | null | 25072021pj2.sql | hiep820/PJ-2 | 685fc90fb56623606137a3b74d5a94711c2a7a87 | [
"MIT"
] | null | null | null | 25072021pj2.sql | hiep820/PJ-2 | 685fc90fb56623606137a3b74d5a94711c2a7a87 | [
"MIT"
] | null | null | null | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th7 26, 2021 lúc 11:17 AM
-- Phiên bản máy phục vụ: 10.4.18-MariaDB
-- Phiên bản PHP: 7.4.16
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHAR... | 29.205621 | 165 | 0.664641 |
2cc639cb964936838eff44bc095fbdb82111aedb | 4,554 | py | Python | src/main.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | null | null | null | src/main.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | null | null | null | src/main.py | ewanlee/mackrl | 6dd505aa09830f16c35a022f67e255db935c807e | [
"Apache-2.0"
] | null | null | null | import numpy as np
import os
from os.path import dirname, abspath
import pymongo
from sacred import Experiment, SETTINGS
SETTINGS.CONFIG.READ_ONLY_CONFIG = False
from sacred.observers import FileStorageObserver
from sacred.observers import MongoObserver
from sacred.utils import apply_backspaces_and_linefeeds
import sys... | 32.297872 | 89 | 0.692578 |
1a591f71a097fb277a222e3b29d0120fbc628fc4 | 10,657 | py | Python | Functions/NestedComBat.py | hannah-horng/generalized-combat | 5f58f960484084fc914f834e71f2b1bd8f7a6946 | [
"MIT"
] | null | null | null | Functions/NestedComBat.py | hannah-horng/generalized-combat | 5f58f960484084fc914f834e71f2b1bd8f7a6946 | [
"MIT"
] | null | null | null | Functions/NestedComBat.py | hannah-horng/generalized-combat | 5f58f960484084fc914f834e71f2b1bd8f7a6946 | [
"MIT"
] | null | null | null | # Written by Hannah Horng (hhorng@seas.upenn.edu)
import pandas as pd
import neuroCombat as nC
from sklearn.preprocessing import LabelEncoder
import matplotlib.pyplot as plt
from scipy.stats import ranksums, ttest_ind, ttest_rel, ks_2samp
import os
def NestedComBat(dat, covars, batch_list, categorical_cols=None, cont... | 42.289683 | 139 | 0.663038 |
07b3ca19d715fd8aace95af6968ddbf79d668ee3 | 71 | cpp | C++ | cpp/example/src/CoinChange/coinChange.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:33:45.000Z | 2022-01-26T16:33:45.000Z | cpp/example/src/CoinChange/coinChange.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | null | null | null | cpp/example/src/CoinChange/coinChange.cpp | zcemycl/algoTest | 9518fb2b60fd83c85aeb2ab809ff647aaf643f0a | [
"MIT"
] | 1 | 2022-01-26T16:35:44.000Z | 2022-01-26T16:35:44.000Z | #include "coinChange.h"
int coinChange::naive(int n){
return n;
}
| 11.833333 | 29 | 0.661972 |
c401bc08ec86b95b8a9224ce279252c9a2ee9c31 | 2,553 | cc | C++ | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 377 | 2018-10-24T08:34:21.000Z | 2022-03-31T23:37:49.000Z | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 11 | 2020-01-22T13:34:46.000Z | 2022-03-07T10:07:34.000Z | tests/testfoundation/ringbuffertest.cc | sirAgg/nebula | 3fbccc73779944aa3e56b9e8acdd6fedd1d38006 | [
"BSD-2-Clause"
] | 23 | 2019-07-13T16:28:32.000Z | 2022-03-20T09:00:59.000Z | //------------------------------------------------------------------------------
// ringbuffertest.cc
// (C) 2008 Radon Labs GmbH
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "ringbuffertest.h"
#include "util/ringbuffer.h"
namespace Test
{
__ImplementC... | 23.209091 | 80 | 0.444967 |
493637e7dd3bec871f2fe8b2f5f0e55841c21b58 | 298 | sql | SQL | sentencias/sql/create_schemas.sql | C1587S/OffenderDS | 45834a71895473b9fac2eac6fb590e4655d1259a | [
"MIT"
] | 2 | 2019-12-10T04:58:44.000Z | 2019-12-22T06:53:35.000Z | sentencias/sql/create_schemas.sql | C1587S/OffenderDS | 45834a71895473b9fac2eac6fb590e4655d1259a | [
"MIT"
] | 22 | 2019-12-09T04:14:25.000Z | 2019-12-12T04:07:09.000Z | sentencias/sql/create_schemas.sql | C1587S/OffenderDS | 45834a71895473b9fac2eac6fb590e4655d1259a | [
"MIT"
] | 2 | 2019-12-22T06:53:58.000Z | 2020-01-30T07:15:19.000Z | /*
Creamos los esquemas raw, cleaned y semantic, eliminándolos previamente en caso de que ya existieran
*/
drop schema if exists raw cascade;
create schema raw;
drop schema if exists cleaned cascade;
create schema cleaned;
drop schema if exists semantic cascade;
create schema semantic; | 27.090909 | 101 | 0.775168 |
bb7e3888d76c3c2377392b35c7dff90bd6db928b | 229 | cs | C# | tools/grial-uikit-extended-1.5.2/samples/Grial/Grial/Views/Theme/CommonViewsPage.xaml.cs | micbelgique/DevCamp2017-Team12 | 900af8365e2d1b4f9dc068ec5c23c8891f682926 | [
"MIT"
] | null | null | null | tools/grial-uikit-extended-1.5.2/samples/Grial/Grial/Views/Theme/CommonViewsPage.xaml.cs | micbelgique/DevCamp2017-Team12 | 900af8365e2d1b4f9dc068ec5c23c8891f682926 | [
"MIT"
] | null | null | null | tools/grial-uikit-extended-1.5.2/samples/Grial/Grial/Views/Theme/CommonViewsPage.xaml.cs | micbelgique/DevCamp2017-Team12 | 900af8365e2d1b4f9dc068ec5c23c8891f682926 | [
"MIT"
] | null | null | null | using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace UXDivers.Artina.Grial
{
public partial class CommonViewsPage : ContentPage
{
public CommonViewsPage()
{
InitializeComponent ();
}
}
}
| 13.470588 | 51 | 0.737991 |
e25b0f199e9ac77962d19226d34ffa4a6e1482ce | 1,038 | py | Python | config.py | rdriesen-vtj/vtj | e86da07e55d2a46b83b20cf8bae8900abcb9b4ee | [
"MIT"
] | null | null | null | config.py | rdriesen-vtj/vtj | e86da07e55d2a46b83b20cf8bae8900abcb9b4ee | [
"MIT"
] | null | null | null | config.py | rdriesen-vtj/vtj | e86da07e55d2a46b83b20cf8bae8900abcb9b4ee | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess'
#SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db')
dbmysql = "vamostrabalhar"
usermysq... | 41.52 | 112 | 0.687861 |
4445dffd4596d7b719138a8d89037aff6730a55f | 1,547 | py | Python | src/pyfme/models/constants.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 199 | 2015-12-29T19:49:42.000Z | 2022-03-19T14:31:24.000Z | src/pyfme/models/constants.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 126 | 2015-09-23T11:15:42.000Z | 2020-07-29T12:27:22.000Z | src/pyfme/models/constants.py | gaofeng2020/PyFME | 26b76f0622a8dca0e24eb477a6fb4a8b2aa604d7 | [
"MIT"
] | 93 | 2015-12-26T13:02:29.000Z | 2022-03-19T14:31:13.000Z | # -*- coding: utf-8 -*-
"""
Python Flight Mechanics Engine (PyFME).
Copyright (c) AeroPython Development Team.
Distributed under the terms of the MIT License.
Constant variables
------------------
Sources:
[1] - COESA standard - U.S. Standard Atmosphere, 1976, U.S. Government Printing
Office, Washington, D.C., ... | 32.229167 | 79 | 0.693601 |
145ab9f991710c11339fa14a1e07ff87520891c1 | 547 | tsx | TypeScript | src/_app/render.tsx | VinayaSathyanarayana/next-page-tester | 476d7b731cfb283e68ea60fe7a16e810a94e4409 | [
"MIT"
] | null | null | null | src/_app/render.tsx | VinayaSathyanarayana/next-page-tester | 476d7b731cfb283e68ea60fe7a16e810a94e4409 | [
"MIT"
] | 2 | 2021-12-09T03:32:18.000Z | 2022-02-17T21:15:27.000Z | src/_app/render.tsx | VinayaSathyanarayana/next-page-tester | 476d7b731cfb283e68ea60fe7a16e810a94e4409 | [
"MIT"
] | null | null | null | import React from 'react';
import type { ExtendedOptions, PageObject, PageProps } from '../commonTypes';
import { getPageComponents } from '../makePageElement';
export default function renderApp({
options,
pageObject,
pageProps,
}: {
options: ExtendedOptions;
pageObject: PageObject;
pageProps: PageProps | ... | 24.863636 | 77 | 0.711152 |
b33dc8d5e5e1e8c41ea27f07fd94c0b2c8d6ad02 | 878 | py | Python | awards/myusers/forms.py | dan-mutua/djangowk3 | 9af2651ade9b7cd9c02ee1f93dc60c4f9ea1adeb | [
"MIT"
] | null | null | null | awards/myusers/forms.py | dan-mutua/djangowk3 | 9af2651ade9b7cd9c02ee1f93dc60c4f9ea1adeb | [
"MIT"
] | null | null | null | awards/myusers/forms.py | dan-mutua/djangowk3 | 9af2651ade9b7cd9c02ee1f93dc60c4f9ea1adeb | [
"MIT"
] | null | null | null | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
class RegistrationForm(UserCreationForm):
email = forms.EmailField()
bio = forms.CharField()
class Meta:
model = User
fields=['username','email','bio', 'password1'... | 31.357143 | 70 | 0.690205 |
e9e0b516a0568bf9ead61e903ac6bdd5fafc546a | 2,578 | rs | Rust | src/bin/day-5/input.rs | drewwyatt/advent-of-code-2020 | 99d9e69f89cbf9d7c575980a8a4209534531414c | [
"MIT"
] | null | null | null | src/bin/day-5/input.rs | drewwyatt/advent-of-code-2020 | 99d9e69f89cbf9d7c575980a8a4209534531414c | [
"MIT"
] | null | null | null | src/bin/day-5/input.rs | drewwyatt/advent-of-code-2020 | 99d9e69f89cbf9d7c575980a8a4209534531414c | [
"MIT"
] | null | null | null | use std::str::FromStr;
const NUMBER_OF_ROWS: i32 = 128;
const NUMBER_OF_SEATS: i32 = 8;
#[derive(Debug)]
pub enum AdventError {
UnrecognizedChar,
InvalidTree,
}
#[derive(Debug)]
enum RowLetter {
F,
B,
}
#[derive(Debug)]
enum SeatLetter {
L,
R,
}
impl RowLetter {
fn from_char(c: char) -> Result<Self,... | 17.902778 | 55 | 0.567494 |
15d43458e81378e7925ee852b1e69c2bcfd1a000 | 7,850 | rs | Rust | src/simulate.rs | iburinoc/bh_mhd | 98a548722f760f5d5efd6411d8cd35b81656b319 | [
"MIT"
] | 2 | 2018-01-19T03:58:45.000Z | 2022-03-21T10:52:09.000Z | src/simulate.rs | iburinoc/bh_mhd | 98a548722f760f5d5efd6411d8cd35b81656b319 | [
"MIT"
] | null | null | null | src/simulate.rs | iburinoc/bh_mhd | 98a548722f760f5d5efd6411d8cd35b81656b319 | [
"MIT"
] | 1 | 2022-03-21T10:52:03.000Z | 2022-03-21T10:52:03.000Z | extern crate glium;
use std::cell::RefCell;
use std::fmt;
use glium::{Program,VertexBuffer,IndexBuffer,Display};
use glium::framebuffer::MultiOutputFrameBuffer;
use glium::backend::Facade;
use glium::vertex::VertexBufferAny;
use glium::index::{PrimitiveType,IndexBufferAny};
use glium::texture::Texture2d;
pub struct ... | 27.16263 | 106 | 0.515414 |
939f257d7f0c536a8a1b44cec028c810a62fd9dd | 2,533 | cs | C# | tests/IntegrationTests/PackageTests/FluentValidation/AddressOptionsFluentValidationTests.cs | photo-cli/photo-cli | ee196580d4f3e419d00399de9f865d8dd947733a | [
"Apache-2.0"
] | 3 | 2022-02-09T12:18:32.000Z | 2022-02-15T21:02:14.000Z | tests/IntegrationTests/PackageTests/FluentValidation/AddressOptionsFluentValidationTests.cs | alpcoker/photo-cli | c3404de4e4d25d11cab9f12e629a6e5a53620be5 | [
"Apache-2.0"
] | null | null | null | tests/IntegrationTests/PackageTests/FluentValidation/AddressOptionsFluentValidationTests.cs | alpcoker/photo-cli | c3404de4e4d25d11cab9f12e629a6e5a53620be5 | [
"Apache-2.0"
] | 2 | 2021-12-18T23:51:50.000Z | 2021-12-20T04:27:59.000Z | namespace PhotoCli.Tests.IntegrationTests.PackageTests.FluentValidation;
public class AddressOptionsFluentValidationTests : BaseFluentValidationTests<AddressOptions, AddressOptionsValidator>
{
[Fact]
public void Null_InputFolderPath_Should_Give_NotNullValidator_Error()
{
var options = new AddressOptions(null!, R... | 50.66 | 188 | 0.84998 |
5d4b8388df4e5a976081a87e4f0385c478f2c995 | 6,187 | cpp | C++ | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | 4 | 2020-01-07T07:05:18.000Z | 2020-01-09T10:25:41.000Z | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | null | null | null | src/Core/QSafeguard.cpp | ericzh86/qt-toolkit | 63ec071f8989d6efcc4afa30fa98ede695edba27 | [
"MIT"
] | null | null | null | #include "QSafeguard.h"
#include "QSafeguard_p.h"
#include <QStringBuilder>
#include <QLoggingCategory>
Q_LOGGING_CATEGORY(lcSafeguard, "QSafeguard")
// class QSafeguard
QSafeguard::QSafeguard(const QString &dumpPath, QObject *parent)
: QObject(parent)
, d_ptr(new QSafeguardPrivate())
{
d_ptr->q_ptr = t... | 33.625 | 115 | 0.390981 |
4b8d1b9ba55a180d12c0162fb4b749c34f3d9a2a | 21,930 | cpp | C++ | pic32/cores/pic32/USB_HS.cpp | jg2562/chipKIT-core | ec18f615a3369f35a8c7ce1d46ff1aa4ee12e17a | [
"Apache-2.0"
] | 54 | 2015-09-08T01:16:21.000Z | 2022-03-29T06:21:54.000Z | pic32/cores/pic32/USB_HS.cpp | jg2562/chipKIT-core | ec18f615a3369f35a8c7ce1d46ff1aa4ee12e17a | [
"Apache-2.0"
] | 363 | 2015-07-30T21:14:46.000Z | 2022-03-14T04:25:27.000Z | pic32/cores/pic32/USB_HS.cpp | jg2562/chipKIT-core | ec18f615a3369f35a8c7ce1d46ff1aa4ee12e17a | [
"Apache-2.0"
] | 73 | 2015-08-01T14:29:53.000Z | 2022-01-25T15:07:13.000Z | /*
* Copyright (c) 2017, Majenko Technologies
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | 30.416089 | 109 | 0.56995 |
a32449cd937ec80338a6706409781bd74fb958f9 | 94 | ts | TypeScript | backend/src/data/contracts/account/update-token-repository.ts | KPMGE/FreshGift | 68f8e202b020a2251017982319ade4909ea468cf | [
"MIT"
] | 1 | 2022-03-24T13:08:22.000Z | 2022-03-24T13:08:22.000Z | backend/src/data/contracts/account/update-token-repository.ts | KPMGE/FreshGift | 68f8e202b020a2251017982319ade4909ea468cf | [
"MIT"
] | null | null | null | backend/src/data/contracts/account/update-token-repository.ts | KPMGE/FreshGift | 68f8e202b020a2251017982319ade4909ea468cf | [
"MIT"
] | null | null | null | export interface UpdateTokenRepository {
update(id: string, token: string): Promise<void>
}
| 23.5 | 50 | 0.765957 |
4d58c28ab04c6527a0c1f5dede024a5535a780b7 | 233 | js | JavaScript | modulo6/desafios - JS01/ex05.js | W-Carlos/CodeClub | a1035b667fa8b4a47b96bd50fc9219e3768c734e | [
"MIT"
] | null | null | null | modulo6/desafios - JS01/ex05.js | W-Carlos/CodeClub | a1035b667fa8b4a47b96bd50fc9219e3768c734e | [
"MIT"
] | null | null | null | modulo6/desafios - JS01/ex05.js | W-Carlos/CodeClub | a1035b667fa8b4a47b96bd50fc9219e3768c734e | [
"MIT"
] | null | null | null | // Faça um programa que imprima na tela se um nome é igual ao outro nome digitado. Ex: João e João, imprime true. João e Maria, imprime false.
let name1 = "João"
let name2 = "João"
let result = name1 === name2
console.log(result) | 29.125 | 142 | 0.712446 |
6cf42216a2b684f52eac7cfb851926ae2e214161 | 144 | dart | Dart | lib/ui/views/program/program_view_model.dart | DanhDue/stacked_state_mamagement | d55c42867b94d65c7b49143f0e5097a20b4b07fa | [
"Apache-2.0"
] | 3 | 2021-12-25T02:05:11.000Z | 2022-01-07T09:28:56.000Z | lib/ui/views/program/program_view_model.dart | DanhDue/stacked_state_mamagement | d55c42867b94d65c7b49143f0e5097a20b4b07fa | [
"Apache-2.0"
] | null | null | null | lib/ui/views/program/program_view_model.dart | DanhDue/stacked_state_mamagement | d55c42867b94d65c7b49143f0e5097a20b4b07fa | [
"Apache-2.0"
] | null | null | null | import 'package:injectable/injectable.dart';
import 'package:stacked/stacked.dart';
@singleton
class ProgramViewModel extends BaseViewModel {}
| 24 | 47 | 0.819444 |
c93c6cdc77b3157ef5dbea224e3f9a09e8afe0af | 826 | ts | TypeScript | src/modules/config.module.ts | AhmedWaelElsawy/articles | 6094b234f515b97ffd55b249326f3fdc32ba1228 | [
"MIT"
] | null | null | null | src/modules/config.module.ts | AhmedWaelElsawy/articles | 6094b234f515b97ffd55b249326f3fdc32ba1228 | [
"MIT"
] | null | null | null | src/modules/config.module.ts | AhmedWaelElsawy/articles | 6094b234f515b97ffd55b249326f3fdc32ba1228 | [
"MIT"
] | null | null | null | import * as Joi from 'joi';
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
/**
* Import and provide app configuration related classes.
*
* @module
*/
const ENV = process.env.NODE_ENV;
const EnvFile = ENV == 'test'? '.env.test' : '.env'
console.log('Current En... | 25.8125 | 61 | 0.638015 |
b18480d281a6d1d9098ce8917c33c34185894e91 | 130 | sql | SQL | 601-700/620. Not Boring Movies.sql | fanjieqi/LeetCodeRuby | b3eaa127acb61c7352b585240882b907ec2174fe | [
"MIT"
] | 2 | 2020-04-01T07:14:00.000Z | 2020-10-24T12:53:18.000Z | 601-700/620. Not Boring Movies.sql | fanjieqi/LeetCodeRuby | b3eaa127acb61c7352b585240882b907ec2174fe | [
"MIT"
] | null | null | null | 601-700/620. Not Boring Movies.sql | fanjieqi/LeetCodeRuby | b3eaa127acb61c7352b585240882b907ec2174fe | [
"MIT"
] | 2 | 2020-10-24T12:53:32.000Z | 2021-09-17T03:26:15.000Z | # Write your MySQL query statement below
select *
from cinema
where
id % 2 = 1
and description <> "boring"
order by rating desc
;
| 14.444444 | 40 | 0.730769 |
9770ca21741aff53fbd3dd1867b919515b53f036 | 208 | rb | Ruby | db/migrate/20160211061750_add_defaults_to_repositories_and_environments.rb | shammishailaj/slashdeploy | e93dd05b87518b90595a4d9ceedf63368795f8ae | [
"BSD-2-Clause"
] | 47 | 2017-06-20T05:51:59.000Z | 2021-07-09T02:24:10.000Z | db/migrate/20160211061750_add_defaults_to_repositories_and_environments.rb | shammishailaj/slashdeploy | e93dd05b87518b90595a4d9ceedf63368795f8ae | [
"BSD-2-Clause"
] | 64 | 2017-05-04T01:37:06.000Z | 2022-03-30T22:18:30.000Z | db/migrate/20160211061750_add_defaults_to_repositories_and_environments.rb | shammishailaj/slashdeploy | e93dd05b87518b90595a4d9ceedf63368795f8ae | [
"BSD-2-Clause"
] | 13 | 2017-12-07T18:57:15.000Z | 2022-03-23T06:39:21.000Z | class AddDefaultsToRepositoriesAndEnvironments < ActiveRecord::Migration
def change
add_column :repositories, :default_environment, :string
add_column :environments, :default_ref, :string
end
end
| 29.714286 | 72 | 0.802885 |
da723ae3513dd6ac6b3902d8fc25eb3b8ab9c1d4 | 866 | php | PHP | app/Assist.php | Coolpix/lahmp-api | b0a826f1cba4d923a6c10ad5d6a0f47c01eb5d91 | [
"MIT"
] | null | null | null | app/Assist.php | Coolpix/lahmp-api | b0a826f1cba4d923a6c10ad5d6a0f47c01eb5d91 | [
"MIT"
] | null | null | null | app/Assist.php | Coolpix/lahmp-api | b0a826f1cba4d923a6c10ad5d6a0f47c01eb5d91 | [
"MIT"
] | null | null | null | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Assist extends Model
{
protected $fillable = [
];
/**
* The goal that belong to the assist.
*/
public function goal()
{
return $this->belongsTo('App\Goal');
}
/**
* The team that belong to the ass... | 16.339623 | 46 | 0.535797 |
7981edda939b4d947d5205df38efd5440894c86b | 372 | php | PHP | app/Client.php | arianpour/SimpleApp01 | 078fdd7f47334a43e06b4e8491b522d6532c1d46 | [
"MIT"
] | null | null | null | app/Client.php | arianpour/SimpleApp01 | 078fdd7f47334a43e06b4e8491b522d6532c1d46 | [
"MIT"
] | null | null | null | app/Client.php | arianpour/SimpleApp01 | 078fdd7f47334a43e06b4e8491b522d6532c1d46 | [
"MIT"
] | null | null | null | <?php namespace App;
use Illuminate\Database\Eloquent\Model;
class Client extends Model {
//
protected $fillable=['firstName','lastName','idNumber','nationality'
,'client_role'];
public function user()
{
return $this->belongsTo('App\User');
}
public function AddressBook(){
... | 16.173913 | 72 | 0.63172 |
20a5fa7d28093e90b6fde03c6bb8630dfaf71d8b | 12,946 | py | Python | pre_processing.py | meliude/ERAINTERIM | 9d9ab640dc4e04d04443095fcb10ff24f3fb7c6f | [
"MIT"
] | null | null | null | pre_processing.py | meliude/ERAINTERIM | 9d9ab640dc4e04d04443095fcb10ff24f3fb7c6f | [
"MIT"
] | null | null | null | pre_processing.py | meliude/ERAINTERIM | 9d9ab640dc4e04d04443095fcb10ff24f3fb7c6f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Mar 24 17:44:54 2019
@author: meliude
"""
import pygrib
import pandas as pd
years = ['1998.grib', '1999.grib', '2000.grib', '2001.grib', '2002.grib', '2003.grib', '2004.grib', '2005.grib', '2006.grib', '2007.grib', '2008.grib']
data = []
dp = [] #dewp... | 37.308357 | 177 | 0.584659 |
5e2d035f351c39b6e834035b85b739203fd8b944 | 1,827 | sql | SQL | db/companydata_seeds.sql | jonathanschimpf/Employee-Content-Management-System | 6896248f52d5516c0f5092debc49af594d3018f4 | [
"MIT"
] | null | null | null | db/companydata_seeds.sql | jonathanschimpf/Employee-Content-Management-System | 6896248f52d5516c0f5092debc49af594d3018f4 | [
"MIT"
] | null | null | null | db/companydata_seeds.sql | jonathanschimpf/Employee-Content-Management-System | 6896248f52d5516c0f5092debc49af594d3018f4 | [
"MIT"
] | null | null | null | USE companydata_db;
-- department_info (insert into)
INSERT INTO department_info (department_name)
VALUES
("Web Development"),
("Sales"),
("Accounting"),
("Legal"),
("Information Technology"),
("Human Resources");
SELECT * FROM department_info;
-- role_info (insert into)
INSERT INTO role_info (title, salary, dep... | 24.039474 | 70 | 0.650246 |
b090937b77e4b161e34dcdaa0913478afbf0ff58 | 3,571 | py | Python | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | src/regev/signatures.py | mmiguel6288code/regev | 52f9911b57c348ff5adb7901b9d8cb72ea45ba17 | [
"MIT"
] | null | null | null | from __future__ import print_function, unicode_literals, division
from states import InProgressState, DetectedState, StateData
class Signature():
construction_complete = False
def __init__(self):
self.construction_complete = True
def __setattr__(self,name,value):
if not self.construction_c... | 33.064815 | 101 | 0.653038 |
4459615ac22e8065f2b66d59b282e9c4800dc54a | 90 | py | Python | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | tests/test_api/test_authentication/test_oauth/protocols/__init__.py | maxzhenzhera/my_vocab_backend | 2e9f968374e0bc2fcc0ae40830ca40f3cf5754d1 | [
"MIT"
] | null | null | null | from .used_meta_user import HasUsedMetaUserFixture
__all__ = ['HasUsedMetaUserFixture']
| 18 | 50 | 0.833333 |
b4c1019def2ab365581f470bd31b150deef1f1b1 | 4,785 | rb | Ruby | spec/requests/api/v1/admin/articles/create_spec.rb | EevanR/the-new-herald-api | 738e5962a41051aa4e3075fa1e6df8014e6d6e54 | [
"MIT"
] | null | null | null | spec/requests/api/v1/admin/articles/create_spec.rb | EevanR/the-new-herald-api | 738e5962a41051aa4e3075fa1e6df8014e6d6e54 | [
"MIT"
] | 3 | 2021-05-19T22:07:18.000Z | 2021-09-28T01:29:32.000Z | spec/requests/api/v1/admin/articles/create_spec.rb | EevanR/the-new-herald-api | 738e5962a41051aa4e3075fa1e6df8014e6d6e54 | [
"MIT"
] | null | null | null | RSpec.describe 'POST /api/v1/admin/articles', type: :request do
let(:journalist) { create(:journalist)}
let(:journalist_credentials) { journalist.create_new_auth_token }
let!(:journalist_headers) { { HTTP_ACCEPT: 'application/json' }.merge!(journalist_credentials) }
let(:image) do
{
type: 'applicati... | 27.5 | 154 | 0.56489 |
09a26331b25205c797447a583f4c990ae9da3af2 | 519 | asm | Assembly | test/actual/commandc.asm | amisonnet8/hack | d834e1f799a7afcf68e4ed6dfe087f6768398988 | [
"MIT"
] | null | null | null | test/actual/commandc.asm | amisonnet8/hack | d834e1f799a7afcf68e4ed6dfe087f6768398988 | [
"MIT"
] | null | null | null | test/actual/commandc.asm | amisonnet8/hack | d834e1f799a7afcf68e4ed6dfe087f6768398988 | [
"MIT"
] | null | null | null | D+1
=D+1
D+1;
=D+1;
D=D+1
D=D+1;
D+1;JMP
=D+1;JMP
D=D+1;JMP
M=D+1
D=D+1
MD=D+1
A=D+1
AM=D+1
AD=D+1
AMD=D+1
AMD=0
AMD=1
AMD=-1
AMD=D
AMD=A
AMD=!D
AMD=!A
AMD=-D
AMD=-A
AMD=D+1
AMD=A+1
AMD=D-1
AMD=A-1
AMD=D+A
AMD=A+D
AMD=D-A
AMD=A-D
AMD=D&A
AMD=A&D
AMD=D|A
AMD=A|D
AMD=M
AMD=!M
AM... | 8.370968 | 12 | 0.529865 |
2cc4c8b4378b4d8b9f4621e2b5599b8ee8d786d2 | 447 | cpp | C++ | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | 1 | 2022-03-07T09:14:07.000Z | 2022-03-07T09:14:07.000Z | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | headers/10-throw1.cpp | cpp-tutor/learnmoderncpp-tutorial | 96ca86a2508c80093f51f8ac017f41a994d04d52 | [
"MIT"
] | null | null | null | // 10-throw1.cpp : simple exception demonstration, throw and catch
#include <iostream>
#include <exception>
using namespace std;
template <typename T>
void getInteger(T& value) {
cout << "Please enter an integer (0 to throw): ";
cin >> value;
if (!value) {
throw exception{};
}
}
int main() {
long long v{};
t... | 16.555556 | 66 | 0.612975 |
f643a2479b7f181bdcc0a0eb0d546f15490fe208 | 24,468 | cpp | C++ | src/platforms/windows/direct2d.cpp | LinkDoyle/YuKi | 22c7ac495e48985e0f21574b327ee687563a88e5 | [
"Apache-2.0"
] | null | null | null | src/platforms/windows/direct2d.cpp | LinkDoyle/YuKi | 22c7ac495e48985e0f21574b327ee687563a88e5 | [
"Apache-2.0"
] | null | null | null | src/platforms/windows/direct2d.cpp | LinkDoyle/YuKi | 22c7ac495e48985e0f21574b327ee687563a88e5 | [
"Apache-2.0"
] | null | null | null | #include "direct2d.h"
#include <algorithm>
#include <cassert>
#include <exception>
#include <string_view>
#include <utility>
#undef max
#undef min
#pragma comment(lib, "d2d1")
#pragma comment(lib, "d3d11")
#pragma comment(lib, "dwrite.lib")
#pragma comment(lib, "dxguid.lib")
namespace yuki {
namespace platforms {
na... | 33.42623 | 80 | 0.671489 |
cde51cba504415c37974fa3081b87f8418deba51 | 1,012 | cs | C# | Source/Treenumerable.Linq/VirtualForestExtensions/VirtualForestExtensions.FollowingSiblingsAndSelf.cs | jasonmcboyd/Treenumerable.Linq | fc6a157ed8a48d38a4b46c0eafd29b8244ac750b | [
"MIT"
] | 1 | 2016-06-12T20:05:58.000Z | 2016-06-12T20:05:58.000Z | Source/Treenumerable.Linq/VirtualForestExtensions/VirtualForestExtensions.FollowingSiblingsAndSelf.cs | jasonmcboyd/Treenumerable.Linq | fc6a157ed8a48d38a4b46c0eafd29b8244ac750b | [
"MIT"
] | null | null | null | Source/Treenumerable.Linq/VirtualForestExtensions/VirtualForestExtensions.FollowingSiblingsAndSelf.cs | jasonmcboyd/Treenumerable.Linq | fc6a157ed8a48d38a4b46c0eafd29b8244ac750b | [
"MIT"
] | null | null | null | using System.Collections.Generic;
using System.Linq;
namespace Treenumerable.Linq
{
public static partial class VirtualForestExtensions
{
public static IVirtualForest<T> FollowingSiblingsAndSelf<T>(this IVirtualForest<T> forest)
{
return
forest
.Sha... | 29.764706 | 98 | 0.513834 |
5f051e4e70cc70a351bcf8c015f5f2b4d7455f79 | 726 | dart | Dart | lib/src/widgets/button/circle_button.dart | najeebaslan/flutter_utils_project | 1752d7878d462a3d667984b4c9ad4de60f552187 | [
"MIT"
] | 2 | 2022-02-27T07:00:10.000Z | 2022-03-25T01:08:48.000Z | lib/src/widgets/button/circle_button.dart | najeebaslan/flutter_utils_project | 1752d7878d462a3d667984b4c9ad4de60f552187 | [
"MIT"
] | 1 | 2022-02-20T16:58:51.000Z | 2022-02-20T16:58:51.000Z | lib/src/widgets/button/circle_button.dart | najeebaslan/flutter_utils_project | 1752d7878d462a3d667984b4c9ad4de60f552187 | [
"MIT"
] | 1 | 2022-02-27T07:00:13.000Z | 2022-02-27T07:00:13.000Z | import 'package:flutter/material.dart';
class CircleButton extends StatelessWidget {
final Widget icon;
final double iconSize;
final Function() onPressed;
final Color? color;
const CircleButton({
Key? key,
required this.icon,
this.color,
required this.iconSize,
required this.onPressed,
... | 21.352941 | 44 | 0.632231 |
72e89ae878edb48f24111bb5e5c33335a32db9a8 | 221 | cs | C# | ViewModel/WaitingDialogViewModel.cs | qgy123/YueDroidBox | 547e680eb885bcf65875f80a64abf56e10da72dc | [
"MIT"
] | 1 | 2019-08-23T03:53:39.000Z | 2019-08-23T03:53:39.000Z | ViewModel/WaitingDialogViewModel.cs | qgy123/YueDroidBox | 547e680eb885bcf65875f80a64abf56e10da72dc | [
"MIT"
] | null | null | null | ViewModel/WaitingDialogViewModel.cs | qgy123/YueDroidBox | 547e680eb885bcf65875f80a64abf56e10da72dc | [
"MIT"
] | null | null | null | using Stylet;
namespace YueDroidBox.ViewModel
{
public class WaitingDialogViewModel : Screen
{
public WaitingDialogViewModel()
{
DisplayName = "Busy Waiting Dialog";
}
}
} | 18.416667 | 48 | 0.61086 |
e23bcc48afdc8eea9aaa30ecdad4c3732a1cd24c | 3,312 | py | Python | util/constants.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | null | null | null | util/constants.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | 7 | 2021-06-28T07:24:56.000Z | 2021-07-22T12:59:30.000Z | util/constants.py | yankai14/event-management-telegram-bot-client | 141a2c455c52b09fc4e7b047eb4efdb638d82060 | [
"MIT"
] | null | null | null | from telegram.ext import ConversationHandler
from enum import Enum
class State(Enum):
# State definition for top level conversation
FEATURE_SELECTION = 1
# State definitions for 2nd level conversation (features)
EVENT_LIST = 100
NEW_LAUNCH_INTELLIGENCE = 101
REGISTER = 102
LOGIN = 103
... | 22.228188 | 61 | 0.691727 |
cd3a5c5d14f76d00257487fa7cc5bf68b0237dca | 125 | cshtml | C# | samples/meetings-sidepanel/csharp/Side Panel/Views/Home/SidePanelParticalView.cshtml | paul-cheung/Microsoft-Teams-Samples | 40c609bd9ab6801e2332902f9b854dae74670a6b | [
"MIT"
] | 264 | 2021-01-21T12:57:01.000Z | 2022-03-29T09:15:17.000Z | samples/meetings-sidepanel/csharp/Side Panel/Views/Home/SidePanelParticalView.cshtml | paul-cheung/Microsoft-Teams-Samples | 40c609bd9ab6801e2332902f9b854dae74670a6b | [
"MIT"
] | 102 | 2021-01-20T20:26:20.000Z | 2022-03-31T14:17:15.000Z | samples/meetings-sidepanel/csharp/Side Panel/Views/Home/SidePanelParticalView.cshtml | paul-cheung/Microsoft-Teams-Samples | 40c609bd9ab6801e2332902f9b854dae74670a6b | [
"MIT"
] | 272 | 2021-01-20T07:12:59.000Z | 2022-03-31T09:45:06.000Z | @model List<SidePanel.Models.TaskInfo>
@foreach (var item in Model)
{
<li>@Html.DisplayFor(model => item.Title)</li>
}
| 17.857143 | 50 | 0.68 |
7b464977ab4ff5a641e0e059ad7f44d8ce4202cc | 159 | rb | Ruby | app/models/heb412_gen/campohc.rb | alejocruzrcc/heb412_gen | dc0e19cd43e760d303b2d36548077f8c0277320c | [
"0BSD"
] | 4 | 2020-08-20T14:50:34.000Z | 2020-09-17T19:50:23.000Z | app/models/heb412_gen/campohc.rb | alejocruzrcc/heb412_gen | dc0e19cd43e760d303b2d36548077f8c0277320c | [
"0BSD"
] | 16 | 2019-11-26T12:46:42.000Z | 2022-02-12T12:03:25.000Z | app/models/heb412_gen/campohc.rb | alejocruzrcc/heb412_gen | dc0e19cd43e760d303b2d36548077f8c0277320c | [
"0BSD"
] | 1 | 2019-07-08T20:16:23.000Z | 2019-07-08T20:16:23.000Z | require 'heb412_gen/concerns/models/campohc'
module Heb412Gen
class Campohc < ActiveRecord::Base
include Heb412Gen::Concerns::Models::Campohc
end
end
| 19.875 | 48 | 0.779874 |
8c0ad07ca80f9155fdf226306c4d7785164595f8 | 1,729 | cs | C# | Runtime/OpenXRManifest.cs | studentutu/OpenXRRuntimeSelector | 547f20aa72a0427002270579607c1bf3eb4acac0 | [
"MIT"
] | 16 | 2021-01-24T19:10:50.000Z | 2022-03-07T09:03:59.000Z | Runtime/OpenXRManifest.cs | studentutu/OpenXRRuntimeSelector | 547f20aa72a0427002270579607c1bf3eb4acac0 | [
"MIT"
] | 1 | 2021-09-08T07:17:15.000Z | 2021-09-22T11:58:33.000Z | Runtime/OpenXRManifest.cs | studentutu/OpenXRRuntimeSelector | 547f20aa72a0427002270579607c1bf3eb4acac0 | [
"MIT"
] | 3 | 2021-07-13T21:05:57.000Z | 2021-09-07T07:58:04.000Z | // Copyright 2021 KOGA Mitsuhiro Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
using System;
using UnityEngine;
namespace OpenXRRuntimeJsons
{
[Serializable]
public class ManifestRuntime : ISerializationCallbackReceiver
... | 28.344262 | 78 | 0.637941 |
6dd6494d71cc057ba14d8b2de6d06dfe8cae5b20 | 35,258 | c | C | src/storage/seg/hashtable.c | jidongfang/pelikan | e7b084a4536070f4cf27790be0a88fb289cfe9e8 | [
"Apache-2.0"
] | null | null | null | src/storage/seg/hashtable.c | jidongfang/pelikan | e7b084a4536070f4cf27790be0a88fb289cfe9e8 | [
"Apache-2.0"
] | null | null | null | src/storage/seg/hashtable.c | jidongfang/pelikan | e7b084a4536070f4cf27790be0a88fb289cfe9e8 | [
"Apache-2.0"
] | null | null | null |
#define XXH_INLINE_ALL
#include "hashtable.h"
#include "xxhash.h"
#include "item.h"
#include "seg.h"
#include <cc_mm.h>
#include <hash/cc_murmur3.h>
#include <stdlib.h>
#include <sys/mman.h>
#include <sysexits.h>
#include <x86intrin.h>
/* TODO(jason): use static allocated array
* TODO(jason): add bucket array shr... | 31.621525 | 95 | 0.545068 |
c8dba34d722d87837571134ff8bd0a5702a51f9b | 360 | sql | SQL | transform/snowflake-dbt/models/sources/gitlab_dotcom/gitlab_dotcom_project_import_data.sql | danieldiamond/gitlab-analytics | f99e02c95c3a964b01cb14617a43cd5f64ecd88d | [
"MIT"
] | 3 | 2021-07-22T06:44:31.000Z | 2022-01-29T05:35:12.000Z | transform/snowflake-dbt/models/sources/gitlab_dotcom/gitlab_dotcom_project_import_data.sql | danieldiamond/gitlab-analytics | f99e02c95c3a964b01cb14617a43cd5f64ecd88d | [
"MIT"
] | null | null | null | transform/snowflake-dbt/models/sources/gitlab_dotcom/gitlab_dotcom_project_import_data.sql | danieldiamond/gitlab-analytics | f99e02c95c3a964b01cb14617a43cd5f64ecd88d | [
"MIT"
] | null | null | null | WITH source AS (
SELECT *
FROM {{ source('gitlab_dotcom', 'project_import_data') }}
QUALIFY ROW_NUMBER() OVER (PARTITION BY id ORDER BY _uploaded_at DESC) = 1
), renamed AS (
SELECT
id::NUMBER AS project_import_relation_id,
project_id::NUMBER AS project_id
... | 18 | 76 | 0.622222 |
0468f6b72bee8af35383be244ef09fe79311ffa5 | 206 | kt | Kotlin | idea/testData/quickfix/createFromUsage/createVariable/property/extensionPropertyOnTypeFromAnotherPackage.after.kt | rohankumardubey/kotlin | 99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e | [
"Apache-2.0"
] | 1 | 2021-05-16T01:37:30.000Z | 2021-05-16T01:37:30.000Z | idea/testData/quickfix/createFromUsage/createVariable/property/extensionPropertyOnTypeFromAnotherPackage.after.kt | rohankumardubey/kotlin | 99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e | [
"Apache-2.0"
] | null | null | null | idea/testData/quickfix/createFromUsage/createVariable/property/extensionPropertyOnTypeFromAnotherPackage.after.kt | rohankumardubey/kotlin | 99c5ec7e051f1f3ee01459ff9c9483e5e7107b4e | [
"Apache-2.0"
] | 1 | 2020-09-27T13:23:44.000Z | 2020-09-27T13:23:44.000Z | // "Create extension property 'foo'" "true"
// ERROR: Unresolved reference: foo
import package1.A
val package2.A.foo: Any
class X {
init {
val y = package2.A()
val foo = y.foo
}
} | 15.846154 | 43 | 0.597087 |
3f41e94e92e59a3b33a1fd0d5dd8196c07699f03 | 1,760 | rb | Ruby | spec/models/user_spec.rb | TwilioDevEd/anonymous-communications-rails | b2113cbc4466bc790f2d65a7f42618b50ce1f93c | [
"MIT"
] | 21 | 2015-08-24T19:45:12.000Z | 2021-11-15T11:11:50.000Z | spec/models/user_spec.rb | TwilioDevEd/anonymous-communications-rails | b2113cbc4466bc790f2d65a7f42618b50ce1f93c | [
"MIT"
] | 167 | 2015-07-29T20:38:50.000Z | 2022-03-30T16:30:33.000Z | spec/models/user_spec.rb | TwilioDevEd/anonymous-communications-rails | b2113cbc4466bc790f2d65a7f42618b50ce1f93c | [
"MIT"
] | 13 | 2015-07-31T21:40:27.000Z | 2021-09-18T22:25:24.000Z | require "test_helper"
RSpec.describe User, type: :model do
fixtures :users
context "without email" do
it "is not valid" do
expect(User.new(user_params(email: nil)).valid?).to be_falsey
end
end
context "with invalid email" do
it "is not valid" do
expect(User.new(user_params(email: "blah... | 23.157895 | 74 | 0.660227 |
c8842951edbe6e653b3a9b340c334773b3ec3279 | 253 | css | CSS | src/css/templates/searchPage.css | tristanmcc/Instant-Box | cb592daf7c6fa361e42abd00da4279768998eef3 | [
"MIT"
] | null | null | null | src/css/templates/searchPage.css | tristanmcc/Instant-Box | cb592daf7c6fa361e42abd00da4279768998eef3 | [
"MIT"
] | 1 | 2020-11-06T21:04:11.000Z | 2020-11-08T21:40:26.000Z | src/css/templates/searchPage.css | tristanmcc/Instant-Box | cb592daf7c6fa361e42abd00da4279768998eef3 | [
"MIT"
] | null | null | null | .search-bar{
display: flex;
justify-content: center;
padding-bottom: 20px;
}
.search-title{
text-align: center;
padding-top: 20px;
}
.search-page{
display: flex;
flex-direction: column;
min-height: 100vh;
}
.site-content{
flex: 1;
} | 12.65 | 26 | 0.660079 |
b839d9cfbc690d1f364709c7be81aefdb8d06c80 | 1,326 | kt | Kotlin | app/src/main/java/chooongg/box/simple/App.kt | Chooongg/ChooonggBox | f2b4adac448036ef2e48ec2a3ac030c7f8d0fe2e | [
"Apache-2.0"
] | 4 | 2021-07-29T10:08:21.000Z | 2022-03-02T06:57:22.000Z | app/src/main/java/chooongg/box/simple/App.kt | Chooongg/ChooonggBox | f2b4adac448036ef2e48ec2a3ac030c7f8d0fe2e | [
"Apache-2.0"
] | null | null | null | app/src/main/java/chooongg/box/simple/App.kt | Chooongg/ChooonggBox | f2b4adac448036ef2e48ec2a3ac030c7f8d0fe2e | [
"Apache-2.0"
] | 1 | 2021-07-29T10:08:41.000Z | 2021-07-29T10:08:41.000Z | package chooongg.box.simple
import chooongg.box.BoxApplication
import com.umeng.analytics.MobclickAgent
import com.umeng.commonsdk.UMConfigure
import me.dkzwm.widget.srl.IRefreshViewCreator
import me.dkzwm.widget.srl.SmoothRefreshLayout
import me.dkzwm.widget.srl.extra.IRefreshView
import me.dkzwm.widget.srl.extra.foo... | 34 | 98 | 0.696078 |
385cfdd2a1d0b04d2a5e0207fcc658b90fdf944a | 464 | sql | SQL | openGaussBase/testcase/KEYWORDS/Escape/Opengauss_Function_Keyword_Escape_Case0027.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/Escape/Opengauss_Function_Keyword_Escape_Case0027.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/Escape/Opengauss_Function_Keyword_Escape_Case0027.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint:opengauss关键字escape(非保留),作为序列名
--关键字不带引号-成功
drop sequence if exists escape;
create sequence escape start 100 cache 50;
drop sequence escape;
--关键字带双引号-成功
drop sequence if exists "escape";
create sequence "escape" start 100 cache 50;
drop sequence "escape";
--关键字带单引号-合理报错
drop sequence if exists 'escap... | 22.095238 | 44 | 0.765086 |
46df43e6aa46a4cc7d73b6bb53f9e7ad2d82553e | 2,722 | py | Python | tests/schema/test_schema_object.py | GSE-CCL/getting-unstuck-web | f05f2892725a02abd24a0b6a0aab0813a38cb4dc | [
"MIT"
] | 2 | 2021-04-29T14:52:59.000Z | 2021-12-23T00:12:57.000Z | tests/schema/test_schema_object.py | GSE-CCL/getting-unstuck-web | f05f2892725a02abd24a0b6a0aab0813a38cb4dc | [
"MIT"
] | 137 | 2020-06-04T02:07:13.000Z | 2020-08-05T23:13:55.000Z | tests/schema/test_schema_object.py | GSE-CCL/getting-unstuck-web | f05f2892725a02abd24a0b6a0aab0813a38cb4dc | [
"MIT"
] | null | null | null | import mongoengine as mongo
import os
import pytest
from lib import schema
def test_schema_object_defaults(credentials):
schema.connect_db(credentials)
challenge = schema.Challenge(
title="Test challenge - DEFAULTS",
description="This is a challenge created by test_schema_object.py",
... | 32.795181 | 80 | 0.634827 |
e9bf01a8321db5da5b098c9e57263352eea51a99 | 1,531 | swift | Swift | testdemo/Component/GenericTableView/PagingListDataFetcher.swift | Changzw/every-case-demo | 0ba08146fee2904bd2151fcea8041f03b8b86e71 | [
"Apache-2.0"
] | null | null | null | testdemo/Component/GenericTableView/PagingListDataFetcher.swift | Changzw/every-case-demo | 0ba08146fee2904bd2151fcea8041f03b8b86e71 | [
"Apache-2.0"
] | null | null | null | testdemo/Component/GenericTableView/PagingListDataFetcher.swift | Changzw/every-case-demo | 0ba08146fee2904bd2151fcea8041f03b8b86e71 | [
"Apache-2.0"
] | null | null | null | //
// PagingListDataFetcher.swift
// testdemo
//
// Created by 常仲伟 on 2021/10/26.
// Copyright © 2021 常仲伟. All rights reserved.
//
import Foundation
import Action
import RxSwift
final class PagingListDataFetcher<Item> {
private(set) var pageInfo = PageInfo(pageSize: 20)
@BehaviorRelayed(wrappedValue: [])
pr... | 25.098361 | 69 | 0.663619 |
8d746d15e7d7570d780afa9100b792c2481f5927 | 3,022 | js | JavaScript | PACKAGES/holarchy/lib/filters/cp-method-act-filter.js | Encapsule/holistic | b27834717b7fcb05a2da1e4a5d2d7c2d0250c7db | [
"MIT"
] | 2 | 2020-02-13T18:39:12.000Z | 2020-09-11T07:48:38.000Z | PACKAGES/holarchy/lib/filters/cp-method-act-filter.js | Encapsule/holistic | b27834717b7fcb05a2da1e4a5d2d7c2d0250c7db | [
"MIT"
] | 23 | 2020-02-17T17:42:07.000Z | 2020-11-18T21:13:27.000Z | PACKAGES/holarchy/lib/filters/cp-method-act-filter.js | Encapsule/holistic | b27834717b7fcb05a2da1e4a5d2d7c2d0250c7db | [
"MIT"
] | null | null | null | "use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.pus... | 47.968254 | 534 | 0.704831 |
d39ff3080c6af05ee4665875ca2a9002f6ed09e5 | 623 | rb | Ruby | app/models/subscription.rb | kumabook/spread_beaver | 23b0c7126e59c3799b3e91fe5bffd480d8cb5b03 | [
"MIT"
] | 3 | 2016-10-25T18:42:41.000Z | 2017-05-04T06:21:27.000Z | app/models/subscription.rb | kumabook/spread_beaver | 23b0c7126e59c3799b3e91fe5bffd480d8cb5b03 | [
"MIT"
] | 128 | 2017-02-28T10:00:24.000Z | 2019-01-21T06:46:42.000Z | app/models/subscription.rb | kumabook/spread_beaver | 23b0c7126e59c3799b3e91fe5bffd480d8cb5b03 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
class Subscription < ApplicationRecord
belongs_to :user
belongs_to :feed
has_many :subscription_categories, dependent: :destroy
has_many :categories , through: :subscription_categories
after_save :delete_cache_of_subscriptions
after_destroy :delete_cache_of... | 27.086957 | 72 | 0.76244 |
95ae4e45880daff0e372916c467e85d045f1e53e | 3,800 | kt | Kotlin | app/src/main/java/com/hoc/weatherapp/koin/RetrofitModule.kt | huachuan/Weather_Rminder_kotlin | 608ff138b793cf73af2677756a623d72bc3de6ce | [
"MIT"
] | null | null | null | app/src/main/java/com/hoc/weatherapp/koin/RetrofitModule.kt | huachuan/Weather_Rminder_kotlin | 608ff138b793cf73af2677756a623d72bc3de6ce | [
"MIT"
] | null | null | null | app/src/main/java/com/hoc/weatherapp/koin/RetrofitModule.kt | huachuan/Weather_Rminder_kotlin | 608ff138b793cf73af2677756a623d72bc3de6ce | [
"MIT"
] | null | null | null | package com.hoc.weatherapp.koin
import com.hoc.weatherapp.BuildConfig
import com.hoc.weatherapp.data.models.TemperatureUnit
import com.hoc.weatherapp.data.remote.BASE_URL_TIMEZONE_DB
import com.hoc.weatherapp.data.remote.OPEN_WEATHER_MAP_APP_ID
import com.hoc.weatherapp.data.remote.OPEN_WEATHER_MAP_BASE_URL
import com... | 33.333333 | 92 | 0.707368 |
dbb02655578e53245cf4e6bb072df78061b3bc8a | 542 | swift | Swift | Sources/QiNiuSDK/Common/Constants.swift | Adrift001/QiNiuSDK | 1ccab5c1f3ac0643cff3ae7b804fedb8dc528b9c | [
"MIT"
] | 3 | 2020-06-11T03:13:49.000Z | 2020-06-20T09:12:54.000Z | Sources/QiNiuSDK/Common/Constants.swift | Adrift001/QiNiuSDK | 1ccab5c1f3ac0643cff3ae7b804fedb8dc528b9c | [
"MIT"
] | null | null | null | Sources/QiNiuSDK/Common/Constants.swift | Adrift001/QiNiuSDK | 1ccab5c1f3ac0643cff3ae7b804fedb8dc528b9c | [
"MIT"
] | null | null | null | //
// Constants.swift
// QiNiuSDK
//
// Created by 荆学涛 on 2019/5/8.
//
public final class Constants {
public static let VERSION = "1.0.0"
public static let BLOCK_SIZE = 4194304
public static let CONNECT_TIMEOUT = 10
public static let WRITE_TIMEOUT = 0
public static let READ_TIMEOUT = 30
publ... | 28.526316 | 59 | 0.734317 |
203fd207eec62ac290079341e6dbf27a252d1a4e | 1,528 | ps1 | PowerShell | Resources/Functions/Edit.ps1 | haruki-taka8/Rows | 2066c87475f21d7934f2ed13e2497fb66912381a | [
"MIT"
] | 2 | 2021-10-19T13:57:28.000Z | 2022-01-04T11:16:24.000Z | Resources/Functions/Edit.ps1 | haruki-taka8/Rows | 2066c87475f21d7934f2ed13e2497fb66912381a | [
"MIT"
] | null | null | null | Resources/Functions/Edit.ps1 | haruki-taka8/Rows | 2066c87475f21d7934f2ed13e2497fb66912381a | [
"MIT"
] | 1 | 2021-12-03T02:27:43.000Z | 2021-12-03T02:27:43.000Z | # Wrapper to reinitialize grid
function Update-Grid {
$rows.Rows.Title = 'Rows - Unsaved changes'
$rows.Grid.ItemsSource = $csv
$rows.Grid.Items.Refresh()
}
# Do not allow Undo, Redo and Commit buttons if
# there are no undo steps or ReadWrite is off
function Get-CanEdit ($Stack, $ReadWrite) {
retur... | 29.960784 | 71 | 0.522906 |
0d6a3f5e18120a4b3e0ac590d99d267b1e7f9087 | 3,459 | c | C | bootloader/hal/TARGET_Freescale/TARGET_MK20DX/C90TFS/drvsrc/source/FlashGetSecurityState.c | bygreencn/CMSIS-DAP | a554e66afc29532c4e669735b1556625606add9f | [
"Apache-2.0"
] | 1 | 2019-05-07T15:01:19.000Z | 2019-05-07T15:01:19.000Z | interface/flash_algo_mdk/MKXXX/C90TFS/drvsrc/source/FlashGetSecurityState.c | bygreencn/CMSIS-DAP | a554e66afc29532c4e669735b1556625606add9f | [
"Apache-2.0"
] | null | null | null | interface/flash_algo_mdk/MKXXX/C90TFS/drvsrc/source/FlashGetSecurityState.c | bygreencn/CMSIS-DAP | a554e66afc29532c4e669735b1556625606add9f | [
"Apache-2.0"
] | null | null | null | /************************************************************************
* (c) Copyright Freescale Semiconductor, Inc 2011, All Rights Reserved *
*************************************************************************
*************************************************************************
* ... | 40.694118 | 80 | 0.415149 |
490aa41a9f4da0e31ef78980cfe9ef53478a1fc1 | 1,525 | py | Python | _GTW/_OMP/_PAP/Legal_Entity.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 6 | 2016-12-10T17:51:10.000Z | 2021-10-11T07:51:48.000Z | _GTW/_OMP/_PAP/Legal_Entity.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | null | null | null | _GTW/_OMP/_PAP/Legal_Entity.py | Tapyr/tapyr | 4235fba6dce169fe747cce4d17d88dcf4a3f9f1d | [
"BSD-3-Clause"
] | 3 | 2020-03-29T07:37:03.000Z | 2021-01-21T16:08:40.000Z | # -*- coding: utf-8 -*-
# Copyright (C) 2013 Mag. Christian Tanzer All rights reserved
# Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at
# #*** <License> ************************************************************#
# This module is part of the package GTW.OMP.PAP.
#
# This module is licensed under the ter... | 28.240741 | 78 | 0.600656 |
3402d63b8320a4daca6f4e804c980e5b192ce1e6 | 1,154 | lua | Lua | flos/num/test.lua | siesta-project/siesta-sfl | bc657c7a4e1a48d513120c38c663edea44c6ea3a | [
"MIT"
] | 3 | 2017-02-02T08:05:55.000Z | 2018-04-01T05:00:59.000Z | flos/num/test.lua | siesta-project/siesta-sfl | bc657c7a4e1a48d513120c38c663edea44c6ea3a | [
"MIT"
] | 11 | 2017-03-14T14:14:02.000Z | 2021-08-01T19:28:01.000Z | flos/num/test.lua | siesta-project/siesta-sfl | bc657c7a4e1a48d513120c38c663edea44c6ea3a | [
"MIT"
] | 3 | 2017-05-26T15:30:44.000Z | 2019-06-15T11:58:33.000Z |
local array = require "flos.num"
v1 = array.Array( 6 )
print(#v1, v1:size())
for i = 1, #v1 do
v1[i] = i
end
v2 = array.Array.empty(6, 6)
k = 0
for i = 1, #v2 do
for j = 1, #v2[i] do
v2[i][j] = i * j + k
end
k = k + 1
end
print(#v2, v2:size())
print('Array1D dot Array1D')
print(v1:dot(v1))
print(... | 17.753846 | 37 | 0.652513 |
cce1c3bd621eb91f804a47398410bc5669364974 | 89 | rb | Ruby | app/models/pathogen.rb | chanzuckerberg/idseq-web | fb6c841d07858b6b60e9e037adbc02d5cd3110d1 | [
"MIT"
] | 66 | 2017-09-29T20:15:12.000Z | 2021-12-08T22:28:02.000Z | app/models/pathogen.rb | chanzuckerberg/idseq-web | fb6c841d07858b6b60e9e037adbc02d5cd3110d1 | [
"MIT"
] | 1,405 | 2017-08-30T04:35:08.000Z | 2020-11-04T17:04:09.000Z | app/models/pathogen.rb | chanzuckerberg/czid-web | f87c3a53d0d12f977db589feaec71600d615b3dc | [
"MIT"
] | 23 | 2017-11-08T21:45:35.000Z | 2021-06-11T08:22:58.000Z | class Pathogen < ApplicationRecord
has_and_belongs_to_many :pathogen_list_versions
end
| 22.25 | 49 | 0.876404 |
1cf17c03683241b7d5b26275c156ed12954e6f09 | 2,037 | swift | Swift | JChat/JCTool.swift | MrLinTianbao/FuXin | 8922e9817be91b3d2ce22eef077fe2c664ca7a0e | [
"MIT"
] | 1 | 2019-11-20T11:09:13.000Z | 2019-11-20T11:09:13.000Z | JChat/JCTool.swift | MrLinTianbao/FXRedMakoda | 00df0c3d43cbebeae74237b6b3a18cdb7b6e6384 | [
"MIT"
] | null | null | null | JChat/JCTool.swift | MrLinTianbao/FXRedMakoda | 00df0c3d43cbebeae74237b6b3a18cdb7b6e6384 | [
"MIT"
] | null | null | null | //
// JCTool.swift
// JChat
//
// Created by DUONIU_MAC on 2019/6/10.
// Copyright © 2019年 HXHG. All rights reserved.
//
import UIKit
class JCTool: NSObject {
//MARK: base64字符串转图片
static func base64ToImage(base : String) -> UIImage {
if base == "" {
return UIImage()
}... | 26.802632 | 128 | 0.566028 |
0df33303049c9af1e3f47dcf8289c2ea5d06c5f4 | 478 | cs | C# | Scripts/Math.cs | evilantAU/godotfps | d8ede18fba9d3005eef0b62e990f00b25676c59e | [
"MIT"
] | null | null | null | Scripts/Math.cs | evilantAU/godotfps | d8ede18fba9d3005eef0b62e990f00b25676c59e | [
"MIT"
] | null | null | null | Scripts/Math.cs | evilantAU/godotfps | d8ede18fba9d3005eef0b62e990f00b25676c59e | [
"MIT"
] | null | null | null | using Godot;
using System;
using static Godot.Mathf;
public static class FMath
{
public static Vector3 Flattened(this Vector3 Self)
{
return new Vector3(Self.x, 0, Self.z);
}
public static Vector3 ClampVec3(Vector3 Vec, float Min, float Max)
{
return Vec.Normalized() * Mathf.Clamp(Vec.Length(), Min, M... | 15.933333 | 70 | 0.650628 |
e4c1995eec2ad5f024ef2391ea486032572a9577 | 775 | sql | SQL | conf/evolutions/default/1.sql | serdar-/navprot_web | c5c3b4a3da1edd620170df8370caba5e6b8adfc0 | [
"Apache-2.0"
] | null | null | null | conf/evolutions/default/1.sql | serdar-/navprot_web | c5c3b4a3da1edd620170df8370caba5e6b8adfc0 | [
"Apache-2.0"
] | null | null | null | conf/evolutions/default/1.sql | serdar-/navprot_web | c5c3b4a3da1edd620170df8370caba5e6b8adfc0 | [
"Apache-2.0"
] | null | null | null | # --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table task (
id varchar(255) primary key,
email varchar(255),
initial_pdb varchar(255),
initial_chain varchar(255),
... | 23.484848 | 78 | 0.51871 |
143b243c5c1b36d1a0538f193e479d7157947347 | 740 | tsx | TypeScript | src/App.tsx | NastyZ98/aws-cognito-amplify-video | d3622eb2ac7763bc2c410eab11267695c497c40e | [
"MIT"
] | null | null | null | src/App.tsx | NastyZ98/aws-cognito-amplify-video | d3622eb2ac7763bc2c410eab11267695c497c40e | [
"MIT"
] | null | null | null | src/App.tsx | NastyZ98/aws-cognito-amplify-video | d3622eb2ac7763bc2c410eab11267695c497c40e | [
"MIT"
] | null | null | null | import React from "react";
import styled from "styled-components";
import { Container, Logo } from "shared/components/Auth/common";
const AppContainer = styled(Container)`
flex: 1;
justify-content: center;
align-items: center;
`;
const App = () => (
<AppContainer>
<Logo
style={{ width: "20%" }}
... | 29.6 | 248 | 0.733784 |
0d2b36ae50eb20adca31cfddc7cd6e13b223ccd6 | 348 | c | C | lib/my/my_compute_square_root.c | iElden/CPE_matchstick | a0744b6e104625a526a330239b54e627287f7fa1 | [
"MIT"
] | null | null | null | lib/my/my_compute_square_root.c | iElden/CPE_matchstick | a0744b6e104625a526a330239b54e627287f7fa1 | [
"MIT"
] | null | null | null | lib/my/my_compute_square_root.c | iElden/CPE_matchstick | a0744b6e104625a526a330239b54e627287f7fa1 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2017
** my_compute_square_root
** File description:
** display the square root of a number
*/
int square_root(int nb)
{
int i;
i = nb / 2;
while (i > 1) {
if (i * i == nb) {
return (i);
}
i --;
}
return (0);
}
int my_compute_square_root(int nb)
{
int result;
result = square_ro... | 12 | 38 | 0.600575 |
b2cbb7e4e5b9fb8dd33a2d6467ee4a5df0a1aaef | 4,208 | sql | SQL | src/test/resources/data.sql | CyberCastle/specification-with-projection | 743222c71772db10ffd19b213fecaf80437779b1 | [
"MIT"
] | 133 | 2016-09-29T14:40:13.000Z | 2022-03-26T20:33:48.000Z | src/test/resources/data.sql | Vinh-Nguyen-E/specification-with-projection | e5118cb85d07541a49117628ef20a01057f5ccfb | [
"MIT"
] | 18 | 2017-07-14T18:55:39.000Z | 2022-01-02T16:01:38.000Z | src/test/resources/data.sql | Vinh-Nguyen-E/specification-with-projection | e5118cb85d07541a49117628ef20a01057f5ccfb | [
"MIT"
] | 46 | 2017-05-02T22:11:46.000Z | 2022-03-26T20:33:52.000Z | insert into form_type values('01', 'ก.01');
insert into form_type values('04', 'ก.04');
insert into form_type values('05', 'ก.05');
insert into form_type values('06', 'ก.06');
insert into form_type values('07', 'ก.07');
insert into form_type values('08', 'ก.08');
insert into document (id, description, category, type, ... | 135.741935 | 176 | 0.720532 |
936d11eb46bee9bf131ce01174acea2a0944cd1c | 308 | dart | Dart | lib/common/abstract_base.dart | comecsoftdev/public_flutter_flashsale_repo | 2d062963452ba9a2575865b3c17639a6df6c3829 | [
"MIT"
] | 4 | 2022-02-09T02:43:39.000Z | 2022-02-14T02:58:26.000Z | lib/common/abstract_base.dart | comecsoftdev/public_flutter_flashsale_repo | 2d062963452ba9a2575865b3c17639a6df6c3829 | [
"MIT"
] | null | null | null | lib/common/abstract_base.dart | comecsoftdev/public_flutter_flashsale_repo | 2d062963452ba9a2575865b3c17639a6df6c3829 | [
"MIT"
] | null | null | null | abstract class RepositoryResponse{
final int? statusCode;
final String? msg;
RepositoryResponse({this.statusCode, this.msg});
}
abstract class BlocEventBase {
const BlocEventBase();
List<Object?> get props;
}
abstract class BlocStateBase {
const BlocStateBase();
List<Object?> get props;
} | 17.111111 | 50 | 0.733766 |
606c17c40e7057c80518670d755dad20d3910ad3 | 24 | sql | SQL | migrations/000002_add_article_table.down.sql | polaris1119/testpkg | 2894f502043722255fc69c403d999961e0f136e6 | [
"Apache-2.0"
] | 3 | 2020-06-19T10:03:38.000Z | 2020-08-27T03:33:35.000Z | migrations/000002_add_article_table.down.sql | polaris1119/testpkg | 2894f502043722255fc69c403d999961e0f136e6 | [
"Apache-2.0"
] | null | null | null | migrations/000002_add_article_table.down.sql | polaris1119/testpkg | 2894f502043722255fc69c403d999961e0f136e6 | [
"Apache-2.0"
] | null | null | null | DROP TABLE
article;
| 8 | 12 | 0.666667 |
0a3ff63b180a8e24b8b2fb9a7d27e04ff99ea4f0 | 70,989 | h | C | wisdom/sentinel/x64/hasp_api.h | chenghuaiyu/caffe | b16e30408a8c26c1bb72b807ae04f81c7389869c | [
"BSD-2-Clause"
] | 1 | 2020-01-18T16:44:03.000Z | 2020-01-18T16:44:03.000Z | wisdom/sentinel/x64/hasp_api.h | chenghuaiyu/caffe | b16e30408a8c26c1bb72b807ae04f81c7389869c | [
"BSD-2-Clause"
] | null | null | null | wisdom/sentinel/x64/hasp_api.h | chenghuaiyu/caffe | b16e30408a8c26c1bb72b807ae04f81c7389869c | [
"BSD-2-Clause"
] | null | null | null | /**
* \mainpage Sentinel Licensing API
* \file hasp_api.h Sentinel Licensing API declarations
*
* Copyright (C) 2013, SafeNet, Inc. All rights reserved.
*/
#ifndef __HASP_API_H__
#define __HASP_API_H__
#if !defined(WITH_AKSTYPES) && !defined(WITH_OEFTYPES)
# if defined(_MSC_VER) || defined(__WATCOMC__) || defi... | 38.919408 | 95 | 0.600544 |
42175054db6a46708db0b415386677cd7ad1348c | 5,032 | cs | C# | Assets/Scripts/GameController.cs | didii/PacMan | 81abb9a6d2db37399992718cc3fe997bfde87005 | [
"Unlicense"
] | 2 | 2017-05-28T13:01:23.000Z | 2020-11-06T21:22:54.000Z | Assets/Scripts/GameController.cs | didii/PacMan | 81abb9a6d2db37399992718cc3fe997bfde87005 | [
"Unlicense"
] | null | null | null | Assets/Scripts/GameController.cs | didii/PacMan | 81abb9a6d2db37399992718cc3fe997bfde87005 | [
"Unlicense"
] | null | null | null | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class GameController : MonoBehaviour {
#region Fields
/// <summary>
/// Counts the number of fixed frames that have passed. Used to ensure collisions aren't triggered twice
/// </summary>
p... | 33.771812 | 119 | 0.564587 |
a98932eb4afa929afda4bb1f3e06edc4b19eee30 | 3,324 | go | Go | main.go | urvil38/git-push | 14c126ad9bde7386137d31587c193ebb25a8a8d9 | [
"MIT"
] | 4 | 2018-01-26T06:10:15.000Z | 2022-01-21T13:27:16.000Z | main.go | urvil38/git-push | 14c126ad9bde7386137d31587c193ebb25a8a8d9 | [
"MIT"
] | null | null | null | main.go | urvil38/git-push | 14c126ad9bde7386137d31587c193ebb25a8a8d9 | [
"MIT"
] | null | null | null | package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"os"
"strings"
"github.com/fatih/color"
"github.com/urvil38/git-push/questions"
"github.com/urvil38/git-push/types"
"github.com/urvil38/git-push/utils"
"gopkg.in/AlecAivazis/survey.v1"
)
func init() {
red = color.New(color.FgRed, color.Bold).SprintFunc... | 24.262774 | 147 | 0.600782 |
65ccbe388ec786cd6b7a6cebf05d60c5f2a263b9 | 5,917 | lua | Lua | engine/entity_ai/drivers.lua | AntumMT/mtmod-unimobiles | e5f998fad0411f823ac7f5bc5b8f488282162656 | [
"MIT"
] | 1 | 2017-05-29T14:56:51.000Z | 2017-05-29T14:56:51.000Z | engine/entity_ai/drivers.lua | AntumMT/mtmod-unimobiles | e5f998fad0411f823ac7f5bc5b8f488282162656 | [
"MIT"
] | 1 | 2017-05-29T05:47:19.000Z | 2017-05-30T06:03:06.000Z | engine/entity_ai/drivers.lua | AntumMT/mtmod-unimobiles | e5f998fad0411f823ac7f5bc5b8f488282162656 | [
"MIT"
] | null | null | null |
--[[
Copyright (c) 2016 - Auke Kok <sofar@foo-projects.org>
* entity_ai is licensed as follows:
- All code is: GNU Affero General Public License, Version 3.0 (AGPL-3.0)
- All artwork is: CC-BY-ND-4.0
A Contributor License Agreement exists, please read:
- https://github.com/sofar/entity_ai/readme.md.
--]]
entity_a... | 26.066079 | 108 | 0.699003 |
7adc6eb1325ae242d8c6eb19265712d1d181c342 | 8,977 | cs | C# | PARAM/PARAM_C1G2TargetTag.cs | mksmbrtsh/llrp | 586982af0c82d06d04dd210e8187d01e9ea08fdd | [
"Apache-2.0"
] | null | null | null | PARAM/PARAM_C1G2TargetTag.cs | mksmbrtsh/llrp | 586982af0c82d06d04dd210e8187d01e9ea08fdd | [
"Apache-2.0"
] | null | null | null | PARAM/PARAM_C1G2TargetTag.cs | mksmbrtsh/llrp | 586982af0c82d06d04dd210e8187d01e9ea08fdd | [
"Apache-2.0"
] | null | null | null | // Decompiled with JetBrains decompiler
// Type: Org.LLRP.LTK.LLRPV1.PARAM_C1G2TargetTag
// Assembly: LLRP, Version=1.0.0.6, Culture=neutral, PublicKeyToken=null
// MVID: B7459025-14F1-49D6-9002-DE41A125DA72
// Assembly location: C:\gosniias\NARA\multi_llrp_uhf_rdr\multi_llrp_uhf_rdr\bin\Debug\LLRP.dll
using Org.LLRP... | 35.482213 | 166 | 0.611786 |
386714ac73234549656a600966d382604acd80e4 | 442 | php | PHP | _src/Section01/functional_02.php | paullewallencom/php-978-1-7883-9198-6 | 35f2f7903bad0e0dc240d85ca0a3e8c789316d37 | [
"Apache-2.0"
] | 10 | 2017-06-08T12:14:36.000Z | 2021-11-08T13:11:12.000Z | _src/Section01/functional_02.php | paullewallencom/php-978-1-7883-9198-6 | 35f2f7903bad0e0dc240d85ca0a3e8c789316d37 | [
"Apache-2.0"
] | null | null | null | _src/Section01/functional_02.php | paullewallencom/php-978-1-7883-9198-6 | 35f2f7903bad0e0dc240d85ca0a3e8c789316d37 | [
"Apache-2.0"
] | 5 | 2017-08-01T14:01:40.000Z | 2020-07-02T05:13:32.000Z | <?php
include __DIR__ . '/../vendor/autoload.php';
use function Functional\map;
use function Functional\filter;
use function Functional\reduce_left;
$input = ['apple', 'banana', 'orange', 'raspberry'];
$sum = reduce_left(filter(map($input, function($fruit) {
return strlen($fruit);
}), function($length) {
re... | 23.263158 | 56 | 0.653846 |
6b70eef1906bb506d1d181e59ff5a903ea4281a0 | 745 | js | JavaScript | eq-author-api/tests/utils/contextBuilder/importing/importQuestions.js | ONSdigital/eq-author-app | 9d6b9d85a5b7629d9eaa05f2a0857a5969a6a079 | [
"MIT"
] | 9 | 2018-11-19T16:57:19.000Z | 2021-07-06T08:31:20.000Z | eq-author-api/tests/utils/contextBuilder/importing/importQuestions.js | ONSdigital/eq-author-app | 9d6b9d85a5b7629d9eaa05f2a0857a5969a6a079 | [
"MIT"
] | 1,686 | 2018-11-14T12:54:21.000Z | 2022-03-28T22:20:32.000Z | eq-author-api/tests/utils/contextBuilder/importing/importQuestions.js | ONSdigital/eq-author-app | 9d6b9d85a5b7629d9eaa05f2a0857a5969a6a079 | [
"MIT"
] | 10 | 2019-03-15T15:33:24.000Z | 2021-09-09T07:55:06.000Z | const executeQuery = require("../../executeQuery");
const { filter } = require("graphql-anywhere");
const gql = require("graphql-tag");
const mutation = `
mutation ImportQuestions($input: ImportQuestionsInput!) {
importQuestions(input: $input) {
id
}
}
`;
const importQuestions = async (ctx, input) =... | 17.738095 | 59 | 0.531544 |
e6b25f4bbce28c939b751a13975b8e0282844829 | 806 | asm | Assembly | oeis/180/A180762.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 11 | 2021-08-22T19:44:55.000Z | 2022-03-20T16:47:57.000Z | oeis/180/A180762.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 9 | 2021-08-29T13:15:54.000Z | 2022-03-09T19:52:31.000Z | oeis/180/A180762.asm | neoneye/loda-programs | 84790877f8e6c2e821b183d2e334d612045d29c0 | [
"Apache-2.0"
] | 3 | 2021-08-22T20:56:47.000Z | 2021-09-29T06:26:12.000Z | ; A180762: Half the number of nX2 binary arrays with each element equal to at least one neighbor
; Submitted by Christian Krause
; 1,3,11,34,111,361,1172,3809,12377,40218,130687,424661,1379916,4483973,14570461,47346034,153848731,499924281,1624480652,5278674169,17152805697,55737242698,181115572487,588526611821,191238979... | 35.043478 | 483 | 0.782878 |
b21827ee07ff74699583da4532113d260fec6f07 | 1,315 | rb | Ruby | lib/hcloud/concerns/creatable.rb | floriandejonckheere/hcloud | 021505304dbcc32288622b70e83657ce5d55ae86 | [
"MIT"
] | null | null | null | lib/hcloud/concerns/creatable.rb | floriandejonckheere/hcloud | 021505304dbcc32288622b70e83657ce5d55ae86 | [
"MIT"
] | 9 | 2022-01-06T17:35:11.000Z | 2022-02-03T18:52:23.000Z | lib/hcloud/concerns/creatable.rb | floriandejonckheere/hcloud | 021505304dbcc32288622b70e83657ce5d55ae86 | [
"MIT"
] | null | null | null | # frozen_string_literal: true
module HCloud
module Creatable
extend ActiveSupport::Concern
included do
attribute :created, :datetime
def create
assign_attributes client
.post("/#{resource_name.pluralize}", creatable_params)
.fetch(resource_name.to_sym)
end
... | 27.978723 | 138 | 0.647148 |
5c812e801666c3c9dc67b375c7282bdf158c26e4 | 516 | lua | Lua | rbxmk/testdata/args.lua | Anaminus/rbxmk | 25317d8f688a802cc20b87c12b154e4b9bfc83ea | [
"MIT"
] | 60 | 2017-06-05T21:11:10.000Z | 2022-03-30T17:19:39.000Z | rbxmk/testdata/args.lua | Anaminus/rbxmk | 25317d8f688a802cc20b87c12b154e4b9bfc83ea | [
"MIT"
] | 61 | 2017-02-14T17:19:59.000Z | 2022-03-09T03:14:34.000Z | rbxmk/testdata/args.lua | Anaminus/rbxmk | 25317d8f688a802cc20b87c12b154e4b9bfc83ea | [
"MIT"
] | 8 | 2017-03-22T03:38:03.000Z | 2022-03-13T04:20:08.000Z | -- Test arguments
T.Pass(select(1, ...) == true , "arg 1 is true")
T.Pass(select(2, ...) == false , "arg 2 is false")
T.Pass(select(3, ...) == nil , "arg 3 is nil")
T.Pass(select(4, ...) == 42 , "arg 4 is 42")
T.Pass(select(5, ...) == 3.141592653589793, "arg 5 is pi")
T... | 51.6 | 71 | 0.482558 |
bb7e9cf7baaf15750de3ba4992204349742aa442 | 441 | cs | C# | exercises/ex030/ex030/Program.cs | gpe0/csharp-exercises | e089dc900c545b56c53c3b7675e1bcff32c5022f | [
"MIT"
] | 5 | 2020-04-28T13:26:19.000Z | 2021-12-18T20:31:49.000Z | exercises/ex030/ex030/Program.cs | gpe0/csharp-exercises | e089dc900c545b56c53c3b7675e1bcff32c5022f | [
"MIT"
] | null | null | null | exercises/ex030/ex030/Program.cs | gpe0/csharp-exercises | e089dc900c545b56c53c3b7675e1bcff32c5022f | [
"MIT"
] | null | null | null | using System;
namespace ex030
{
class Program
{
static void Main(string[] args)
{
//Jagged arrays | Array of arrays
int[][] a = new int[][]
{
new int[] {4, 3, 2},
new int[] {2, 9, 6},
new int[] {10, 459, 67} /... | 22.05 | 73 | 0.408163 |
e40e6b1407601ae34bfc0103ddceab29a83f7bbf | 147 | cs | C# | src/Core/EasyOC.Core/Models/PostInputModel.cs | giannik/EasyOC | b3031456c84ec89b962875669abf36dae87be84a | [
"Apache-2.0"
] | 19 | 2021-12-23T02:29:08.000Z | 2022-03-31T10:26:39.000Z | src/Core/EasyOC.Core/Models/PostInputModel.cs | giannik/EasyOC | b3031456c84ec89b962875669abf36dae87be84a | [
"Apache-2.0"
] | 7 | 2022-01-20T06:41:56.000Z | 2022-02-13T08:41:09.000Z | src/Core/EasyOC.Core/Models/PostInputModel.cs | giannik/EasyOC | b3031456c84ec89b962875669abf36dae87be84a | [
"Apache-2.0"
] | 5 | 2022-01-21T16:32:59.000Z | 2022-03-28T08:30:53.000Z | namespace EasyOC.Core.DtoModels
{
public class PostInputModel
{
public string __RequestVerificationToken { get; set; }
}
}
| 13.363636 | 62 | 0.659864 |
a9e1bfaf6d1923f3f9a6b986e54fe06427b1d8c8 | 245 | php | PHP | src/Contracts/Service/Reader.php | lynxcat/laravel-route-annotation | 8de001e683512c09c533637f18b0aff3cb1e7b30 | [
"MIT"
] | null | null | null | src/Contracts/Service/Reader.php | lynxcat/laravel-route-annotation | 8de001e683512c09c533637f18b0aff3cb1e7b30 | [
"MIT"
] | null | null | null | src/Contracts/Service/Reader.php | lynxcat/laravel-route-annotation | 8de001e683512c09c533637f18b0aff3cb1e7b30 | [
"MIT"
] | null | null | null | <?php
namespace Lynxcat\Annotation\Contracts\Service;
use Lynxcat\Annotation\Contracts\Model\AnnotationsClass;
interface Reader
{
public function parse(\ReflectionClass $ref): AnnotationsClass;
public function getType(): string;
}
| 16.333333 | 67 | 0.77551 |
ac213cc302e48478ee59cadc5b397e3c0d065949 | 8,343 | lua | Lua | Tools/BlockTracking.lua | yating1901/Sychronize-construction-of-Builderbots | 20af410f435095d33ecd6f64668e521d88440528 | [
"MIT"
] | 1 | 2020-11-08T15:23:55.000Z | 2020-11-08T15:23:55.000Z | Tools/BlockTracking.lua | yating1901/Sychronize-construction-of-Builderbots | 20af410f435095d33ecd6f64668e521d88440528 | [
"MIT"
] | null | null | null | Tools/BlockTracking.lua | yating1901/Sychronize-construction-of-Builderbots | 20af410f435095d33ecd6f64668e521d88440528 | [
"MIT"
] | null | null | null | ----------------------------------------------------
-- Block tracking of BuilderBot
--
-- Author
-- Weixu Zhu, Tutti mi chiamano Harry
-- zhuweixu_harry@126.com
--
----------------------------------------------------
local BLOCKLENGTH = 0.055
local Hungarian = require("Hungarian")
local function FindBlock... | 32.088462 | 101 | 0.583843 |
1a794bddbaea8af7101dc296fabe0629d83b26b5 | 583 | sql | SQL | test/JDBC/input/BABEL-2218.sql | faizol/babelfish_extensions | 3dab47c2a27a784906426c9401fc99c9519906d1 | [
"PostgreSQL",
"Apache-2.0",
"BSD-3-Clause"
] | 115 | 2021-10-29T18:17:24.000Z | 2022-03-28T01:05:20.000Z | test/JDBC/input/BABEL-2218.sql | faizol/babelfish_extensions | 3dab47c2a27a784906426c9401fc99c9519906d1 | [
"PostgreSQL",
"Apache-2.0",
"BSD-3-Clause"
] | 81 | 2021-10-29T19:22:51.000Z | 2022-03-31T19:31:12.000Z | test/JDBC/input/BABEL-2218.sql | faizol/babelfish_extensions | 3dab47c2a27a784906426c9401fc99c9519906d1 | [
"PostgreSQL",
"Apache-2.0",
"BSD-3-Clause"
] | 53 | 2021-10-30T01:26:50.000Z | 2022-03-22T00:12:47.000Z | use master;
go
CREATE TABLE t2218(c1 INT)
INSERT INTO t2218 VALUES (2218);
GO
-- should throw an error
CREATE FUNCTION f2218()
RETURNS INT AS
BEGIN
DECLARE @return INT
SET @return = 0
SELECT * from t2218
RETURN @return
END
GO
-- if select statement has a destination, no error
CREATE FUNCTION f2218()
RETURNS ... | 14.219512 | 50 | 0.713551 |
df5e5e67e8b79c97cb7eb4089d9d1f607d9504ac | 418 | cs | C# | ManageCourse.Core/Model/Args/UpdateGradeNormalArgs.cs | hdh-se/classroom-api | ef3873cd19c0909954daf6f15c46f6298048894c | [
"MIT"
] | null | null | null | ManageCourse.Core/Model/Args/UpdateGradeNormalArgs.cs | hdh-se/classroom-api | ef3873cd19c0909954daf6f15c46f6298048894c | [
"MIT"
] | null | null | null | ManageCourse.Core/Model/Args/UpdateGradeNormalArgs.cs | hdh-se/classroom-api | ef3873cd19c0909954daf6f15c46f6298048894c | [
"MIT"
] | 1 | 2022-03-01T11:18:54.000Z | 2022-03-01T11:18:54.000Z | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ManageCourse.Core.Model.Args
{
public class UpdateGradeNormalArgs
{
public List<UpdateGradeSpecificArgsBase> Grades { get; set; }
public int CourseId { get; set; }
... | 24.588235 | 69 | 0.691388 |
05ff80d548041d33b579375f2e8a0e5f04805256 | 566 | py | Python | code/python/get_all_file_name.py | Zousiyu/code_snippet | 2191b57c26082d7e592481c6953c712d60261782 | [
"MIT"
] | 1 | 2018-05-17T08:32:51.000Z | 2018-05-17T08:32:51.000Z | code/python/get_all_file_name.py | Zousiyu/code_snippet | 2191b57c26082d7e592481c6953c712d60261782 | [
"MIT"
] | null | null | null | code/python/get_all_file_name.py | Zousiyu/code_snippet | 2191b57c26082d7e592481c6953c712d60261782 | [
"MIT"
] | null | null | null | from os import listdir, walk
from os.path import isfile, isdir, join
def get_all_file_name(path):
file_list = [join(path, f) for f in listdir(path) if isfile(join(path, f))]
sub_dir = [join(path, d) for d in listdir(path) if isdir(join(path, d))]
for i in range(len(sub_dir)):
next_dir ... | 25.727273 | 80 | 0.641343 |
d30312c16f8e5421a457899030662ab5ea8f0e60 | 404 | cs | C# | Kore.Web.Common/Constants.cs | widecommerce/kore-cms | b41bc24454024c545d5e5ef8bfa61948631eb475 | [
"MIT"
] | 2 | 2018-06-17T07:36:40.000Z | 2018-10-09T18:43:39.000Z | Kore.Web.Common/Constants.cs | widecommerce/kore-cms | b41bc24454024c545d5e5ef8bfa61948631eb475 | [
"MIT"
] | 2 | 2021-05-16T03:53:07.000Z | 2021-11-11T00:25:06.000Z | Kore.Web.Common/Constants.cs | widecommerce/kore-cms | b41bc24454024c545d5e5ef8bfa61948631eb475 | [
"MIT"
] | 4 | 2018-08-03T16:49:14.000Z | 2021-06-05T10:41:22.000Z | namespace Kore.Web.Common
{
public static class Constants
{
public static class Areas
{
public const string Regions = "Admin/Regions";
}
public static class Tables
{
public const string Regions = "Kore_Common_Regions";
pub... | 25.25 | 79 | 0.566832 |
c6a27067612f7bdb1989b48c74eab95e2f247135 | 147 | rs | Rust | src/bin/rust-example.rs | zhangchunzhong/rust-project-template | 45a38e19143b7a8dc7553fadfd3ac2293a0bae3e | [
"Apache-2.0"
] | null | null | null | src/bin/rust-example.rs | zhangchunzhong/rust-project-template | 45a38e19143b7a8dc7553fadfd3ac2293a0bae3e | [
"Apache-2.0"
] | 1 | 2021-01-07T00:26:42.000Z | 2021-01-07T00:26:42.000Z | src/bin/rust-example.rs | zhangchunzhong/rust-project-template | 45a38e19143b7a8dc7553fadfd3ac2293a0bae3e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The RustExample Authors.
//
// Code is licensed under Apache License, Version 2.0.
fn main() {
println!("Hello, world!");
}
| 18.375 | 54 | 0.666667 |
39452c15347a2d485a18a9835291cb7210b710c4 | 2,740 | py | Python | pytube/downloader_gui.py | jjisnow/pytube | 0fa30f6d92dd80f8b7873628174012258070c510 | [
"Unlicense"
] | null | null | null | pytube/downloader_gui.py | jjisnow/pytube | 0fa30f6d92dd80f8b7873628174012258070c510 | [
"Unlicense"
] | null | null | null | pytube/downloader_gui.py | jjisnow/pytube | 0fa30f6d92dd80f8b7873628174012258070c510 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
from PyQt5 import QtGui
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import *
from pytube import downloader
class MagicWizard(QWizard):
def __init__(self, parent=None):
super(MagicWizard, self).__init__(parent)
self.addPage(url_page(self))
self.addPage(... | 28.247423 | 83 | 0.640511 |
e00f0d21a1b1cd1fd438604295d296f7fa24abbf | 135 | h | C | Specs/Support/SpecHelper.h | yodle/BloodMagic | 4e1643307b3f6f9f9543144e8fbe835413966c57 | [
"MIT"
] | 165 | 2015-01-08T01:33:35.000Z | 2021-11-14T20:19:43.000Z | Specs/Support/SpecHelper.h | yodle/BloodMagic | 4e1643307b3f6f9f9543144e8fbe835413966c57 | [
"MIT"
] | 16 | 2015-07-07T14:18:32.000Z | 2020-02-16T21:48:58.000Z | Specs/Support/SpecHelper.h | yodle/BloodMagic | 4e1643307b3f6f9f9543144e8fbe835413966c57 | [
"MIT"
] | 24 | 2015-01-17T17:18:20.000Z | 2020-09-09T09:12:56.000Z | //
// Created by Alex Denisov on 12.07.13.
// Copyright (c) 2013 railsware. All rights reserved.
//
#import <Cedar-iOS/SpecHelper.h>
| 16.875 | 53 | 0.688889 |
0a60a4e505300a82df3e2e46d3d7658b49f2b72e | 1,030 | cs | C# | CSharp OOP Advanced/Enumerations and Attributes/5. Card CompareTo()/Startup.cs | alexandrateneva/CSharp-Fundamentals-SoftUni | f56bbae2e05cba3adcf56df7b5b53239eabdf073 | [
"MIT"
] | null | null | null | CSharp OOP Advanced/Enumerations and Attributes/5. Card CompareTo()/Startup.cs | alexandrateneva/CSharp-Fundamentals-SoftUni | f56bbae2e05cba3adcf56df7b5b53239eabdf073 | [
"MIT"
] | null | null | null | CSharp OOP Advanced/Enumerations and Attributes/5. Card CompareTo()/Startup.cs | alexandrateneva/CSharp-Fundamentals-SoftUni | f56bbae2e05cba3adcf56df7b5b53239eabdf073 | [
"MIT"
] | null | null | null | namespace _5.Card_CompareTo__
{
using System;
using _5.Card_CompareTo__.Enums;
using _5.Card_CompareTo__.Models;
public class Startup
{
public static void Main()
{
var rankOfFirstCard = (Rank)Enum.Parse(typeof(Rank), Console.ReadLine());
var suitOfFirstCard ... | 31.212121 | 86 | 0.574757 |
5dae827d0c916f3116817b0609f462cbb578064b | 41,315 | cpp | C++ | c/common/tests/crtabstractions_unittests/crtabstractions_unittests.cpp | josesimoes/azure-iot-sdks | 75107fa7b0e614a83dfcd81aff4727541d81fa28 | [
"MIT"
] | 4 | 2017-08-15T10:02:59.000Z | 2021-12-20T10:48:25.000Z | c/common/tests/crtabstractions_unittests/crtabstractions_unittests.cpp | josesimoes/azure-iot-sdks | 75107fa7b0e614a83dfcd81aff4727541d81fa28 | [
"MIT"
] | null | null | null | c/common/tests/crtabstractions_unittests/crtabstractions_unittests.cpp | josesimoes/azure-iot-sdks | 75107fa7b0e614a83dfcd81aff4727541d81fa28 | [
"MIT"
] | 9 | 2016-10-08T12:33:33.000Z | 2021-12-23T09:46:31.000Z | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include <cstdlib>
#ifdef _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include "testrunnerswitcher.h"
#include "crt_abstractions.h"
#include "errno.h"
#include <climi... | 36.789849 | 352 | 0.600557 |
7f6e382acb08e9f591eb53116543221d27413df0 | 616 | php | PHP | modules/user/models/CommentForm.php | Pavel-Tsymbal/socialnetwork | 82a427f676c778282e9048d18cddb0c92a8b8006 | [
"BSD-3-Clause"
] | null | null | null | modules/user/models/CommentForm.php | Pavel-Tsymbal/socialnetwork | 82a427f676c778282e9048d18cddb0c92a8b8006 | [
"BSD-3-Clause"
] | null | null | null | modules/user/models/CommentForm.php | Pavel-Tsymbal/socialnetwork | 82a427f676c778282e9048d18cddb0c92a8b8006 | [
"BSD-3-Clause"
] | null | null | null | <?php
/**
* Created by PhpStorm.
* User: pavel
* Date: 19.09.18
* Time: 10:16
*/
namespace app\modules\user\models;
use yii\base\Model;
class CommentForm extends Model
{
public $parent_id;
public $author_id;
public $author_name;
public $author_avatar;
public $message;
/**
* @retur... | 17.6 | 42 | 0.540584 |
1bff5898e6ac4c81c427d8cfbca2109862a601b3 | 2,359 | sql | SQL | data/queries/women_in_voting_center.sql | kuralabs/mivotico-tse2sql | 51c5d7695a930d6a38e603cb6a12f09f5e1e563b | [
"Apache-2.0"
] | null | null | null | data/queries/women_in_voting_center.sql | kuralabs/mivotico-tse2sql | 51c5d7695a930d6a38e603cb6a12f09f5e1e563b | [
"Apache-2.0"
] | 8 | 2016-02-13T03:57:13.000Z | 2016-02-18T11:49:33.000Z | data/queries/women_in_voting_center.sql | kuralabs/mivotico-tse2sql | 51c5d7695a930d6a38e603cb6a12f09f5e1e563b | [
"Apache-2.0"
] | null | null | null | # To find the voting centers of a district but looking by a person id
SELECT id_voting_center, voting_center.name, voting_center.district_id_district
FROM voting_center
JOIN voter ON voter.district_id_district = voting_center.district_id_district
WHERE id_voter = <ID_PERSON>;
/*
+------------------+------------------... | 46.254902 | 109 | 0.543027 |
40f0208e5857b75590e7d40d695974348866b1e6 | 298 | rb | Ruby | test/integration/user_flows_test.rb | nTraum/tf2movies | 3dae7f051036d611e6b59b8704ec43d5a58d66be | [
"MIT"
] | 3 | 2017-03-25T17:31:41.000Z | 2021-05-28T13:03:30.000Z | test/integration/user_flows_test.rb | nTraum/tf2movies | 3dae7f051036d611e6b59b8704ec43d5a58d66be | [
"MIT"
] | 1 | 2015-03-01T16:37:36.000Z | 2015-05-18T20:06:17.000Z | test/integration/user_flows_test.rb | nTraum/tf2movies | 3dae7f051036d611e6b59b8704ec43d5a58d66be | [
"MIT"
] | null | null | null | require 'test_helper'
# To be handled correctly this spec must end with "Integration Test"
describe 'UserFlows Integration Test' do
include SharedIntegrationSteps
it 'must be able to login for the first time' do
login
end
it 'must be able to logout' do
login
logout
end
end
| 19.866667 | 68 | 0.731544 |
efb02f49771502bcb4801243419e05e9489889b5 | 454 | lua | Lua | lua/plugins/dashboard.lua | coolabhays/neovim-lua | 42c4254278e31fd966449bb8709d47cb296c0b71 | [
"MIT"
] | null | null | null | lua/plugins/dashboard.lua | coolabhays/neovim-lua | 42c4254278e31fd966449bb8709d47cb296c0b71 | [
"MIT"
] | null | null | null | lua/plugins/dashboard.lua | coolabhays/neovim-lua | 42c4254278e31fd966449bb8709d47cb296c0b71 | [
"MIT"
] | null | null | null | vim.g.dashboard_default_executive ='telescope' -- vim-clap, fzf, telescope
vim.g.dashboard_custom_section = {
a = {description = {' Find File '}, command = 'Telescope find_files'},
d = {description = {' Search Text '}, command = 'Telescope live_grep'},
b = {description = {' Recent Files ... | 50.444444 | 90 | 0.601322 |
0a537c304d3f58112f4b7f82a8ee4c832e1176fa | 1,413 | cs | C# | Plugins/Aspose.Cells Vs OpenXML Spreadsheets/OpenXML Missing Features/Set External Links in Formula/Program.cs | sergioruizdeveloper/Aspose.Cells-for-.NET | e0a946a5a1fd60164268f41546e424270ac7cbd9 | [
"MIT"
] | 157 | 2016-05-08T05:12:41.000Z | 2022-03-29T11:37:26.000Z | Plugins/Aspose.Cells Vs OpenXML Spreadsheets/OpenXML Missing Features/Set External Links in Formula/Program.cs | sergioruizdeveloper/Aspose.Cells-for-.NET | e0a946a5a1fd60164268f41546e424270ac7cbd9 | [
"MIT"
] | 13 | 2016-06-24T12:04:29.000Z | 2022-03-15T02:37:15.000Z | Plugins/Aspose.Cells Vs OpenXML Spreadsheets/OpenXML Missing Features/Set External Links in Formula/Program.cs | sergioruizdeveloper/Aspose.Cells-for-.NET | e0a946a5a1fd60164268f41546e424270ac7cbd9 | [
"MIT"
] | 71 | 2016-04-09T07:15:53.000Z | 2022-03-29T07:38:07.000Z | using Aspose.Cells;
/*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Cells for .NET API reference when the project is build. Please check https://docs.nuget.org/consume/nuget-faq for more information. If you do not wish to use NuGet, you can manually download Aspose.Cells for .NET API... | 39.25 | 518 | 0.636235 |
25cb282c5eba8fe1f7a7c3703958032819e036fe | 140 | cs | C# | Working with Abstraction/Exercise/P03_JediGalaxy/Player.cs | MiroslavPeychev/C-Sharp-OOP | 00b0ec1c064d78f3f3839a75c329d0a528a4b013 | [
"MIT"
] | 1 | 2021-12-12T20:11:58.000Z | 2021-12-12T20:11:58.000Z | Working with Abstraction/Exercise/P03_JediGalaxy/Player.cs | MiroslavPeychev/C-Sharp-OOP | 00b0ec1c064d78f3f3839a75c329d0a528a4b013 | [
"MIT"
] | null | null | null | Working with Abstraction/Exercise/P03_JediGalaxy/Player.cs | MiroslavPeychev/C-Sharp-OOP | 00b0ec1c064d78f3f3839a75c329d0a528a4b013 | [
"MIT"
] | null | null | null | namespace P03_JediGalaxy
{
public class Player
{
public int Row { get; set; }
public int Col { get; set; }
}
} | 15.555556 | 36 | 0.542857 |
2585c30791643a9d85047ee741242e601914e418 | 344 | cs | C# | Command.cs | 1kevgriff/ProjectDover | 36e615255cb93f32caccd038ca6470b2de7fe34b | [
"MIT"
] | null | null | null | Command.cs | 1kevgriff/ProjectDover | 36e615255cb93f32caccd038ca6470b2de7fe34b | [
"MIT"
] | 1 | 2018-10-04T12:13:40.000Z | 2018-10-04T12:13:40.000Z | Command.cs | 1kevgriff/ProjectDover | 36e615255cb93f32caccd038ca6470b2de7fe34b | [
"MIT"
] | 2 | 2018-09-11T20:12:26.000Z | 2018-10-04T11:16:39.000Z | namespace ProjectDover
{
public enum Command
{
UNKNOWN = -1,
COMMAND_HANDLED,
COMMAND_QUIT,
COMMAND_NORTH,
COMMAND_SOUTH,
COMMAND_EAST,
COMMAND_WEST,
COMMAND_LOOK,
COMMAND_TAKE,
COMMAND_INVENTORY,
COMMAND_SUMMARY,
CO... | 17.2 | 26 | 0.555233 |
45c6b2d8d58dc82c9c66e5024f542ea6b7c92d12 | 1,293 | py | Python | app/handlers/callback/select_all_product_for_recipe.py | Katel212/MyPersonalKitchenBot | 03de0beeaf2665e8b3ddd1709da3d4edcd422b80 | [
"MIT"
] | null | null | null | app/handlers/callback/select_all_product_for_recipe.py | Katel212/MyPersonalKitchenBot | 03de0beeaf2665e8b3ddd1709da3d4edcd422b80 | [
"MIT"
] | 5 | 2020-12-22T17:53:05.000Z | 2021-04-07T20:00:47.000Z | app/handlers/callback/select_all_product_for_recipe.py | Katel212/MyPersonalKitchenBot | 03de0beeaf2665e8b3ddd1709da3d4edcd422b80 | [
"MIT"
] | null | null | null | import re
from aiogram import types
from aiogram.dispatcher import filters, FSMContext
from app.models import Product, ShoppingList, ShoppingListToProduct
from app.misc import dp
from app.states.state_ingredients import IngredientsForRecipe
@dp.callback_query_handler(filters.Regexp(r'select_all_product_for_recipe')... | 46.178571 | 116 | 0.730858 |