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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9aa3d0a1573bb832caf37ac045772bfc5b97c28 | 1,195 | go | Go | learngopkg/grpc/hello-tls/server/main.go | 1000Delta/gopractice | 8772031b5d5430250d8fe4f8adb7f5d62decc7fe | [
"MIT"
] | null | null | null | learngopkg/grpc/hello-tls/server/main.go | 1000Delta/gopractice | 8772031b5d5430250d8fe4f8adb7f5d62decc7fe | [
"MIT"
] | null | null | null | learngopkg/grpc/hello-tls/server/main.go | 1000Delta/gopractice | 8772031b5d5430250d8fe4f8adb7f5d62decc7fe | [
"MIT"
] | null | null | null | package main
import (
"context"
"fmt"
"net"
"os"
pb "github.com/1000Delta/gopractice/learngopkg/grpc/proto/hello"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/grpclog"
)
type helloService struct{}
func (h helloService) SayHello(ctx context.Context, in *pb.HelloReque... | 21.339286 | 101 | 0.681172 |
e98765a73a1fcb9b784c525a00720bd9a0136686 | 1,097 | rb | Ruby | spec/helpers.rb | ged/thingfish-datastore-filesystem | f4da4d85945e099cb687696f0e3aa899b951fc7e | [
"BSD-3-Clause"
] | 1 | 2021-11-28T23:35:28.000Z | 2021-11-28T23:35:28.000Z | spec/helpers.rb | ged/thingfish-datastore-filesystem | f4da4d85945e099cb687696f0e3aa899b951fc7e | [
"BSD-3-Clause"
] | null | null | null | spec/helpers.rb | ged/thingfish-datastore-filesystem | f4da4d85945e099cb687696f0e3aa899b951fc7e | [
"BSD-3-Clause"
] | 1 | 2021-11-28T23:35:16.000Z | 2021-11-28T23:35:16.000Z | #!/usr/bin/ruby
# coding: utf-8
BEGIN {
require 'pathname'
basedir = Pathname( __FILE__ ).dirname.parent
thingfishdir = basedir.parent + 'Thingfish'
thingfishlib = thingfishdir + 'lib'
strelkadir = basedir.parent + 'Strelka'
strelkalib = strelkadir + 'lib'
$LOAD_PATH.unshift( thingfishlib.to_s ) if thingfish... | 21.509804 | 78 | 0.752051 |
4f0d84739852bfb49329c4ee76c07b91366e9827 | 2,619 | kt | Kotlin | lib/src/test/kotlin/com/jmeranda/glazy/lib/Objects.test.kt | joshmeranda/glazy | 03178825c8615b7c01bf62dbbb1b5bdf07041c0a | [
"MIT"
] | null | null | null | lib/src/test/kotlin/com/jmeranda/glazy/lib/Objects.test.kt | joshmeranda/glazy | 03178825c8615b7c01bf62dbbb1b5bdf07041c0a | [
"MIT"
] | 43 | 2019-09-03T16:46:25.000Z | 2021-02-28T01:42:30.000Z | lib/src/test/kotlin/com/jmeranda/glazy/lib/Objects.test.kt | joshmeranda/glazy | 03178825c8615b7c01bf62dbbb1b5bdf07041c0a | [
"MIT"
] | 1 | 2020-12-12T18:34:16.000Z | 2020-12-12T18:34:16.000Z | package com.jmeranda.glazy.lib
import com.jmeranda.glazy.lib.service.IssueService
import com.jmeranda.glazy.lib.service.LabelService
import com.jmeranda.glazy.lib.service.PullRequestService
import com.jmeranda.glazy.lib.service.RepoService
import kotlin.test.assertNotNull
import kotlin.test.assertNull
import com.fas... | 26.19 | 73 | 0.717068 |
0bcfcebcfdddec9e554a87b1b910805ed4a89987 | 2,262 | js | JavaScript | src/views/reports/App/AppReports.js | manhpham1711/WebAdmin | bd4566cc9142dc5b03629611c7c73eb4722aafb5 | [
"MIT"
] | null | null | null | src/views/reports/App/AppReports.js | manhpham1711/WebAdmin | bd4566cc9142dc5b03629611c7c73eb4722aafb5 | [
"MIT"
] | null | null | null | src/views/reports/App/AppReports.js | manhpham1711/WebAdmin | bd4566cc9142dc5b03629611c7c73eb4722aafb5 | [
"MIT"
] | null | null | null | import React, { useState, useEffect } from "react";
import { useHistory, useLocation } from "react-router-dom";
import {
CCard,
CCardBody,
CCol,
CDataTable,
CRow,
CPagination,
CHeaderNav,
CHeaderNavItem,
CHeaderNavLink,
} from "@coreui/react";
import axios from "axios";
//set color for status
var us... | 26.928571 | 75 | 0.525641 |
85c94539aa28d323699a60fc779ffc41e341cef7 | 9,072 | c | C | src/lstmlib.c | az13js/C-LSTM | dbfc73dc1fc1556f9e5b879f27d16bc4573491e0 | [
"MIT"
] | 2 | 2019-08-20T05:27:15.000Z | 2019-09-23T08:09:55.000Z | src/lstmlib.c | az13js/C-LSTM | dbfc73dc1fc1556f9e5b879f27d16bc4573491e0 | [
"MIT"
] | 1 | 2019-05-12T10:50:09.000Z | 2019-05-12T10:50:09.000Z | src/lstmlib.c | az13js/C-LSTM | dbfc73dc1fc1556f9e5b879f27d16bc4573491e0 | [
"MIT"
] | 3 | 2020-02-18T09:30:46.000Z | 2021-04-01T02:22:41.000Z | #include "lstmlib.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
struct lstmlib* lstmlib_create(int length)
{
struct lstmlib* unit;
if (length < 1) {
return NULL;
}
unit = (struct lstmlib*)malloc(sizeof (struct lstmlib));
if (!unit) {
return NULL;
}
(*unit).erro... | 34.892308 | 104 | 0.472332 |
c63134b5e17b6f695e5d1c5dde21b9ba698f2670 | 1,041 | rb | Ruby | message_retweet.rb | tsutsui/message_retweet | 1b83c401248bfce671c6b163cabd095103267ef3 | [
"MIT"
] | 1 | 2019-12-15T11:45:51.000Z | 2019-12-15T11:45:51.000Z | message_retweet.rb | tsutsui/message_retweet | 1b83c401248bfce671c6b163cabd095103267ef3 | [
"MIT"
] | null | null | null | message_retweet.rb | tsutsui/message_retweet | 1b83c401248bfce671c6b163cabd095103267ef3 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
Plugin.create :message_retweet do
error_message_get_retweeted_users = _('リツイートしたユーザの一覧が取得できませんでした')
message_fragment :retweeted, "ReTweet" do
message = model
set_icon Skin[:retweet]
user_list = Gtk::UserList.new
begin
user_list.add_user message.retweeted_by
rescue ... | 26.025 | 74 | 0.647454 |
0e6108323d94646cf6d11dfdd458a1c2546543f5 | 816 | html | HTML | node_modules/myui-bootstrap-kr/src/html/badge.html | Juyeon-0919/publishing-template | c246d0e364486d87230245f670689bd27b45c007 | [
"MIT"
] | null | null | null | node_modules/myui-bootstrap-kr/src/html/badge.html | Juyeon-0919/publishing-template | c246d0e364486d87230245f670689bd27b45c007 | [
"MIT"
] | null | null | null | node_modules/myui-bootstrap-kr/src/html/badge.html | Juyeon-0919/publishing-template | c246d0e364486d87230245f670689bd27b45c007 | [
"MIT"
] | null | null | null | <!doctype html>
<html lang="ko">
@@include('../html/include/head.html')
<body>
<div class="m-3">
<h1>Example heading <span class="badge badge-primary">New</span></h1>
<h2>Example heading <span class="badge badge-primary">New</span></h2>
<h3>Example heading <span class="badge badge-primary">New</span></h3>
<h4>E... | 34 | 71 | 0.666667 |
5b23399e7728b9764de34112fa170d90e8e5679f | 282 | c | C | Assignment 4/4_18.c | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | Assignment 4/4_18.c | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | Assignment 4/4_18.c | faisalsanto007/Codes | eabf2a96509fe1244a54de73cc1b7d43af1f8569 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<math.h>
int main()
{
int bin, dec, p, q, c=-1;
scanf("%d", &bin);
dec=0;
while(bin)
{
p=bin/10;
q=bin%10;
++c;
dec += q * pow(2,c);
bin=p;
}
printf("%d\n", dec);
return 0;
}
| 10.071429 | 29 | 0.390071 |
653ce627115bca9b0a99c6fcb8f87bd198d5309b | 1,223 | py | Python | Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null | Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null | Basic Data Structures/string/leet_551_StudentAttendanceRecordI.py | rush2catch/algorithms-leetcode | 38a5e6aa33d48fa14fe09c50c28a2eaabd736e55 | [
"MIT"
] | null | null | null | # Problem: Student Attendance Record I
# Difficulty: Easy
# Category: String
# Leetcode 551: https://leetcode.com/problems/student-attendance-record-i/#/description
# Description:
"""
You are given a string representing an attendance record for a student.
The record only contains the following three characters:
'A' : ... | 23.519231 | 92 | 0.681112 |
f071c7253e9179d235465d8e820fdd9baf511b76 | 7,529 | js | JavaScript | test/unit/methods/create.js | titanium-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | test/unit/methods/create.js | titanium-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | test/unit/methods/create.js | titanium-forks/appcelerator.appc.mysql | c7353b192df4402e201fc4211bb2926ccfb2e0c1 | [
"Apache-2.0"
] | null | null | null | const test = require('tap').test
const server = require('../../server')
const sinon = require('sinon')
const createMethod = require('../../../lib/methods/create')['create']
const lodash = require('lodash')
var ARROW
var CONNECTOR
test('### Start Arrow ###', function (t) {
server()
.then((inst) => {
... | 28.518939 | 121 | 0.659849 |
407c556343f9c1d1dc0d2f51db3c1d6ff5f785e4 | 1,107 | py | Python | generator/parameter.py | PhilippMatthes/java-generator | 45ea5d535eba08386ee68292ed9a98ca5ae1e269 | [
"Apache-2.0"
] | null | null | null | generator/parameter.py | PhilippMatthes/java-generator | 45ea5d535eba08386ee68292ed9a98ca5ae1e269 | [
"Apache-2.0"
] | 1 | 2019-01-22T13:58:55.000Z | 2019-01-22T14:08:35.000Z | generator/parameter.py | PhilippMatthes/java-generator | 45ea5d535eba08386ee68292ed9a98ca5ae1e269 | [
"Apache-2.0"
] | null | null | null | import random
import string
from generator.type import RandomRandomizedType
class Parameter:
def __init__(self, datatype, name, final=False):
self.datatype = datatype
self.name = name
self.final = final
def __str__(self):
return "{final}{datatype} {name}".format(
... | 25.159091 | 68 | 0.622403 |
cb758438b3210c3a2e1a341bedd3f41f7ac06a2c | 163 | html | HTML | src/DemoSite/App_Plugins/UmbracoForms/Backoffice/Common/FieldTypes/fileupload.html | chrden/umbraco-forms-mailchimp-workflow | d16efac057a3cc6edaa6020db16548ae3f58411c | [
"MIT"
] | null | null | null | src/DemoSite/App_Plugins/UmbracoForms/Backoffice/Common/FieldTypes/fileupload.html | chrden/umbraco-forms-mailchimp-workflow | d16efac057a3cc6edaa6020db16548ae3f58411c | [
"MIT"
] | null | null | null | src/DemoSite/App_Plugins/UmbracoForms/Backoffice/Common/FieldTypes/fileupload.html | chrden/umbraco-forms-mailchimp-workflow | d16efac057a3cc6edaa6020db16548ae3f58411c | [
"MIT"
] | null | null | null | <input tabindex="-1" type="file" multiple ng-show="field.allowMultipleFileUploads"/>
<input tabindex="-1" type="file" ng-show="!field.allowMultipleFileUploads" />
| 54.333333 | 84 | 0.748466 |
2f282c6d5c90168385bdef1953a0cc3b7e40cd5d | 5,114 | php | PHP | app/message.php | ydzsobj/yedda | a87b0edec8044d54da98380691e19a23d384baae | [
"MIT"
] | 2 | 2019-04-22T07:38:30.000Z | 2019-08-13T06:37:42.000Z | app/message.php | ydzsobj/yedda | a87b0edec8044d54da98380691e19a23d384baae | [
"MIT"
] | null | null | null | app/message.php | ydzsobj/yedda | a87b0edec8044d54da98380691e19a23d384baae | [
"MIT"
] | 1 | 2021-06-13T11:10:19.000Z | 2021-06-13T11:10:19.000Z | <?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class message extends Model
{
protected $table = 'message';
protected $primaryKey ='message_id';
public $timestamps=false;
/**
* 创建新消息
* @param $request
* @param $phone //结束短息号码
* @param $goods_id //商品ID
* @pa... | 32.993548 | 121 | 0.380915 |
6213ab579beae7d766b2df41ee0871a4a77d4cfd | 1,243 | swift | Swift | Sources/iaAPI/Service/ArchiveService+MetadataAsync.swift | hunterleebrown/iaAPI | 7c32f85da694812bef8faa53141ec17cd8e6a825 | [
"CC0-1.0"
] | 1 | 2022-03-21T16:02:03.000Z | 2022-03-21T16:02:03.000Z | Sources/iaAPI/Service/ArchiveService+MetadataAsync.swift | hunterleebrown/iaAPI | 7c32f85da694812bef8faa53141ec17cd8e6a825 | [
"CC0-1.0"
] | null | null | null | Sources/iaAPI/Service/ArchiveService+MetadataAsync.swift | hunterleebrown/iaAPI | 7c32f85da694812bef8faa53141ec17cd8e6a825 | [
"CC0-1.0"
] | null | null | null | //
// ArchiveService+MetadataAsync.swift
//
//
// Created by Hunter Lee Brown on 4/8/22.
//
import Foundation
extension ArchiveService {
public func getArchiveAsync(with identifier: String) async throws -> Archive {
guard !identifier.isEmpty, let url = URL(string: "https://archive.org/metadata/\(ide... | 29.595238 | 109 | 0.61786 |
cb6e126b36a0fb1ab1f5dda0befcefe801ee74ef | 1,229 | swift | Swift | LabelSwitch/Classes/LabelSwtichSetting.swift | Tobaloidee/LabelSwitch | 801b09403cefebdf7dec9051461745b9c96dcd07 | [
"MIT"
] | 1 | 2018-03-13T04:10:07.000Z | 2018-03-13T04:10:07.000Z | LabelSwitch/Classes/LabelSwtichSetting.swift | mohsinalimat/LabelSwitch | 51bbed9b9f56ddc5c19fcb740225fc0b0f731a7e | [
"MIT"
] | null | null | null | LabelSwitch/Classes/LabelSwtichSetting.swift | mohsinalimat/LabelSwitch | 51bbed9b9f56ddc5c19fcb740225fc0b0f731a7e | [
"MIT"
] | null | null | null | //
// Model.swift
// ContentsSwitch
//
// Created by cookie on 20/02/2018.
// Copyright © 2018 cookie. All rights reserved.
//
import Foundation
import UIKit
public struct LabelSwtichSetting {
public var text: String
public var textColor: UIColor
public var font: UIFont
public var backgroundColor:... | 28.581395 | 91 | 0.529699 |
f6f41034fc36416567d2332d46ec5f73685bc6d4 | 1,203 | swift | Swift | EatList/Errors/LocationServiceError.swift | stenchy/eat-list | 22910a8093188c6b8bf25629b2ccce297998ed26 | [
"MIT"
] | null | null | null | EatList/Errors/LocationServiceError.swift | stenchy/eat-list | 22910a8093188c6b8bf25629b2ccce297998ed26 | [
"MIT"
] | null | null | null | EatList/Errors/LocationServiceError.swift | stenchy/eat-list | 22910a8093188c6b8bf25629b2ccce297998ed26 | [
"MIT"
] | null | null | null | //
// LocationServiceError.swift
// EatList
//
// Created by Christian Alvarez on 12/30/20.
//
import Foundation
enum LocationServiceError: Error {
case generalFailure
case permissionDenied
}
extension LocationServiceError: PresentableError {
var errorTitle: String {
switch self {
case... | 27.340909 | 109 | 0.684954 |
b26004c4c902dcfccb14b31fdfa8e3300dd990d3 | 299 | swift | Swift | Sources/Glance/Visual Debugger/CustomLayout/Providers/LayoutProvidable.swift | nikitabelopotapov/Glance | eabc5a363aa98a56372b484925fcb9ac931a2405 | [
"MIT"
] | 38 | 2021-12-08T08:35:41.000Z | 2022-03-31T17:41:14.000Z | Sources/Glance/Visual Debugger/CustomLayout/Providers/LayoutProvidable.swift | nikitabelopotapov/Glance | eabc5a363aa98a56372b484925fcb9ac931a2405 | [
"MIT"
] | null | null | null | Sources/Glance/Visual Debugger/CustomLayout/Providers/LayoutProvidable.swift | nikitabelopotapov/Glance | eabc5a363aa98a56372b484925fcb9ac931a2405 | [
"MIT"
] | null | null | null | //
// LayoutProvidable.swift
// Glance
//
// Created by Nikita Belopotapov on 30.04.2021.
//
import UIKit
public protocol LayoutProvidable: AnyObject {
var layoutMapper: LayoutMappable? { get set }
func provide(for view: UIView, depth: inout Float, masterView: UIView?) -> [LayoutSnapshot]
}
| 21.357143 | 92 | 0.725753 |
9b7ecd4524738cf0bf63f0a703a7428677fba84e | 527 | swift | Swift | Sources/HollowCore/Utilities/String+sha256.swift | liang2kl/HollowCore | 70f389fde4a1175d6547825c518127c92b49b139 | [
"MIT"
] | 1 | 2021-06-21T09:54:04.000Z | 2021-06-21T09:54:04.000Z | Sources/HollowCore/Utilities/String+sha256.swift | liang2kl/HollowCore | 70f389fde4a1175d6547825c518127c92b49b139 | [
"MIT"
] | null | null | null | Sources/HollowCore/Utilities/String+sha256.swift | liang2kl/HollowCore | 70f389fde4a1175d6547825c518127c92b49b139 | [
"MIT"
] | null | null | null | //
// StringSHA256.swift
// Hollow
//
// Created by aliceinhollow on 3/2/2021.
// Copyright © 2021 treehollow. All rights reserved.
//
import Foundation
import CryptoKit
extension String {
/// calculate sha256
func sha256() -> String {
if let stringData = self.data(using: String.Encoding.utf8) {
... | 21.958333 | 73 | 0.590133 |
99bc0bbe9c6fdcf377aea6a5c53dbd5e93327856 | 2,666 | swift | Swift | Journey/Controllers/StartUp/RegisterViewController.swift | ytong3/Journey.ios | 521c72da938fd29a37e5d266889638fbb63e7626 | [
"MIT"
] | null | null | null | Journey/Controllers/StartUp/RegisterViewController.swift | ytong3/Journey.ios | 521c72da938fd29a37e5d266889638fbb63e7626 | [
"MIT"
] | null | null | null | Journey/Controllers/StartUp/RegisterViewController.swift | ytong3/Journey.ios | 521c72da938fd29a37e5d266889638fbb63e7626 | [
"MIT"
] | null | null | null | //
// RegisterViewController.swift
// Journey
//
// Created by Aaron Tong on 5/27/19.
// Copyright © 2019 Aaron Tong. All rights reserved.
//
import Firebase
import FirebaseAuth
class RegisterViewController: UIViewController {
@IBOutlet weak var usernameField: UITextField!
@IBOutlet weak var emailFie... | 37.027778 | 163 | 0.657164 |
0402c80a0490f9807f17ef2e93fdf6af4adb7217 | 2,228 | js | JavaScript | test/mocks/MockFileSystem.js | darrylwest/node-file-utils | 4c46adfc55bbaf93096eb60c05c69018cfc40703 | [
"Apache-2.0"
] | null | null | null | test/mocks/MockFileSystem.js | darrylwest/node-file-utils | 4c46adfc55bbaf93096eb60c05c69018cfc40703 | [
"Apache-2.0"
] | null | null | null | test/mocks/MockFileSystem.js | darrylwest/node-file-utils | 4c46adfc55bbaf93096eb60c05c69018cfc40703 | [
"Apache-2.0"
] | null | null | null | /**
* @class MockFileSystem
*
* @author: darryl.west@raincitysoftware.com
* @created: 1/20/14 11:39 AM
*/
const dash = require('lodash');
const stream = require('stream');
const MockFileSystem = function() {
'use strict';
const writer = this;
this.filename = null;
this.data = null;
this.app... | 27.506173 | 85 | 0.572711 |
c2fe08eb2715d45c6bbaa7f37c5c1d1224a74ed0 | 637 | go | Go | jsonutil.go | melmango/melhelper | c1f798059806f7eb06d0c9a16fd36e47d7b14c0f | [
"MIT"
] | null | null | null | jsonutil.go | melmango/melhelper | c1f798059806f7eb06d0c9a16fd36e47d7b14c0f | [
"MIT"
] | null | null | null | jsonutil.go | melmango/melhelper | c1f798059806f7eb06d0c9a16fd36e47d7b14c0f | [
"MIT"
] | null | null | null | package helpers
import (
"encoding/json"
"github.com/bitly/go-simplejson"
"fmt"
)
func JsonDecodeS(jstr string, obj interface{}) {
json.Unmarshal([]byte(jstr), obj)
}
func JsonDecodeB(value []byte,obj interface{}){
fmt.Printf("jsondecodeB:%s\n",string(value))
json.Unmarshal(value,obj);
}
func JsonEncodeS(obj ... | 17.694444 | 53 | 0.689168 |
f78fba951c303e8ea1896dab38759809996a9b56 | 291 | c | C | Debugging/CppCheck/array.c | Gjacquenot/training-material | 16b29962bf5683f97a1072d961dd9f31e7468b8d | [
"CC-BY-4.0"
] | 115 | 2015-03-23T13:34:42.000Z | 2022-03-21T00:27:21.000Z | Debugging/CppCheck/array.c | Gjacquenot/training-material | 16b29962bf5683f97a1072d961dd9f31e7468b8d | [
"CC-BY-4.0"
] | 56 | 2015-02-25T15:04:26.000Z | 2022-01-03T07:42:48.000Z | Debugging/CppCheck/array.c | Gjacquenot/training-material | 16b29962bf5683f97a1072d961dd9f31e7468b8d | [
"CC-BY-4.0"
] | 59 | 2015-11-26T11:44:51.000Z | 2022-03-21T00:27:22.000Z | #include <stdio.h>
#include <stdlib.h>
int main() {
int *a = (int *) malloc(5*sizeof(int));
int n = 5;
int m;
if (m > n) {
printf("in if-statement\n");
for (int i = 0; i <= 5; ++i)
a[i] = i;
}
printf("a[5] = %d\n", a[n]);
return 0;
}
| 18.1875 | 43 | 0.42268 |
50adbc338f9a24eb8690a9927797a6740a4e85e7 | 244 | go | Go | util/net.go | igor-feoktistov/go-ontap-rest | 5dabffb0f239c17ba55292e5aea5fea9014dfd1f | [
"MIT"
] | 1 | 2019-10-29T03:42:20.000Z | 2019-10-29T03:42:20.000Z | util/net.go | igor-feoktistov/go-ontap-rest | 5dabffb0f239c17ba55292e5aea5fea9014dfd1f | [
"MIT"
] | null | null | null | util/net.go | igor-feoktistov/go-ontap-rest | 5dabffb0f239c17ba55292e5aea5fea9014dfd1f | [
"MIT"
] | null | null | null | package util
import (
"net"
)
func GetOutboundIP() (ip net.IP, err error) {
conn, err := net.Dial("udp", "8.8.8.8:53")
if err == nil {
defer conn.Close()
localAddr := conn.LocalAddr().(*net.UDPAddr)
ip = localAddr.IP
}
return
}
| 15.25 | 46 | 0.606557 |
7754e176cc296d0cbe19636bf9be1288b6518c89 | 1,236 | html | HTML | cms/templates/cms/search_results.html | kingsdigitallab/mmc-django | 3b582a9c59e4210428fce54f65531223122ec4a3 | [
"MIT"
] | null | null | null | cms/templates/cms/search_results.html | kingsdigitallab/mmc-django | 3b582a9c59e4210428fce54f65531223122ec4a3 | [
"MIT"
] | null | null | null | cms/templates/cms/search_results.html | kingsdigitallab/mmc-django | 3b582a9c59e4210428fce54f65531223122ec4a3 | [
"MIT"
] | null | null | null | {% extends "cms/base.html" %}
{% load wagtailcore_tags cms_tags %}
{% block meta_title %}Search Results{% endblock %}
{% block breadcrumb %}
<div class="breadcrumb">
<a href="/"> Home</a> >
<a href="#">Search Results {% if q %} for: <span>{{ q }}</span> {% endif %}</a>
</div>
{% endblock %}
{% block main %}... | 23.320755 | 98 | 0.575243 |
96fbdf1e740be7173bdd4b03001886bd4656e99c | 64 | sql | SQL | db/schema.sql | veidul/CryptoChamps | 68d6aa2e7b93e014397b6e6f84f996b1c6f898d7 | [
"MIT"
] | null | null | null | db/schema.sql | veidul/CryptoChamps | 68d6aa2e7b93e014397b6e6f84f996b1c6f898d7 | [
"MIT"
] | 4 | 2022-01-05T04:58:06.000Z | 2022-01-08T19:00:09.000Z | db/schema.sql | veidul/CryptoChamps | 68d6aa2e7b93e014397b6e6f84f996b1c6f898d7 | [
"MIT"
] | 1 | 2022-01-15T20:50:41.000Z | 2022-01-15T20:50:41.000Z | DROP DATABASE IF EXISTS cryptos_db;
CREATE DATABASE cryptos_db;
| 21.333333 | 35 | 0.84375 |
a7fb417adc98daf3c4079a33fdad94352df71aab | 671 | asm | Assembly | Checkpoints/chk13_1.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 3 | 2021-06-26T14:52:16.000Z | 2021-11-23T03:48:48.000Z | Checkpoints/chk13_1.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 1 | 2021-06-26T14:12:21.000Z | 2021-06-26T14:18:54.000Z | Checkpoints/chk13_1.asm | richardhyy/AssemblyLab | 7e0ba3800f3db1e2f5d616ca89905963d1da0996 | [
"MIT"
] | 4 | 2021-11-30T06:06:08.000Z | 2022-03-16T03:55:42.000Z | assume cs:code
data segment
db 'Light and Wings',0
data ends
code segment
start: call setjpn
mov ax,data
mov ds,ax
mov si,0
mov ax,0b800h
mov es,ax
mov di,12*160
s: cmp byte ptr [si],0
je ok
mov al,[si]
mov es:[di],al
inc si
add di,2
mov bx,offset s-offset ok
int 7ch
ok: mov ax,4c00h
... | 12.903846 | 33 | 0.633383 |
9162a14759f265448b536a8ee325968f31ff922b | 315 | dart | Dart | lib/color_type.dart | ddmgy/acnh_helper | f04b2ca3fe3a76e1b49be1173b0e06ac96354a72 | [
"MIT"
] | null | null | null | lib/color_type.dart | ddmgy/acnh_helper | f04b2ca3fe3a76e1b49be1173b0e06ac96354a72 | [
"MIT"
] | 1 | 2020-11-26T12:30:24.000Z | 2020-11-26T12:30:24.000Z | lib/color_type.dart | ddmgy/acnh_helper | f04b2ca3fe3a76e1b49be1173b0e06ac96354a72 | [
"MIT"
] | null | null | null | class ColorType {
static get found => "found_color";
static get donated => "donated_color";
static get neighbor => "neighbor_color";
static get currentlyAvailable => "currently_available_color";
static get newlyAvailable => "newly_available_color";
static get leavingSoon => "leaving_soon_color";
} | 24.230769 | 63 | 0.739683 |
83389764cb4bfaf822e0499829235448afabb1b6 | 990 | sql | SQL | 9.0.window_function/window_function.sql | dipbazz/SQL_zoo | 28acef03e4b4b39191683fdd004a35f4bb8c1f07 | [
"MIT"
] | 2 | 2020-12-02T10:15:17.000Z | 2020-12-04T00:26:00.000Z | 9.0.window_function/window_function.sql | dipbazz/SQL_zoo | 28acef03e4b4b39191683fdd004a35f4bb8c1f07 | [
"MIT"
] | null | null | null | 9.0.window_function/window_function.sql | dipbazz/SQL_zoo | 28acef03e4b4b39191683fdd004a35f4bb8c1f07 | [
"MIT"
] | null | null | null | -- 1.
SELECT lastName, party, votes
FROM ge
WHERE constituency = 'S14000024' AND yr = 2017
ORDER BY votes DESC
-- 2.
SELECT party, votes,
RANK() OVER (ORDER BY votes DESC) as posn
FROM ge
WHERE constituency = 'S14000024' AND yr = 2017
ORDER BY party
-- 3.
SELECT yr,party, votes,
RANK() OVER (PARTIT... | 22.5 | 69 | 0.690909 |
0fa08f357b3d3dd2174358a9c1b61cfdaab15ca1 | 448 | swift | Swift | Sources/PostgreSQL/Message/Type/SASLResponse.swift | chaqmoq/postgresql | b50b243f51abd7aa684a0b31a3fa8a1197426633 | [
"MIT"
] | 1 | 2020-04-18T16:31:25.000Z | 2020-04-18T16:31:25.000Z | Sources/PostgreSQL/Message/Type/SASLResponse.swift | chaqmoq/postgresql | b50b243f51abd7aa684a0b31a3fa8a1197426633 | [
"MIT"
] | null | null | null | Sources/PostgreSQL/Message/Type/SASLResponse.swift | chaqmoq/postgresql | b50b243f51abd7aa684a0b31a3fa8a1197426633 | [
"MIT"
] | null | null | null | extension Message {
struct SASLResponse: MessageType {
let identifier: Identifier = .saslResponse
let data: [UInt8]
init(data: [UInt8] = .init()) {
self.data = data
}
init(buffer: inout ByteBuffer) {
self.data = buffer.readBytes(length: buffer.readab... | 23.578947 | 71 | 0.555804 |
2682690a02f8e78a948e213626493585f58ba33a | 1,489 | java | Java | src/controller/funGAController/strategy/TournamentSelection.java | bernardotc/CE810-2 | 0552e6d84f8bf590ce145cdf97e576002d12ec7f | [
"MIT"
] | null | null | null | src/controller/funGAController/strategy/TournamentSelection.java | bernardotc/CE810-2 | 0552e6d84f8bf590ce145cdf97e576002d12ec7f | [
"MIT"
] | null | null | null | src/controller/funGAController/strategy/TournamentSelection.java | bernardotc/CE810-2 | 0552e6d84f8bf590ce145cdf97e576002d12ec7f | [
"MIT"
] | null | null | null | package controller.funGAController.strategy;
import controller.funGAController.search.GAIndividual;
import controller.funGAController.strategy.*;
import controller.funGAController.strategy.ISelection;
import java.util.Random;
/**
* Created by dperez on 08/07/15.
*/
public class TournamentSelection implements ISele... | 28.09434 | 124 | 0.566823 |
39eb3d6c805880f08214a41c0c814636c00cb395 | 1,996 | java | Java | app/src/main/java/com/androidexperiments/landmarker/util/AnimationChain.java | Ankit77/AR_Location | a747171044e78d5a9992be97ec17592adf293339 | [
"Apache-2.0"
] | 205 | 2015-08-12T15:55:41.000Z | 2021-12-08T21:40:33.000Z | app/src/main/java/com/androidexperiments/landmarker/util/AnimationChain.java | Ankit77/AR_Location | a747171044e78d5a9992be97ec17592adf293339 | [
"Apache-2.0"
] | 4 | 2016-05-07T12:04:14.000Z | 2018-08-28T15:07:50.000Z | app/src/main/java/com/androidexperiments/landmarker/util/AnimationChain.java | Ankit77/AR_Location | a747171044e78d5a9992be97ec17592adf293339 | [
"Apache-2.0"
] | 62 | 2015-08-12T16:21:00.000Z | 2021-12-08T21:41:22.000Z | package com.androidexperiments.landmarker.util;
import android.app.Activity;
import android.app.Fragment;
import android.os.Handler;
import android.view.animation.Animation;
/**
* Simple class for an easier way to chain animations together
*/
public class AnimationChain extends SimpleAnimationListener
{
private... | 27.342466 | 86 | 0.648297 |
878894c3676e85e0068a8f28151fed27dc07d7c2 | 73,201 | lua | Lua | Earth Breaker (Tremor).lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 70 | 2021-02-09T17:21:32.000Z | 2022-03-28T12:41:42.000Z | Earth Breaker (Tremor).lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 4 | 2021-08-19T22:05:58.000Z | 2022-03-19T18:58:01.000Z | Earth Breaker (Tremor).lua | xVoid-xyz/Roblox-Scripts | 7eb176fa654f2ea5fbc6bcccced1b15df7ed82c2 | [
"BSD-3-Clause"
] | 325 | 2021-02-26T22:23:41.000Z | 2022-03-31T19:36:12.000Z | -- Gaster <3
-- Somewhat The Same Problem I Had With Gakisera.
wait(0.016666666666667)
Effects = {}
local Player = game.Players.localPlayer
local Character = Player.Character
local Humanoid = Character.Humanoid
local mouse = Player:GetMouse()
local m = Instance.new("Model", Character)
m.Name = "WeaponModel"
local effe... | 61.102671 | 272 | 0.628325 |
30810b058b4afe0a78d08109ec83a4610b6819f3 | 2,761 | lua | Lua | libs/group/joinRequest.lua | Uncontained0/lublox | 1d2ca3aba2f904ed410fb75ce7925de59d88b59f | [
"MIT"
] | 1 | 2022-03-13T21:24:16.000Z | 2022-03-13T21:24:16.000Z | libs/group/joinRequest.lua | Uncontained0/lublox | 1d2ca3aba2f904ed410fb75ce7925de59d88b59f | [
"MIT"
] | null | null | null | libs/group/joinRequest.lua | Uncontained0/lublox | 1d2ca3aba2f904ed410fb75ce7925de59d88b59f | [
"MIT"
] | null | null | null | local DateTime = require("util/datetime")
--[=[
@within JoinRequest
@prop Client Client
@readonly
A reference back to the client that owns this object.
]=]
--[=[
@within JoinRequest
@prop Requester User
@readonly
The user that made the request.
]=]
--[=[
@within JoinRequest
@pro... | 27.61 | 143 | 0.6523 |
2a3f988203c1c250b26610e5203e1577e860b921 | 9,494 | java | Java | 1.12.2-Forge/src/main/java/me/independed/inceptice/modules/combat/PVPBot.java | Kwiri123/Rage-R8 | 98a93bb89cf6d2462b789c0f46f240476074d844 | [
"WTFPL"
] | 4 | 2021-02-25T10:46:44.000Z | 2021-12-11T04:40:56.000Z | 1.12.2-Forge/src/main/java/me/independed/inceptice/modules/combat/PVPBot.java | Kwiri123/Rage-R8 | 98a93bb89cf6d2462b789c0f46f240476074d844 | [
"WTFPL"
] | null | null | null | 1.12.2-Forge/src/main/java/me/independed/inceptice/modules/combat/PVPBot.java | Kwiri123/Rage-R8 | 98a93bb89cf6d2462b789c0f46f240476074d844 | [
"WTFPL"
] | 2 | 2021-02-13T10:17:08.000Z | 2021-06-20T13:04:12.000Z |
/*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.minecraft.client.settings.KeyBinding
* net.minecraft.entity.Entity
* net.minecraft.entity.EntityLivingBase
* net.minecraft.entity.item.EntityArmorStand
* net.minecraft.entity.player.EntityPlayer
* net.minecraft.util.EnumHan... | 49.447917 | 421 | 0.617021 |
c34e8f865dd5584b08374560fed8e4c4fd456175 | 33,825 | rs | Rust | src/hash/pbkdf/scrypt.rs | tom25519/alkali | 403660a8f1dcd7a54b245ec4c42a948a94f58f05 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/hash/pbkdf/scrypt.rs | tom25519/alkali | 403660a8f1dcd7a54b245ec4c42a948a94f58f05 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/hash/pbkdf/scrypt.rs | tom25519/alkali | 403660a8f1dcd7a54b245ec4c42a948a94f58f05 | [
"Apache-2.0",
"MIT"
] | null | null | null | //! The [scrypt](https://www.tarsnap.com/scrypt.html) password-based key derivation algorithm.
//!
//! Please note that the `scrypt` API is missing the `MEM_LIMIT_MODERATE` and `OPS_LIMIT_MODERATE`
//! constants included in [`super::argon2id`] and [`super::argon2i`].
use super::pbkdf_module;
use libsodium_sys as sodiu... | 63.461538 | 98 | 0.540813 |
490ca0907913ecdffe345f7447dd88279f455300 | 1,599 | sql | SQL | src/main/resources/db/migration/V34__update_court_names.sql | ministryofjustice/prisonstaffhub-api | ffbc18a8c4ae5ab86bf02797c2f50f28595cdf39 | [
"Apache-2.0"
] | 1 | 2020-06-17T16:29:42.000Z | 2020-06-17T16:29:42.000Z | src/main/resources/db/migration/V34__update_court_names.sql | ministryofjustice/prisonstaffhub-api | ffbc18a8c4ae5ab86bf02797c2f50f28595cdf39 | [
"Apache-2.0"
] | 4 | 2020-03-10T16:15:01.000Z | 2022-01-28T12:58:12.000Z | src/main/resources/db/migration/V34__update_court_names.sql | ministryofjustice/prisonstaffhub-api | ffbc18a8c4ae5ab86bf02797c2f50f28595cdf39 | [
"Apache-2.0"
] | 1 | 2021-04-11T06:16:37.000Z | 2021-04-11T06:16:37.000Z | update enabled_court set name = 'Bromley Magistrates' where id = 'BROMMC';
update enabled_court set name = 'Cheltenham Magistrates' where id = 'CHELMC';
update enabled_court set name = 'City of London Magistrates' where id = 'CITYMC';
update enabled_court set name = 'Dudley Magistrates' where id = 'DUDLMC';
update enab... | 69.521739 | 83 | 0.757974 |
21468ec49b9f05d8ca784f8ceb86c4e560e5c014 | 30,144 | rs | Rust | src/extmem/pro_dcache_ctrl.rs | jessebraham/esp32s2 | a693ff9ba72a140cbbb331548d4f3744f549af0c | [
"Apache-2.0",
"MIT"
] | null | null | null | src/extmem/pro_dcache_ctrl.rs | jessebraham/esp32s2 | a693ff9ba72a140cbbb331548d4f3744f549af0c | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-08T17:41:17.000Z | 2021-09-08T17:41:17.000Z | src/extmem/pro_dcache_ctrl.rs | jessebraham/esp32s2 | a693ff9ba72a140cbbb331548d4f3744f549af0c | [
"Apache-2.0",
"MIT"
] | null | null | null | #[doc = "Register `PRO_DCACHE_CTRL` reader"]
pub struct R(crate::R<PRO_DCACHE_CTRL_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<PRO_DCACHE_CTRL_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<PRO_DCACHE_CTRL_SPEC>> for R {
#[inline(a... | 39.097276 | 416 | 0.651008 |
e8cb515349d5bd28092cb1a443b1e9f7480ec3f3 | 351 | asm | Assembly | programs/oeis/292/A292045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/292/A292045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/292/A292045.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A292045: Wiener index of the n X n X n grid graph.
; 0,48,972,7680,37500,136080,403368,1032192,2361960,4950000,9663060,17791488,31188612,52437840,85050000,133693440,204459408,305165232,445697820,638400000,898502220,1244602128,1699194552,2289254400,3046875000,4009964400,5223002148
add $0,1
mov $2,$0
pow $0,7
pow $2,5... | 31.909091 | 229 | 0.783476 |
0eda4f7850b525c448215c33f02280ac30ee62a1 | 1,362 | ts | TypeScript | src/app/shared/services/pwa-check-for-update.service.ts | elgervb/beez | 1e5662dcb5ae15d77dcb4410379646b7ef0e0e57 | [
"MIT"
] | null | null | null | src/app/shared/services/pwa-check-for-update.service.ts | elgervb/beez | 1e5662dcb5ae15d77dcb4410379646b7ef0e0e57 | [
"MIT"
] | 82 | 2018-12-23T20:16:45.000Z | 2022-03-14T14:29:43.000Z | src/app/shared/services/pwa-check-for-update.service.ts | elgervb/beez | 1e5662dcb5ae15d77dcb4410379646b7ef0e0e57 | [
"MIT"
] | null | null | null | import { ApplicationRef, Injectable } from '@angular/core';
import { MatSnackBar } from '@angular/material/snack-bar';
import { SwUpdate } from '@angular/service-worker';
import { concat, interval } from 'rxjs';
import { first } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class PwaCheckForUpdat... | 32.428571 | 86 | 0.632159 |
fb6878f6e24f441e9b75f6cc40c47e8e5cedbca7 | 24,194 | h | C | machine/qemu/sources/u-boot/include/dt-bindings/soc/imx_rsrc.h | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | 1 | 2021-11-21T19:56:29.000Z | 2021-11-21T19:56:29.000Z | machine/qemu/sources/u-boot/include/dt-bindings/soc/imx_rsrc.h | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | machine/qemu/sources/u-boot/include/dt-bindings/soc/imx_rsrc.h | muddessir/framework | 5b802b2dd7ec9778794b078e748dd1f989547265 | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright 2018 NXP
*/
#ifndef DT_BINDINGS_RSCRC_IMX_H
#define DT_BINDINGS_RSCRC_IMX_H
/*!
* These defines are used to indicate a resource. Resources include peripherals
* and bus masters (but not memory regions). Note items from list should
* never be changed or r... | 43.280859 | 79 | 0.506531 |
9a28bdf8d16fd1b1e76e956204aec0d2b5576d83 | 282 | css | CSS | train-scheduler/assets/css/syle.css | jason-michael/ku | 0d05f7fcf69b1f3fd40337945848649581468e91 | [
"MIT"
] | null | null | null | train-scheduler/assets/css/syle.css | jason-michael/ku | 0d05f7fcf69b1f3fd40337945848649581468e91 | [
"MIT"
] | null | null | null | train-scheduler/assets/css/syle.css | jason-michael/ku | 0d05f7fcf69b1f3fd40337945848649581468e91 | [
"MIT"
] | null | null | null | .container-fluid {
max-width: 1200px;
}
.card {
border: 1px solid royalblue;
}
.card-header {
font-weight: 600;
}
.delete-train-btn {
background: none;
color: #444;
transition: color .3s;
}
.delete-train-btn:hover {
color: red;
cursor: pointer;
} | 12.818182 | 32 | 0.606383 |
40c64decd8d1ee23c45f4a4bee8404d729e7610e | 12,957 | html | HTML | app/View/Admin/Config/PayPlugin.html | landlordlycat/acg-faka | 81d4155fc5ffac185a843f6a8ee5f90c1a127614 | [
"MIT"
] | 145 | 2021-11-27T14:32:23.000Z | 2022-03-31T16:24:41.000Z | app/View/Admin/Config/PayPlugin.html | landlordlycat/acg-faka | 81d4155fc5ffac185a843f6a8ee5f90c1a127614 | [
"MIT"
] | 6 | 2021-12-15T03:13:35.000Z | 2022-03-21T11:22:28.000Z | app/View/Admin/Config/PayPlugin.html | landlordlycat/acg-faka | 81d4155fc5ffac185a843f6a8ee5f90c1a127614 | [
"MIT"
] | 42 | 2021-11-27T15:37:56.000Z | 2022-03-26T10:11:17.000Z | #{include file="../Header.html"}
<style>
.layui-layer-page .layui-layer-content {
position: relative !important;
overflow: auto !important;
}
</style>
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Toolbar-->
#{include file=".... | 47.988889 | 192 | 0.338427 |
e17fa2bcff10edb8d63362063d1fd7bcad4e776d | 2,124 | kt | Kotlin | editor/src/main/kotlin/dev/thecodewarrior/bitfont/fonteditor/widgets/NkWidget.kt | thecodewarrior/Bitfont | 51a9402fa1f31b0886307cdf120a5c66b5a02906 | [
"BSD-2-Clause"
] | 9 | 2019-07-13T08:55:50.000Z | 2022-03-15T16:21:28.000Z | editor/src/main/kotlin/dev/thecodewarrior/bitfont/fonteditor/widgets/NkWidget.kt | thecodewarrior/Bitfont | 51a9402fa1f31b0886307cdf120a5c66b5a02906 | [
"BSD-2-Clause"
] | 4 | 2020-08-30T19:16:53.000Z | 2020-11-01T22:48:07.000Z | editor/src/main/kotlin/dev/thecodewarrior/bitfont/fonteditor/widgets/NkWidget.kt | thecodewarrior/Bitfont | 51a9402fa1f31b0886307cdf120a5c66b5a02906 | [
"BSD-2-Clause"
] | null | null | null | package dev.thecodewarrior.bitfont.fonteditor.widgets
import dev.thecodewarrior.bitfont.fonteditor.utils.DrawList
import org.lwjgl.nuklear.NkContext
import org.lwjgl.nuklear.NkRect
import org.lwjgl.nuklear.Nuklear.*
import org.lwjgl.system.MemoryStack
abstract class NkWidget {
private var lastWidth: Float = -1f
... | 30.342857 | 105 | 0.556026 |
904bf35c3864dfe283dcd88e06b9927b6cb7425f | 2,267 | py | Python | robosuite/demos/demo_video_recording.py | JadeCong/jade_robosuite | 0d4b4efd9ca95742ed375ce0b0d4e16d499cec06 | [
"MIT"
] | null | null | null | robosuite/demos/demo_video_recording.py | JadeCong/jade_robosuite | 0d4b4efd9ca95742ed375ce0b0d4e16d499cec06 | [
"MIT"
] | null | null | null | robosuite/demos/demo_video_recording.py | JadeCong/jade_robosuite | 0d4b4efd9ca95742ed375ce0b0d4e16d499cec06 | [
"MIT"
] | null | null | null | """
Record video of agent episodes with the imageio library.
This script uses offscreen rendering.
Example:
$ python demo_video_recording.py --environment Lift --robots Panda
"""
import sys
sys.path.append("/home/jade/Documents/JadeCloud/Works/Aisono/Projects/Workflows/Doing/PycharmProjects/aisono-robosuite")
im... | 31.486111 | 120 | 0.676224 |
4db4ab8ee7d3d9d7830b4ad195ecc0018386ca72 | 3,069 | html | HTML | templates/addperformance.html | bmsimons/EventManagerWebapp | 60273c61d56791365083ea98b9e2405ad54b4f2e | [
"MIT"
] | null | null | null | templates/addperformance.html | bmsimons/EventManagerWebapp | 60273c61d56791365083ea98b9e2405ad54b4f2e | [
"MIT"
] | null | null | null | templates/addperformance.html | bmsimons/EventManagerWebapp | 60273c61d56791365083ea98b9e2405ad54b4f2e | [
"MIT"
] | 2 | 2019-02-23T14:19:16.000Z | 2020-02-14T12:18:18.000Z | {% extends 'blocks/main.html' %}
{% block title %}Add performance{% endblock %}
{% block content %}
<div class="container">
<form class="form-horizontal">
<label for="performanceStartDate">Start date and time:</label>
<div class="form-group">
<div class='input-group ... | 40.381579 | 169 | 0.479635 |
5c7afead0e55555f7c60b52106d0108debb4bfe8 | 439 | h | C | src/goto-programs/show_symbol_table.h | quiveringlemon/pfl | 615a4036ddd61b996a778a402d70148667261475 | [
"BSD-4-Clause"
] | null | null | null | src/goto-programs/show_symbol_table.h | quiveringlemon/pfl | 615a4036ddd61b996a778a402d70148667261475 | [
"BSD-4-Clause"
] | 6 | 2017-12-03T22:02:14.000Z | 2018-04-10T09:42:20.000Z | src/goto-programs/show_symbol_table.h | romainbrenguier/cbmc | 2cd5def9ffcbb3a0be386823ad33e099a47378d4 | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Show the symbol table
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#ifndef CPROVER_GOTO_PROGRAMS_SHOW_SYMBOL_TABLE_H
#define CPROVER_GOTO_PROGRAMS_SHOW_SYMBOL_TABLE_H... | 23.105263 | 69 | 0.558087 |
9360e784e39e6b3a61efe43c160d180e9011d044 | 1,676 | swift | Swift | Controlio/AttachmentContainerView.swift | backmeupplz/controlio-ios | 5bd8c5e138758bc4fc0e3e84163daeb807fc8fbc | [
"MIT"
] | 6 | 2018-06-07T11:49:45.000Z | 2019-09-24T12:38:30.000Z | Controlio/AttachmentContainerView.swift | backmeupplz/controlio-ios | 5bd8c5e138758bc4fc0e3e84163daeb807fc8fbc | [
"MIT"
] | null | null | null | Controlio/AttachmentContainerView.swift | backmeupplz/controlio-ios | 5bd8c5e138758bc4fc0e3e84163daeb807fc8fbc | [
"MIT"
] | null | null | null | //
// AttachmentContainerView.swift
// Controlio
//
// Created by Nikita Kolmogorov on 10/05/16.
// Copyright © 2016 Nikita Kolmogorov. All rights reserved.
//
import UIKit
import NohanaImagePicker
import Photos
protocol AttachmentContainerViewDelegate: class {
func closeImagePicker()
}
class AttachmentCont... | 27.47541 | 121 | 0.684368 |
117d991e84a5a463fde750b9ad4b93c3e25aa3b9 | 294 | rs | Rust | build.rs | zdimension/inline-vbs | 7482cb8bc6ec883f8831ea811f3c1ca1f7ee3518 | [
"Apache-2.0",
"MIT"
] | 13 | 2022-03-01T17:56:55.000Z | 2022-03-08T23:39:16.000Z | build.rs | zdimension/inline-vbs | 7482cb8bc6ec883f8831ea811f3c1ca1f7ee3518 | [
"Apache-2.0",
"MIT"
] | null | null | null | build.rs | zdimension/inline-vbs | 7482cb8bc6ec883f8831ea811f3c1ca1f7ee3518 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-06T14:49:56.000Z | 2022-03-06T14:49:56.000Z | fn main()
{
cxx_build::bridge("src/lib.rs")
.cpp(true)
.file("src/vbs.cpp")
.compile("inline-vbs-backend");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed=src/vbs.cpp");
println!("cargo:rerun-if-changed=include/vbs.h");
} | 29.4 | 53 | 0.605442 |
829b13e320edfd7b85daf13bbc3a7b620501d50a | 5,169 | asm | Assembly | kernel/source/arch/x86_64/interrupts.asm | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 46 | 2019-09-30T18:40:06.000Z | 2022-02-20T12:54:59.000Z | kernel/source/arch/x86_64/interrupts.asm | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 11 | 2019-08-18T18:31:11.000Z | 2021-09-14T22:34:16.000Z | kernel/source/arch/x86_64/interrupts.asm | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 1 | 2020-01-20T16:55:13.000Z | 2020-01-20T16:55:13.000Z | %macro ISR_NOERROR 1
[global isr%1]
isr%1:
cli
push 0
push %1
jmp isr_stub
%endmacro
%macro ISR_ERROR 1
[global isr%1]
isr%1:
cli
push %1
jmp isr_stub
%endmacro
ISR_NOERROR 0
ISR_NOERROR 1
ISR_NOERROR 2
ISR_NOERROR 3
ISR_NOERROR 4
ISR_NOERROR 5
ISR_NOERROR 6
ISR_NOERROR 7
ISR_ERROR 8
ISR_N... | 14.519663 | 28 | 0.798027 |
4846654135ca520c26efbaddefdfbb7bdc584d73 | 1,394 | asm | Assembly | programs/oeis/157/A157759.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/157/A157759.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/157/A157759.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A157759: a(n) = 15780962*n^2 - 25943924*n + 10662963.
; 500001,21898963,74859849,159382659,275467393,423114051,602322633,813093139,1055425569,1329319923,1634776201,1971794403,2340374529,2740516579,3172220553,3635486451,4130314273,4656704019,5214655689,5804169283,6425244801,7077882243,7762081609,8477842899,9225166113,... | 92.933333 | 1,183 | 0.868006 |
084b524b624096d4c350a3cf15e4e3f53b72b227 | 816 | dart | Dart | lib/store/provider/user_provider.dart | imboy-pub/imboy-flutter | 166a97c682557819cec7290cb59f210a8b211ba1 | [
"MulanPSL-1.0"
] | 1 | 2022-02-04T14:15:43.000Z | 2022-02-04T14:15:43.000Z | lib/store/provider/user_provider.dart | imboy-pub/imboy-flutter | 166a97c682557819cec7290cb59f210a8b211ba1 | [
"MulanPSL-1.0"
] | null | null | null | lib/store/provider/user_provider.dart | imboy-pub/imboy-flutter | 166a97c682557819cec7290cb59f210a8b211ba1 | [
"MulanPSL-1.0"
] | null | null | null | import 'package:connectivity_plus/connectivity_plus.dart';
import 'package:dio/dio.dart';
import 'package:imboy/component/http/http_client.dart';
import 'package:imboy/component/http/http_response.dart';
import 'package:imboy/config/const.dart';
class UserProvider extends HttpClient {
Future<String> refreshtoken(Str... | 29.142857 | 72 | 0.677696 |
2d397f15a994cb1509365702613f0ed3a175a056 | 762 | swift | Swift | Combine/CombineTest/Common.swift | LHQ25/100DayProject | 8a56e3aea151aef4669537f8c9f9880c1820643e | [
"MIT"
] | null | null | null | Combine/CombineTest/Common.swift | LHQ25/100DayProject | 8a56e3aea151aef4669537f8c9f9880c1820643e | [
"MIT"
] | null | null | null | Combine/CombineTest/Common.swift | LHQ25/100DayProject | 8a56e3aea151aef4669537f8c9f9880c1820643e | [
"MIT"
] | null | null | null | //
// Common.swift
// CombineTest
//
// Created by cbkj on 2021/9/30.
//
import Foundation
import Combine
// MARK: - “辅助类的代码,用来帮助打印和确认事件流”
public enum SampleError: Error {
case sampleError
case stringError(msg: String)
case customError(error: Error)
}
@discardableResult
public func check<P: Publishe... | 20.594595 | 86 | 0.666667 |
9c3c2d6468f8d0ea46078ff23c195a8b88feb385 | 1,065 | dart | Dart | lib/main.dart | ferrarafer/counter_app_extended | 04a9f81195a8236e6bd2f7fd4c58203107428936 | [
"MIT"
] | null | null | null | lib/main.dart | ferrarafer/counter_app_extended | 04a9f81195a8236e6bd2f7fd4c58203107428936 | [
"MIT"
] | null | null | null | lib/main.dart | ferrarafer/counter_app_extended | 04a9f81195a8236e6bd2f7fd4c58203107428936 | [
"MIT"
] | null | null | null | import 'package:flutter/material.dart';
import 'package:logger/logger.dart';
import 'package:stacked_services/stacked_services.dart';
import 'package:starter_app/app/app.locator.dart';
import 'package:starter_app/app/app.router.dart';
Future<void> main() async {
Logger.level = Level.verbose;
try {
WidgetsFlut... | 26.625 | 78 | 0.696714 |
1bf0d0c9969972dbecf2d0adc4d04e45f98a94d6 | 1,777 | py | Python | Python-Intermetiate/04_regular_expressions.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | Python-Intermetiate/04_regular_expressions.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | Python-Intermetiate/04_regular_expressions.py | carlosmertens/Django-Full-Stack | e9713618936d6a90e098056cd6168d427dc91bd3 | [
"MIT"
] | null | null | null | # REGULAR EXPRESSIONS
# Start by importing "re" for Reglar Expressions
import re
patterns = ["term1", "term2"]
text = "This is a string with term1, but not the other!"
# Search with re
print("\n** Regular Expression - Search")
for pattern in patterns:
print("*Serching for: " + pattern)
if re.search(patter... | 25.028169 | 80 | 0.620709 |
7776ff141f01e70f4be1d09c2075ec094046eea0 | 64 | sql | SQL | mysql/init_sql_scripts/init_database.sql | yotsuba1022/the-curd | 019f57fffee3c896cdd2c430140cd69c8269778d | [
"Apache-2.0"
] | 1 | 2021-01-06T06:16:30.000Z | 2021-01-06T06:16:30.000Z | mysql/init_sql_scripts/init_database.sql | yotsuba1022/the-curd | 019f57fffee3c896cdd2c430140cd69c8269778d | [
"Apache-2.0"
] | null | null | null | mysql/init_sql_scripts/init_database.sql | yotsuba1022/the-curd | 019f57fffee3c896cdd2c430140cd69c8269778d | [
"Apache-2.0"
] | 1 | 2021-01-06T06:16:41.000Z | 2021-01-06T06:16:41.000Z | CREATE DATABASE IF NOT EXISTS the_crud default charset utf8mb4;
| 32 | 63 | 0.84375 |
0cc31eec76a99a4705096b18e21f9ea4dd88bce8 | 523 | py | Python | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | web/pyshop/admin.py | Andrew7891-kip/Ecommerce-pyshop | 2eaa7b553789b65992cbd80f80a68fcf25ef0efd | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import *
class ProductAdmin(admin.ModelAdmin):
list_display=['name','category','price_is']
prepopulated_fields = {"slug": ("name",)}
class CartAdmin(admin.ModelAdmin):
list_display=['item','user','created']
class OrderAdmin(admin.ModelAdmin):
list_displ... | 20.115385 | 47 | 0.743786 |
f720533cbeb0fb79891cfec58a603c54458254f7 | 197 | h | C | src/better_LogEntry.h | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 5 | 2020-11-21T03:44:17.000Z | 2021-07-10T22:51:28.000Z | src/better_LogEntry.h | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | null | null | null | src/better_LogEntry.h | ddarknut/better | 47d801c4fa8de6c32dff933de7d25b559421ce09 | [
"Apache-2.0"
] | 1 | 2021-03-24T20:33:57.000Z | 2021-03-24T20:33:57.000Z | #ifndef BETTER_LOGENTRY_H
#define BETTER_LOGENTRY_H
#include "better_const.h"
struct LogEntry
{
u8 level;
char* content;
};
void LogEntry_free(LogEntry* e);
#endif // BETTER_LOGENTRY_H
| 13.133333 | 32 | 0.741117 |
ca45be53e3ea1530873cba7f082cda9634dcd93f | 477,740 | sql | SQL | workshop.sql | hlavacm/wordcamp-praha-2018 | 80a61e9de5873bb5b6efa520b18ab6f7eeb9adbf | [
"BSD-3-Clause"
] | null | null | null | workshop.sql | hlavacm/wordcamp-praha-2018 | 80a61e9de5873bb5b6efa520b18ab6f7eeb9adbf | [
"BSD-3-Clause"
] | null | null | null | workshop.sql | hlavacm/wordcamp-praha-2018 | 80a61e9de5873bb5b6efa520b18ab6f7eeb9adbf | [
"BSD-3-Clause"
] | null | null | null | # ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.5.5-10.1.21-MariaDB)
# Database: wordcamp-praha-2018-workshop
# Generation Time: 2018-02-25 11:23:20 +0000
# ***********... | 823.689655 | 254,828 | 0.675968 |
42880da737cca14e4eee9fec474035e8d18177cc | 1,420 | swift | Swift | CoronaContact/Model/Website.swift | austrianredcross/stopp-corona-ios | b75202258e92e6836c703f39544e6d8d0aa57be2 | [
"Apache-2.0"
] | 179 | 2020-04-24T12:28:22.000Z | 2022-02-09T19:24:30.000Z | CoronaContact/Model/Website.swift | austrianredcross/stopp-corona-ios | b75202258e92e6836c703f39544e6d8d0aa57be2 | [
"Apache-2.0"
] | 16 | 2020-04-24T17:41:44.000Z | 2022-02-21T10:39:51.000Z | CoronaContact/Model/Website.swift | austrianredcross/stopp-corona-ios | b75202258e92e6836c703f39544e6d8d0aa57be2 | [
"Apache-2.0"
] | 40 | 2020-04-24T12:57:19.000Z | 2022-02-09T19:24:35.000Z | //
// Website.swift
// CoronaContact
//
import UIKit
enum Website: String {
case imprint
case privacy
case termsOfUse = "terms-of-use"
case privacyAndTermsOfUse = "privacy-and-terms-of-use"
private var localisedFileName: String {
Language.current.rawValue + "." + rawValue
}
var... | 25.818182 | 79 | 0.664085 |
f77ba8485c1cd0636fe442e4f0f3bc0e935be902 | 2,652 | h | C | ext/evt/epoll.h | DarkKowalski/evt | 69eb821e132898d99708a3aa8bbe63f2f82bd0c8 | [
"BSD-3-Clause"
] | null | null | null | ext/evt/epoll.h | DarkKowalski/evt | 69eb821e132898d99708a3aa8bbe63f2f82bd0c8 | [
"BSD-3-Clause"
] | null | null | null | ext/evt/epoll.h | DarkKowalski/evt | 69eb821e132898d99708a3aa8bbe63f2f82bd0c8 | [
"BSD-3-Clause"
] | null | null | null | #ifndef EPOLL_H
#define EPOLL_H
#include "evt.h"
#if HAVE_SYS_EPOLL_H
VALUE method_scheduler_epoll_init(VALUE self) {
rb_iv_set(self, "@epfd", INT2NUM(epoll_create(1))); // Size of epoll is ignored after Linux 2.6.8.
return Qnil;
}
VALUE method_scheduler_epoll_register(VALUE self, VALUE io, VALUE interest) {... | 28.516129 | 102 | 0.653469 |
f438c991027f1eeb11f06726756a450590583523 | 1,565 | go | Go | validator/http_test.go | fujiwara/go-amzn-oidc | 25200bb47db62267da47dc7ea2fff171b63f8cbf | [
"MIT"
] | null | null | null | validator/http_test.go | fujiwara/go-amzn-oidc | 25200bb47db62267da47dc7ea2fff171b63f8cbf | [
"MIT"
] | 2 | 2021-08-12T01:18:27.000Z | 2022-02-03T02:43:18.000Z | validator/http_test.go | fujiwara/go-amzn-oidc | 25200bb47db62267da47dc7ea2fff171b63f8cbf | [
"MIT"
] | 1 | 2021-08-10T10:55:58.000Z | 2021-08-10T10:55:58.000Z | package validator_test
import (
"net/http"
"net/http/httptest"
"testing"
"time"
"github.com/fujiwara/go-amzn-oidc/validator"
"github.com/golang-jwt/jwt"
)
func TestHTTPHandlerFunc(t *testing.T) {
keySv := httptest.NewServer(http.HandlerFunc(keyHandlerFunc))
defer keySv.Close()
gen := func(token *jwt.Token) ... | 24.84127 | 72 | 0.684345 |
cd5b7b98e2a105077de3f00a0ce81f9d1db0d953 | 949 | dart | Dart | Crypto-Coins-List/test/src/modules/coin/infra/adapters/json_to_coin_test.dart | schuberty/ToDo-App | c8d5c767166e9c9a2835d48e122edb90bbcffc7f | [
"MIT"
] | null | null | null | Crypto-Coins-List/test/src/modules/coin/infra/adapters/json_to_coin_test.dart | schuberty/ToDo-App | c8d5c767166e9c9a2835d48e122edb90bbcffc7f | [
"MIT"
] | null | null | null | Crypto-Coins-List/test/src/modules/coin/infra/adapters/json_to_coin_test.dart | schuberty/ToDo-App | c8d5c767166e9c9a2835d48e122edb90bbcffc7f | [
"MIT"
] | 1 | 2022-03-15T14:03:56.000Z | 2022-03-15T14:03:56.000Z | import 'package:crypto_list/src/modules/coin/infra/adapters/json_to_coin.dart';
import 'package:crypto_list/src/shared/entities/coin_entity.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
late CoinEntity coin;
setUp(() {
coin = JsonToCoin.fromMap({
'currency_name': 'Bitcoin',
... | 31.633333 | 198 | 0.652266 |
fb59466d20527bd16b0eff7c5f5ee81eb134387c | 22,655 | h | C | ngx_rtmp.h | MasterchiefCC/nginx-http-flv-module | ce202b494988cbed159685b76e48732bab248529 | [
"BSD-2-Clause"
] | null | null | null | ngx_rtmp.h | MasterchiefCC/nginx-http-flv-module | ce202b494988cbed159685b76e48732bab248529 | [
"BSD-2-Clause"
] | null | null | null | ngx_rtmp.h | MasterchiefCC/nginx-http-flv-module | ce202b494988cbed159685b76e48732bab248529 | [
"BSD-2-Clause"
] | null | null | null | #ifndef _NGX_RTMP_H_INCLUDED_
#define _NGX_RTMP_H_INCLUDED_
#include <nginx.h>
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_event.h>
#include <ngx_event_connect.h>
#include "ngx_rtmp_amf.h"
typedef struct ngx_rtmp_core_srv_conf_s ngx_rtmp_core_srv_conf_t;
typedef struct ngx_rtmp_session_s ngx_rtmp_ses... | 29.614379 | 80 | 0.735555 |
0c5f682d3eb138f380d2257f5c453f19f2b56e1c | 1,105 | swift | Swift | Sources/LocheckLogic/Types/LprojFiles.swift | taher-mosbah/locheck | ad3331e79168b243faddd99d3aa75af53107309a | [
"MIT"
] | 63 | 2021-09-01T19:01:22.000Z | 2022-02-24T03:11:24.000Z | Sources/LocheckLogic/Types/LprojFiles.swift | taher-mosbah/locheck | ad3331e79168b243faddd99d3aa75af53107309a | [
"MIT"
] | 17 | 2021-09-01T17:18:35.000Z | 2022-02-22T16:37:21.000Z | Sources/LocheckLogic/Types/LprojFiles.swift | taher-mosbah/locheck | ad3331e79168b243faddd99d3aa75af53107309a | [
"MIT"
] | 4 | 2021-09-20T15:48:39.000Z | 2022-02-18T10:41:30.000Z | //
// LprojFiles.swift
//
//
// Created by Steve Landey on 8/18/21.
//
import Files
import Foundation
/**
Manifest of all files within an `.lproj` file
*/
public struct LprojFiles {
public let name: String
public let path: String
public let strings: [File]
public let stringsdict: [File]
publi... | 24.555556 | 92 | 0.61267 |
51062cdc72288a31c6f2319a32450634e642ff74 | 278 | c | C | tests/final/test11_scope.c | nirmal-suthar/gcc_lite | 53b25acb8d4702a9f1b369c862e7e484be2385f9 | [
"MIT"
] | 2 | 2021-05-27T10:45:50.000Z | 2021-06-07T13:51:53.000Z | tests/final/test11_scope.c | nirmal-suthar/gcc_lite | 53b25acb8d4702a9f1b369c862e7e484be2385f9 | [
"MIT"
] | null | null | null | tests/final/test11_scope.c | nirmal-suthar/gcc_lite | 53b25acb8d4702a9f1b369c862e7e484be2385f9 | [
"MIT"
] | null | null | null | int a;
void f(){
a=10;
}
int g(int b,int c){
return a++;
}
int main()
{
int a=10;
int b;
int k;
int f1;
int q[10];
// int a;
b--;
k =(int) a;
f();
f1 = g(a,b);
q[1] = a;
a = k<2 ? 4: 6 ;
printf("k = %d\n",k);
printf("q[1] = %d\n",q[1]);
} | 9.928571 | 29 | 0.392086 |
58a0b4f173e7bdfb94f0246a1ff32a917c8b9779 | 1,919 | lua | Lua | Love2D/GameJamTitle/main.lua | sdleffler/TwoHourDemos | 886192a10b89d4eb7177b7f2d179644645371cb1 | [
"MIT"
] | null | null | null | Love2D/GameJamTitle/main.lua | sdleffler/TwoHourDemos | 886192a10b89d4eb7177b7f2d179644645371cb1 | [
"MIT"
] | 2 | 2015-09-18T21:51:23.000Z | 2015-09-19T01:05:17.000Z | Love2D/GameJamTitle/main.lua | sdleffler/TwoHourDemos | 886192a10b89d4eb7177b7f2d179644645371cb1 | [
"MIT"
] | null | null | null | local graphics = love.graphics
graphics.setDefaultFilter('nearest')
love.window.setMode(0, 0, {fullscreen = true})
local function wave(neutral, amp, omega, phase)
return function(t)
return neutral + amp * math.cos(omega * t + phase)
end
end
math.randomseed(os.time())
local stars = {}
for i = 1, 5000 do
table... | 22.576471 | 70 | 0.635227 |
0bcebc39ec4809c843e8038070f72c504d910e78 | 2,195 | js | JavaScript | prax/src/redux/chat/actions.js | MartinScriblerus/prax | b407970ef55f399696b7d01059fe9b0f5671d3ed | [
"MIT"
] | null | null | null | prax/src/redux/chat/actions.js | MartinScriblerus/prax | b407970ef55f399696b7d01059fe9b0f5671d3ed | [
"MIT"
] | 2 | 2020-05-23T08:22:56.000Z | 2022-01-27T16:13:59.000Z | prax/src/redux/chat/actions.js | MartinScriblerus/Prax | b407970ef55f399696b7d01059fe9b0f5671d3ed | [
"MIT"
] | null | null | null | import { ChatTypes } from './types'
import {
getUsers as getUsersAPI,
getChat as getChatAPI,
postMessage as postMessageAPI,
// markAsRead as markAsReadAPI
} from '../../services/api'
export const getUsersRequest = ()=>async dispatch=>{
dispatch({type: ChatTypes.GET_USERS_REQUEST})
try {
... | 24.388889 | 76 | 0.63918 |
405c33ca184f7b1a68e6c4af60fa88f8c034646c | 1,695 | py | Python | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 5 | 2019-04-11T19:32:14.000Z | 2020-08-03T21:58:55.000Z | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 7 | 2019-03-19T03:54:49.000Z | 2021-12-09T21:53:28.000Z | drip/api/broadcasts.py | willjohnson/drip-python | 13e2836b5acb7a822b0e1f9884e3249d37734cef | [
"MIT"
] | 1 | 2021-01-11T21:51:51.000Z | 2021-01-11T21:51:51.000Z | from typing import TYPE_CHECKING
from drip.utils import json_list, json_object
if TYPE_CHECKING:
from requests import Session
class Broadcasts:
session: 'Session'
@json_list('broadcasts')
def broadcasts(self, marshall=True, **params):
"""
broadcasts(page=0, per_page=100, status='al... | 32.596154 | 105 | 0.623009 |
6c6d66cbfd161687b1e769a6acea6cff2b7c30d0 | 8,718 | go | Go | xml.go | mewbak/go-gccxml | b3644951435fafeaffe90d90891d6d09a4dd2cc4 | [
"BSD-2-Clause"
] | 2 | 2020-06-17T08:41:29.000Z | 2021-01-28T07:26:34.000Z | xml.go | mewbak/go-gccxml | b3644951435fafeaffe90d90891d6d09a4dd2cc4 | [
"BSD-2-Clause"
] | null | null | null | xml.go | mewbak/go-gccxml | b3644951435fafeaffe90d90891d6d09a4dd2cc4 | [
"BSD-2-Clause"
] | 1 | 2015-05-21T06:35:37.000Z | 2015-05-21T06:35:37.000Z | // Copyright 2014, Hǎiliàng Wáng. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gccxml
type Argument struct {
Name__
Type__
Location__
File__
Line__
xmlDoc__
ptrKind PtrKind
parent *Function
serial int
}
type Arguments ... | 14.676768 | 58 | 0.721496 |
dd911fc34f4cd150f43a6a53bd7a9c1579241da0 | 357 | go | Go | internal/schema/plugin_test.go | f110/protoc-gen-ddl | cfc818f883411321dea8913cd88c103748738151 | [
"MIT"
] | 1 | 2020-06-29T15:05:00.000Z | 2020-06-29T15:05:00.000Z | internal/schema/plugin_test.go | f110/protoc-ddl | cfc818f883411321dea8913cd88c103748738151 | [
"MIT"
] | null | null | null | internal/schema/plugin_test.go | f110/protoc-ddl | cfc818f883411321dea8913cd88c103748738151 | [
"MIT"
] | null | null | null | package schema
import (
"testing"
)
func TestRelations_Replace(t *testing.T) {
user := &Field{Name: "user", Virtual: true}
human := &Field{Name: "human", Virtual: true}
humanId := &Field{Name: "id", Type: "TYPE_INT32"}
rels := Relations(make(map[*Field][]*Field))
rels.Replace(user, human)
t.Log(rels)
rels.Re... | 19.833333 | 50 | 0.669468 |
fd137b0840daff6ef87405a3fbcf73601c8e2d7f | 63 | sql | SQL | src/test/resources/sql/select/1ac85d80.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 66 | 2018-06-15T11:34:03.000Z | 2022-03-16T09:24:49.000Z | src/test/resources/sql/select/1ac85d80.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 13 | 2019-03-19T11:56:28.000Z | 2020-08-05T04:20:50.000Z | src/test/resources/sql/select/1ac85d80.sql | Shuttl-Tech/antlr_psql | fcf83192300abe723f3fd3709aff5b0c8118ad12 | [
"MIT"
] | 28 | 2019-01-05T19:59:02.000Z | 2022-03-24T11:55:50.000Z | -- file:strings.sql ln:556 expect:true
SELECT repeat('Pg', -4)
| 21 | 38 | 0.698413 |
86eaba90a2d00c0c98b9e68feb8cd86ea3392f66 | 781 | go | Go | pkg/testtime/testtime_test.go | Jesse0Michael/testhelpers | 445403cf63e7f498456815d31408876b2ffc784b | [
"MIT"
] | null | null | null | pkg/testtime/testtime_test.go | Jesse0Michael/testhelpers | 445403cf63e7f498456815d31408876b2ffc784b | [
"MIT"
] | null | null | null | pkg/testtime/testtime_test.go | Jesse0Michael/testhelpers | 445403cf63e7f498456815d31408876b2ffc784b | [
"MIT"
] | null | null | null | package testtime
import (
"fmt"
"testing"
"time"
)
func ExampleParse() {
t := &testing.T{}
fmt.Println(Parse(t, time.RFC3339, "1990-06-04T01:02:03Z"))
// Output:
// 1990-06-04 01:02:03 +0000 UTC
}
func ExampleParseInLocation() {
t := &testing.T{}
fmt.Println(ParseInLocation(t, time.RFC3339, "1990-06-04T01... | 19.525 | 80 | 0.659411 |
3c6b5c8666a6b584696a844bba846f19e0c822fe | 582 | rs | Rust | src/model/doc/mod.rs | rustyhorde/ruarango | 58c68df151aa04d4ee7a42dccf31c7621c307b9b | [
"Apache-2.0",
"MIT"
] | null | null | null | src/model/doc/mod.rs | rustyhorde/ruarango | 58c68df151aa04d4ee7a42dccf31c7621c307b9b | [
"Apache-2.0",
"MIT"
] | null | null | null | src/model/doc/mod.rs | rustyhorde/ruarango | 58c68df151aa04d4ee7a42dccf31c7621c307b9b | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (c) 2021 ruarango developers
//
// Licensed under the Apache License, Version 2.0
// <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT
// license <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. All files in the project carrying such notice may not be copied,
... | 38.8 | 108 | 0.726804 |
3d4e60049485d3dd2a1e93c888e8bd3c6f4e888b | 156 | kt | Kotlin | app/src/main/java/com/demo/assignment/core/DemoApp.kt | manishktx/demo-ind-wealth | e76816c8cc0ee0c61d44743d42cc649771b17fd6 | [
"MIT"
] | null | null | null | app/src/main/java/com/demo/assignment/core/DemoApp.kt | manishktx/demo-ind-wealth | e76816c8cc0ee0c61d44743d42cc649771b17fd6 | [
"MIT"
] | null | null | null | app/src/main/java/com/demo/assignment/core/DemoApp.kt | manishktx/demo-ind-wealth | e76816c8cc0ee0c61d44743d42cc649771b17fd6 | [
"MIT"
] | null | null | null | package com.demo.assignment.core
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class DemoApp: Application() {
} | 19.5 | 41 | 0.826923 |
16cf708c7955667116b1d5cc7d26f9f45e90c43c | 212 | ts | TypeScript | src/exercise/index.ts | im-cuttlefish/next-mathdoc | b4c28ea9d46165014dac51358222ec1e4df06bb3 | [
"MIT"
] | null | null | null | src/exercise/index.ts | im-cuttlefish/next-mathdoc | b4c28ea9d46165014dac51358222ec1e4df06bb3 | [
"MIT"
] | 1 | 2021-03-10T21:09:24.000Z | 2021-03-10T21:09:24.000Z | src/exercise/index.ts | im-cuttlefish/next-mathdoc | b4c28ea9d46165014dac51358222ec1e4df06bb3 | [
"MIT"
] | null | null | null | export { createQuestion } from "./createQuestion";
export { createAnswer } from "./createAnswer";
export type { QuestionArguments } from "./createQuestion";
export type { AnswerArguments } from "./createAnswer";
| 42.4 | 58 | 0.745283 |
698d06775d6d961dd70b00843e8817b6a34d833b | 737 | asm | Assembly | malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/patternA.asm | mikepea/vectrex-playground | 0de7d2d6db0914d915f4334402f747ab3bcdc7e6 | [
"0BSD"
] | 5 | 2018-01-14T10:03:50.000Z | 2020-01-17T13:53:49.000Z | malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/patternA.asm | mikepea/vectrex-playground | 0de7d2d6db0914d915f4334402f747ab3bcdc7e6 | [
"0BSD"
] | null | null | null | malban/Release/VRelease/Release.History/VRelease_2017_04_07/Song/patternA.asm | mikepea/vectrex-playground | 0de7d2d6db0914d915f4334402f747ab3bcdc7e6 | [
"0BSD"
] | null | null | null | ; this file is part of Release, written by Malban in 2017
;
HAS_VOICE0 = 1
HAS_TONE0 = 1
FIRST7 = $3E
dw $0044
patternAData:
db $FF, $18, $97, $DE, $63, $FE, $1A, $7E, $E6, $34
db $ED, $FC, $70, $30, $7F, $DE, $4F, $1F, $4C, $7B
db $EF, $47, $1E, $77, $93, $C7, $FE, $F4, $76, $F2
db $7F, $7F, $51, $F7, $BC, $9F, ... | 36.85 | 57 | 0.468114 |
c2b7fcb7f581d63d07eab4dfcdd0f58b144d1fad | 410 | go | Go | commands/root.go | christianang/cfnet | f491d3d414ecf445cefefbda57f41e2e7005c235 | [
"MIT"
] | null | null | null | commands/root.go | christianang/cfnet | f491d3d414ecf445cefefbda57f41e2e7005c235 | [
"MIT"
] | null | null | null | commands/root.go | christianang/cfnet | f491d3d414ecf445cefefbda57f41e2e7005c235 | [
"MIT"
] | null | null | null | package commands
import "github.com/spf13/cobra"
var RunCRoot string
var RootCmd = &cobra.Command{
Use: "cfnet",
Short: "A cli to interact with container-to-container components in CF.",
Long: `A cli to interact with container-to-container networking components in CloudFoundry.`,
}
func init() {
RootCmd.Pers... | 25.625 | 100 | 0.736585 |
ad2c9b2995e70388c0595ddb1c22acfa529e6219 | 6,599 | swift | Swift | sdk/core/AzureCore/Tests/RequestParametersTests.swift | knvsl/azure-sdk-for-ios | 6d445392592180ac0b1af66a936625ad66ec95ab | [
"MIT"
] | null | null | null | sdk/core/AzureCore/Tests/RequestParametersTests.swift | knvsl/azure-sdk-for-ios | 6d445392592180ac0b1af66a936625ad66ec95ab | [
"MIT"
] | null | null | null | sdk/core/AzureCore/Tests/RequestParametersTests.swift | knvsl/azure-sdk-for-ios | 6d445392592180ac0b1af66a936625ad66ec95ab | [
"MIT"
] | 1 | 2022-02-01T18:23:52.000Z | 2022-02-01T18:23:52.000Z | // --------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the ""Softw... | 30.981221 | 111 | 0.620397 |
f729a2a75d5ae5f6e100d886370120c114f00131 | 7,029 | c | C | tests/util/network/addr-ipv6-t.c | jhutz/rra-c-util | d32ac5ef4293989456a920503b0285f281cd1d3f | [
"MIT",
"Unlicense"
] | 21 | 2015-02-16T07:37:16.000Z | 2021-11-12T03:54:59.000Z | tests/util/network/addr-ipv6-t.c | jhutz/rra-c-util | d32ac5ef4293989456a920503b0285f281cd1d3f | [
"MIT",
"Unlicense"
] | 27 | 2015-06-02T15:02:21.000Z | 2021-12-10T17:36:06.000Z | tests/util/network/addr-ipv6-t.c | jhutz/rra-c-util | d32ac5ef4293989456a920503b0285f281cd1d3f | [
"MIT",
"Unlicense"
] | 16 | 2015-05-07T16:54:57.000Z | 2021-11-12T21:24:51.000Z | /*
* Test network address functions for IPv6.
*
* The canonical version of this file is maintained in the rra-c-util package,
* which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
*
* Written by Russ Allbery <eagle@eyrie.org>
* Copyright 2005, 2013, 2016-2018, 2020 Russ Allbery <eagle@eyri... | 36.419689 | 78 | 0.646322 |
32e398a922ee4236ae1bc2ad2d1dbec9af087088 | 130 | dart | Dart | lib/quiz/view/viewing_quiz_template.dart | CodingLegend27/Mathe-App | a5176720ff14d286a072d556c36d552d6e2693b0 | [
"MIT"
] | null | null | null | lib/quiz/view/viewing_quiz_template.dart | CodingLegend27/Mathe-App | a5176720ff14d286a072d556c36d552d6e2693b0 | [
"MIT"
] | null | null | null | lib/quiz/view/viewing_quiz_template.dart | CodingLegend27/Mathe-App | a5176720ff14d286a072d556c36d552d6e2693b0 | [
"MIT"
] | null | null | null | import 'package:mathe_app/index.dart';
abstract class QuizViewingTemplate extends StatefulWidget {
bool validateInput();
}
| 16.25 | 59 | 0.776923 |
5bcaa80a07f12323e4f63270a39225182baf91cc | 18,265 | c | C | src/bitcoin-network.c | tlzs-dev/bitcoin-clib | ca883cf32fed4851ba586c1e87d4f541bbfcf6a9 | [
"MIT"
] | 2 | 2020-08-07T16:20:23.000Z | 2020-08-15T07:27:16.000Z | src/bitcoin-network.c | tlzs-dev/bitcoin-clib | ca883cf32fed4851ba586c1e87d4f541bbfcf6a9 | [
"MIT"
] | null | null | null | src/bitcoin-network.c | tlzs-dev/bitcoin-clib | ca883cf32fed4851ba586c1e87d4f541bbfcf6a9 | [
"MIT"
] | null | null | null | /*
* bitcoin-network.c
*
* Copyright 2020 Che Hongwei <htc.chehw@gmail.com>
*
* The MIT License (MIT)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, incl... | 23.938401 | 123 | 0.668984 |
d2d6bf2e574d0334f51f9e4beb9159b9eb604146 | 2,014 | php | PHP | resources/views/cart.blade.php | salmanshah8992/Shopingcart | 58c3009b05bc55ff6b0541c1ef6987af870c4a3f | [
"MIT"
] | null | null | null | resources/views/cart.blade.php | salmanshah8992/Shopingcart | 58c3009b05bc55ff6b0541c1ef6987af870c4a3f | [
"MIT"
] | null | null | null | resources/views/cart.blade.php | salmanshah8992/Shopingcart | 58c3009b05bc55ff6b0541c1ef6987af870c4a3f | [
"MIT"
] | null | null | null | @extends('layout.app')
@yield('title','Cart')
@section('content')
<br>
<div class="container">
<h1 class="text-center">Cart Page</h1>
<div class="row">
<div class="table table-hover">
<table>
<thead>
<tr>
<th width="50%">Product</th>
... | 28.366197 | 103 | 0.334161 |
397ae267648b4ca63b5c66c124c34a08dc96eba9 | 24,745 | html | HTML | java-code/multiverse/org/multiverse/api/class-use/TxnFactoryBuilder.html | AlmaRahat/CS-210-Concurrency | 834d549e3195f6093e220a2b761dc713ba3f342b | [
"MIT"
] | 42 | 2021-01-27T10:35:39.000Z | 2022-03-19T13:00:14.000Z | java-code/multiverse/org/multiverse/api/class-use/TxnFactoryBuilder.html | AlmaRahat/CS-210-Concurrency | 834d549e3195f6093e220a2b761dc713ba3f342b | [
"MIT"
] | null | null | null | java-code/multiverse/org/multiverse/api/class-use/TxnFactoryBuilder.html | AlmaRahat/CS-210-Concurrency | 834d549e3195f6093e220a2b761dc713ba3f342b | [
"MIT"
] | 30 | 2021-01-31T21:43:30.000Z | 2022-03-31T13:39:21.000Z | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_31) on Sat Apr 07 12:47:27 EEST 2012 -->
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>
Uses of Interface org.multiverse... | 67.794521 | 379 | 0.674197 |
f81e41b850097c1272c6d81f6f0d02e4bcca7458 | 66 | lua | Lua | Game/Resize/resizeSmall.lua | hunterman25/Cuauhtli | 442f9016080e8fd025095e4212b75b46a3af25bc | [
"Apache-2.0"
] | 1 | 2020-12-01T20:03:29.000Z | 2020-12-01T20:03:29.000Z | Game/Resize/resizeSmall.lua | hunterman25/Cuauhtli | 442f9016080e8fd025095e4212b75b46a3af25bc | [
"Apache-2.0"
] | 3 | 2020-12-07T21:33:14.000Z | 2020-12-25T07:14:09.000Z | Game/Resize/resizeSmall.lua | hunterman25/Cuauhtli | 442f9016080e8fd025095e4212b75b46a3af25bc | [
"Apache-2.0"
] | null | null | null | love.window.setMode(600,600)
ratio=1
x=x*(600/winY)
y=y*(600/winY) | 16.5 | 28 | 0.712121 |
64630f5c5a471e3d50f4ef362cd017265b4a3b5f | 388 | asm | Assembly | programs/oeis/293/A293604.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/293/A293604.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | programs/oeis/293/A293604.asm | karttu/loda | 9c3b0fc57b810302220c044a9d17db733c76a598 | [
"Apache-2.0"
] | null | null | null | ; A293604: E.g.f.: exp(x * (1 - x)).
; 1,1,-1,-5,1,41,31,-461,-895,6481,22591,-107029,-604031,1964665,17669471,-37341149,-567425279,627491489,19919950975,-2669742629,-759627879679,-652838174519,31251532771999,59976412450835,-1377594095061119,-4256461892701199
mov $1,1
lpb $0,1
sub $0,1
mul $3,2
add $1,$3
sub $... | 24.25 | 222 | 0.659794 |
7faf8608234c3935cd91a156c3e8670102bfd5df | 1,629 | swift | Swift | QuanLyPhongTro/DangKyVC.swift | VoDangVinh2000/QLyPhongTro_IOS | 566d161ac6f8aedb8df7e716d8eb3d46f7c6c68f | [
"Apache-2.0"
] | null | null | null | QuanLyPhongTro/DangKyVC.swift | VoDangVinh2000/QLyPhongTro_IOS | 566d161ac6f8aedb8df7e716d8eb3d46f7c6c68f | [
"Apache-2.0"
] | null | null | null | QuanLyPhongTro/DangKyVC.swift | VoDangVinh2000/QLyPhongTro_IOS | 566d161ac6f8aedb8df7e716d8eb3d46f7c6c68f | [
"Apache-2.0"
] | null | null | null | //
// DangKyVC.swift
// QuanLyPhongTro
//
// Created by Võ Đăng Vĩnh on 20/04/2021.
// Copyright © 2021 Võ Đăng Vĩnh. All rights reserved.
//
import UIKit
class DangKyVC: UIViewController {
//dk
@IBOutlet weak var tfTenNguoiDung: UITextField!
@IBOutlet weak var tfTenDangNhap: UITextField!
@IBOutle... | 37.883721 | 149 | 0.645181 |
2a0562132c31bee231e46d48fbe0833174e5b168 | 2,661 | swift | Swift | Sources/Extensions/AVCaptureSession+BaseRecorder.swift | Hoord/SCNRecorder | d67853081ae5532313d0124ccead90235f07fc8e | [
"MIT"
] | 124 | 2019-03-24T19:06:40.000Z | 2022-02-22T08:37:27.000Z | Sources/Extensions/AVCaptureSession+BaseRecorder.swift | Hoord/SCNRecorder | d67853081ae5532313d0124ccead90235f07fc8e | [
"MIT"
] | 31 | 2019-05-06T04:32:39.000Z | 2022-01-14T07:58:19.000Z | Sources/Extensions/AVCaptureSession+BaseRecorder.swift | Hoord/SCNRecorder | d67853081ae5532313d0124ccead90235f07fc8e | [
"MIT"
] | 28 | 2019-05-09T15:56:43.000Z | 2022-01-12T13:28:25.000Z | //
// AVCaptureSession+BaseRecorder.swift
// SCNRecorder
//
// Created by Vladislav Grigoryev on 11/03/2019.
// Copyright © 2020 GORA Studio. https://gora.studio
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software... | 33.683544 | 81 | 0.753476 |
653f3d126c9950c17fb6dd172757205541017a4a | 164 | py | Python | solutions/python3/1009.py | sm2774us/amazon_interview_prep_2021 | f580080e4a6b712b0b295bb429bf676eb15668de | [
"MIT"
] | 42 | 2020-08-02T07:03:49.000Z | 2022-03-26T07:50:15.000Z | solutions/python3/1009.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | null | null | null | solutions/python3/1009.py | ajayv13/leetcode | de02576a9503be6054816b7444ccadcc0c31c59d | [
"MIT"
] | 40 | 2020-02-08T02:50:24.000Z | 2022-03-26T15:38:10.000Z | class Solution:
def bitwiseComplement(self, N: int, M = 0, m = 0) -> int:
return N ^ M if M and M >= N else self.bitwiseComplement(N, M + 2 ** m, m + 1) | 54.666667 | 86 | 0.579268 |
402279ff6a098025d045378bc43e3efaa41b2ce7 | 8,528 | py | Python | rrs/admin.py | ardier/layerindex-web | 3622e02603366c53c4b1c9a697a43f78986d127e | [
"MIT"
] | null | null | null | rrs/admin.py | ardier/layerindex-web | 3622e02603366c53c4b1c9a697a43f78986d127e | [
"MIT"
] | null | null | null | rrs/admin.py | ardier/layerindex-web | 3622e02603366c53c4b1c9a697a43f78986d127e | [
"MIT"
] | 1 | 2021-10-06T20:18:07.000Z | 2021-10-06T20:18:07.000Z | # rrs-web - admin interface definitions
#
# Copyright (C) 2014 Intel Corporation
#
# Licensed under the MIT license, see COPYING.MIT for details
#
# SPDX-License-Identifier: MIT
from django.utils.functional import curry
from django.contrib import admin
from django.contrib.admin import DateFieldListFilter
from django ... | 39.119266 | 208 | 0.692542 |
1cc81971bbb858de82dc54fc81689e01560fcb7f | 61 | sql | SQL | db/migrations/000001_init_schema.down.sql | ashwins93/gocrm | 3cb9970b63499316bae93147acabbf21197f13da | [
"MIT"
] | null | null | null | db/migrations/000001_init_schema.down.sql | ashwins93/gocrm | 3cb9970b63499316bae93147acabbf21197f13da | [
"MIT"
] | null | null | null | db/migrations/000001_init_schema.down.sql | ashwins93/gocrm | 3cb9970b63499316bae93147acabbf21197f13da | [
"MIT"
] | null | null | null | DROP TABLE IF EXISTS contacts;
DROP TABLE IF EXISTS accounts; | 30.5 | 30 | 0.819672 |
e937e4f0e4d61e9546553c6cc8a831610b0bd6a4 | 343 | go | Go | mapper/mapper.go | Jinof/my-go-playground | 7cf5dac07378a2ca7e68f10df6e462d6e856f01a | [
"MIT"
] | null | null | null | mapper/mapper.go | Jinof/my-go-playground | 7cf5dac07378a2ca7e68f10df6e462d6e856f01a | [
"MIT"
] | null | null | null | mapper/mapper.go | Jinof/my-go-playground | 7cf5dac07378a2ca7e68f10df6e462d6e856f01a | [
"MIT"
] | null | null | null | package mapper
import "errors"
type Mapper map[int]map[int]int
func (m *Mapper) Add(n1, n2, n3 int) error {
if m.Check(n1, n2) {
return errors.New("value exists")
}
(*m)[n1] = map[int]int{n2: n3}
return nil
}
func (m *Mapper) Check(n1, n2 int) bool {
_, ok := (*m)[n1]
if !ok {
return false
}
_, ok = (*m... | 14.913043 | 44 | 0.597668 |
fa75a39d9b7117c51934d9c6c1f54a5272b39847 | 415 | kt | Kotlin | app/src/main/kotlin/ebisus/monkagiga/kamicompapp/core/modules/BlowfishModule.kt | EbisusBaka/kamicompapp | 2e0840771f3109f2a351b5c031e016c5bfada567 | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/ebisus/monkagiga/kamicompapp/core/modules/BlowfishModule.kt | EbisusBaka/kamicompapp | 2e0840771f3109f2a351b5c031e016c5bfada567 | [
"Apache-2.0"
] | null | null | null | app/src/main/kotlin/ebisus/monkagiga/kamicompapp/core/modules/BlowfishModule.kt | EbisusBaka/kamicompapp | 2e0840771f3109f2a351b5c031e016c5bfada567 | [
"Apache-2.0"
] | null | null | null | package ebisus.monkagiga.kamicompapp.core.modules
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import ebisus.monkagiga.kamicompapp.core.domain.Blowfish
@Module
@InstallIn(SingletonComponent::class)
class BlowfishModule {
private val key... | 23.055556 | 56 | 0.809639 |
f01f136d0d4a9137fd6a7ceea105c26d2d1478ac | 1,098 | py | Python | tests/controllers/controller_with_throttling.py | DmitryKhursevich/winter | 9f3bf462f963059bab1f1bbb309ca57f8a43b46f | [
"MIT"
] | 1 | 2020-10-26T09:48:05.000Z | 2020-10-26T09:48:05.000Z | tests/controllers/controller_with_throttling.py | mikhaillazko/winter | cd4f11aaf28d500aabb59cec369817bfdb5c2fc1 | [
"MIT"
] | null | null | null | tests/controllers/controller_with_throttling.py | mikhaillazko/winter | cd4f11aaf28d500aabb59cec369817bfdb5c2fc1 | [
"MIT"
] | null | null | null | from http import HTTPStatus
import winter.web
from winter.web import ExceptionHandler
from winter.web.exceptions import ThrottleException
class CustomThrottleExceptionHandler(ExceptionHandler):
@winter.response_status(HTTPStatus.TOO_MANY_REQUESTS)
def handle(self, exception: ThrottleException) -> str:
... | 26.780488 | 69 | 0.721311 |
cb124d842c07ca2b2088a50f32998930c9d1b882 | 563 | kt | Kotlin | inappupdatesmanager/src/main/java/github/informramiz/inappupdatesmanager/common/GsonExtension.kt | informramiz/InAppUpdatesManager | 3c802f1066c891ba6391e70271d76e1ff8fdabc8 | [
"Apache-2.0"
] | null | null | null | inappupdatesmanager/src/main/java/github/informramiz/inappupdatesmanager/common/GsonExtension.kt | informramiz/InAppUpdatesManager | 3c802f1066c891ba6391e70271d76e1ff8fdabc8 | [
"Apache-2.0"
] | null | null | null | inappupdatesmanager/src/main/java/github/informramiz/inappupdatesmanager/common/GsonExtension.kt | informramiz/InAppUpdatesManager | 3c802f1066c891ba6391e70271d76e1ff8fdabc8 | [
"Apache-2.0"
] | null | null | null | package github.informramiz.inappupdatesmanager.common
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* Created by Ramiz Raja on 2019-08-04.
*/
internal inline fun <reified T> Gson.fromJson(string: String): T {
//Java does not allow generic types retrieval at runtime
//and because ... | 35.1875 | 89 | 0.738899 |
4d86d2e59394b26aad684e5a32eb24e7f4865e04 | 52,860 | html | HTML | Manpages/htmlman/htmlman3/fts.3.html | kezzyie/buildAPKsApps | e3df7ad4ddb908c6c2214bde5441f75258de00d4 | [
"MIT"
] | 36 | 2019-08-08T14:18:41.000Z | 2022-02-15T17:34:16.000Z | Manpages/htmlman/htmlman3/fts.3.html | kezzyie/buildAPKsApps | e3df7ad4ddb908c6c2214bde5441f75258de00d4 | [
"MIT"
] | 1 | 2018-09-18T04:27:56.000Z | 2018-09-30T13:51:32.000Z | Manpages/htmlman/htmlman3/fts.3.html | kezzyie/buildAPKsApps | e3df7ad4ddb908c6c2214bde5441f75258de00d4 | [
"MIT"
] | 6 | 2017-12-14T19:37:51.000Z | 2019-07-18T01:13:16.000Z | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>fts(3) — Linux manual page... | 45.608283 | 824 | 0.551589 |
56aff2218ffc6caddd3ae226f907c5698d593389 | 732 | go | Go | xutil/env.go | evercyan/brick | 468322f70e3cfdbc28b86d9dc9d48f9fde53c985 | [
"MIT"
] | null | null | null | xutil/env.go | evercyan/brick | 468322f70e3cfdbc28b86d9dc9d48f9fde53c985 | [
"MIT"
] | null | null | null | xutil/env.go | evercyan/brick | 468322f70e3cfdbc28b86d9dc9d48f9fde53c985 | [
"MIT"
] | null | null | null | package xutil
import (
"os"
"runtime"
"strings"
)
// GetEnv ...
func GetEnv(name string, defaultValues ...string) string {
value := os.Getenv(name)
if value == "" && len(defaultValues) > 0 {
value = defaultValues[0]
}
return value
}
// GetEnvMap ...
func GetEnvMap() map[string]string {
envList := os.Enviro... | 16.266667 | 58 | 0.618852 |
c21794f2c99039fb4db96343379b1e44c61db518 | 114 | go | Go | api/transactions/transactions.go | MarkusKuhn/spend_track_go | bb66c4d5d223e9e8b1254e963749dc83e30f9a3f | [
"MIT"
] | null | null | null | api/transactions/transactions.go | MarkusKuhn/spend_track_go | bb66c4d5d223e9e8b1254e963749dc83e30f9a3f | [
"MIT"
] | null | null | null | api/transactions/transactions.go | MarkusKuhn/spend_track_go | bb66c4d5d223e9e8b1254e963749dc83e30f9a3f | [
"MIT"
] | null | null | null | package transactions
func GetTransactions() int8 {
var transactionAmount int8 = 10
return transactionAmount
}
| 14.25 | 32 | 0.798246 |
4468641e0018797833d89d44ea7cae845643178c | 1,993 | swift | Swift | douyin/DYHotVideo/QHAwemeDemo/Modules/Acount/UserCenter/Views/CustomTableView.swift | wjj765110087/CategoryScrollView | 0596ac90738829bf826bd17e2990b3159f98d38c | [
"MIT"
] | null | null | null | douyin/DYHotVideo/QHAwemeDemo/Modules/Acount/UserCenter/Views/CustomTableView.swift | wjj765110087/CategoryScrollView | 0596ac90738829bf826bd17e2990b3159f98d38c | [
"MIT"
] | null | null | null | douyin/DYHotVideo/QHAwemeDemo/Modules/Acount/UserCenter/Views/CustomTableView.swift | wjj765110087/CategoryScrollView | 0596ac90738829bf826bd17e2990b3159f98d38c | [
"MIT"
] | 1 | 2020-06-12T08:35:10.000Z | 2020-06-12T08:35:10.000Z | //
// CustomTableView.swift
// RootTabBarController
//
// Created by mac on 2019/9/28.
// Copyright © 2019年 mac. All rights reserved.
//
import UIKit
class CustomTableView: UITableView {
}
extension CustomTableView: UIGestureRecognizerDelegate {
func gestureRecognizer(_ gestureRecognizer: UIGestureRecogniz... | 32.672131 | 157 | 0.692925 |
5b51b0c36b84ee56a562dac3221d6c612bbebe15 | 947 | h | C | cub/env/concurrent/auto_lock.h | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 548 | 2019-09-27T07:37:47.000Z | 2022-03-31T05:12:38.000Z | cub/env/concurrent/auto_lock.h | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 533 | 2019-09-27T06:30:41.000Z | 2022-03-29T07:34:08.000Z | cub/env/concurrent/auto_lock.h | yuanliya/Adlik | 602074b44064002fc0bb054e17a989a5bcf22e92 | [
"Apache-2.0"
] | 54 | 2019-10-10T02:19:31.000Z | 2021-12-28T03:37:45.000Z | // Copyright 2019 ZTE corporation. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#ifndef H91A7D2E3_7EDF_4994_811B_5168E331A336
#define H91A7D2E3_7EDF_4994_811B_5168E331A336
#include <mutex>
#include "cub/env/concurrent/mutex.h"
namespace cub {
struct AutoLock {
explicit AutoLock(Mutex& mu) : mu(&mu... | 16.910714 | 55 | 0.6283 |
e80b771379feb1f4ccce88ec3bb4f7fe85479262 | 680 | asm | Assembly | mem/dos/16bit/DosUnlockSeg.asm | prokushev/FamilyAPI | c07ecaba70392fe16b0b88e21e773470fa42012a | [
"BSD-3-Clause"
] | 1 | 2021-11-25T14:01:48.000Z | 2021-11-25T14:01:48.000Z | mem/dos/16bit/DosUnlockSeg.asm | prokushev/FamilyAPI | c07ecaba70392fe16b0b88e21e773470fa42012a | [
"BSD-3-Clause"
] | null | null | null | mem/dos/16bit/DosUnlockSeg.asm | prokushev/FamilyAPI | c07ecaba70392fe16b0b88e21e773470fa42012a | [
"BSD-3-Clause"
] | 2 | 2021-11-05T06:48:43.000Z | 2021-12-06T08:07:38.000Z | ;/*!
; @file
;
; @ingroup fapi
;
; @brief DosUnlockSeg DOS wrapper
;
; (c) osFree Project 2022, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushe... | 17.435897 | 69 | 0.717647 |