repo_id stringlengths 6 101 | file_path stringlengths 2 269 | content stringlengths 367 5.14M | size int64 367 5.14M | filename stringlengths 1 248 | ext stringlengths 0 87 | lang stringclasses 88
values | program_lang stringclasses 232
values | doc_type stringclasses 5
values | quality_signal stringlengths 2 1.9k | effective stringclasses 2
values | hit_map stringlengths 2 1.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|
0-5788719150923125/praxis | tests/test_sorting.py | import pytest
import torch
from praxis.sorting import SORTING_REGISTRY
class TestSorting:
"""
Test suite for sorting implementations in the SORTING_REGISTRY.
Tests run automatically for all registered sorting modules.
"""
# Define batch sizes, sequence lengths, and feature dimensions to test
... | 7,903 | test_sorting | py | en | python | code | {"qsc_code_num_words": 951, "qsc_code_num_chars": 7903.0, "qsc_code_mean_word_length": 4.89905363, "qsc_code_frac_words_unique": 0.2807571, "qsc_code_frac_chars_top_2grams": 0.05194248, "qsc_code_frac_chars_top_3grams": 0.04056665, "qsc_code_frac_chars_top_4grams": 0.02403949, "qsc_code_frac_chars_dupe_5grams": 0.28074... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | tests/test_api.py | """Comprehensive test suite for the Praxis API server."""
import json
import os
import sys
import time
import threading
from unittest.mock import Mock, MagicMock, patch
import pytest
import requests
from typing import Generator, Any
# Add parent directory to path for imports
sys.path.insert(0, os.path.dirname(os.path... | 13,766 | test_api | py | en | python | code | {"qsc_code_num_words": 1650, "qsc_code_num_chars": 13766.0, "qsc_code_mean_word_length": 5.10424242, "qsc_code_frac_words_unique": 0.19757576, "qsc_code_frac_chars_top_2grams": 0.02920921, "qsc_code_frac_chars_top_3grams": 0.04488245, "qsc_code_frac_chars_top_4grams": 0.05699359, "qsc_code_frac_chars_dupe_5grams": 0.41... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/TitleScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 15,381 | TitleScene | java | en | java | code | {"qsc_code_num_words": 1731, "qsc_code_num_chars": 15381.0, "qsc_code_mean_word_length": 6.24378972, "qsc_code_frac_words_unique": 0.20277296, "qsc_code_frac_chars_top_2grams": 0.03081051, "qsc_code_frac_chars_top_3grams": 0.08789785, "qsc_code_frac_chars_top_4grams": 0.0977054, "qsc_code_frac_chars_dupe_5grams": 0.351... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AmuletScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 5,690 | AmuletScene | java | en | java | code | {"qsc_code_num_words": 683, "qsc_code_num_chars": 5690.0, "qsc_code_mean_word_length": 5.84480234, "qsc_code_frac_words_unique": 0.31771596, "qsc_code_frac_chars_top_2grams": 0.0495992, "qsc_code_frac_chars_top_3grams": 0.15230461, "qsc_code_frac_chars_top_4grams": 0.16533066, "qsc_code_frac_chars_dupe_5grams": 0.31487... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AboutScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 11,924 | AboutScene | java | en | java | code | {"qsc_code_num_words": 1467, "qsc_code_num_chars": 11924.0, "qsc_code_mean_word_length": 5.33060668, "qsc_code_frac_words_unique": 0.24062713, "qsc_code_frac_chars_top_2grams": 0.01841432, "qsc_code_frac_chars_top_3grams": 0.04373402, "qsc_code_frac_chars_top_4grams": 0.04501279, "qsc_code_frac_chars_dupe_5grams": 0.16... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/HeroSelectScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 25,899 | HeroSelectScene | java | en | java | code | {"qsc_code_num_words": 2845, "qsc_code_num_chars": 25899.0, "qsc_code_mean_word_length": 6.14586995, "qsc_code_frac_words_unique": 0.16239016, "qsc_code_frac_chars_top_2grams": 0.02161853, "qsc_code_frac_chars_top_3grams": 0.05867887, "qsc_code_frac_chars_top_4grams": 0.06542751, "qsc_code_frac_chars_dupe_5grams": 0.31... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | .all-contributorsrc | {
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributors": [
{
"login": "wuhan005",
"name": "E99p1ant",
"avatar_url": "https://avatars3.githubusercontent.com/u/12731778?v=4",
"profile": "https://github.com/wuhan005",
"contributions": [
"code",
... | 1,088 | .all-contributorsrc | all-contributorsrc | en | json | data | {"qsc_code_num_words": 91, "qsc_code_num_chars": 1088.0, "qsc_code_mean_word_length": 6.26373626, "qsc_code_frac_words_unique": 0.50549451, "qsc_code_frac_chars_top_2grams": 0.07719298, "qsc_code_frac_chars_top_3grams": 0.09824561, "qsc_code_frac_chars_top_4grams": 0.07368421, "qsc_code_frac_chars_dupe_5grams": 0.27192... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
0-5788719150923125/praxis | tests/test_syntaxes_attention.py | import itertools
import time
from typing import List, Tuple, Dict
import pytest
import torch
import torch.nn as nn
from praxis import PraxisConfig
from praxis.attention.syntaxes import SyntaxesAttention
from praxis.attention.components import VanillaMHA
class TestSyntaxesAttention:
"""Fast test suite for Syntax... | 13,887 | test_syntaxes_attention | py | en | python | code | {"qsc_code_num_words": 1623, "qsc_code_num_chars": 13887.0, "qsc_code_mean_word_length": 5.38200863, "qsc_code_frac_words_unique": 0.17436845, "qsc_code_frac_chars_top_2grams": 0.02816256, "qsc_code_frac_chars_top_3grams": 0.03319977, "qsc_code_frac_chars_top_4grams": 0.04808243, "qsc_code_frac_chars_dupe_5grams": 0.32... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
04zhujunjie/JJFontFit | JJFontFit/JJFontFit.h | //
// JJFontFit.h
// JJFontFit
//
// Created by JMZiXun on 2018/4/16.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
IB_DESIGNABLE
@interface JJFontFit : NSObject
+ (instancetype)shareFontFit;
/**
文本自适应宽度,默认值NO,只适用UILabel和UIButton字体
适配UILable或者UIBu... | 2,817 | JJFontFit | h | zh | c | code | {"qsc_code_num_words": 515, "qsc_code_num_chars": 2817.0, "qsc_code_mean_word_length": 4.21165049, "qsc_code_frac_words_unique": 0.3592233, "qsc_code_frac_chars_top_2grams": 0.01475334, "qsc_code_frac_chars_top_3grams": 0.01106501, "qsc_code_frac_chars_top_4grams": 0.01383126, "qsc_code_frac_chars_dupe_5grams": 0.27385... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
04zhujunjie/JJFontFit | JJFontFit/JJFontFit.m | //
// JJFontFit.m
// JJFontFit
//
// Created by JMZiXun on 2018/4/16.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import "JJFontFit.h"
#import <objc/runtime.h>
#define JJ_SCREEN_Width [UIScreen mainScreen].bounds.size.width
#define JJ_LOAD(block) \
+(void)load{\
static dispatch_once_t onceToken;\
disp... | 15,328 | JJFontFit | m | en | limbo | code | {"qsc_code_num_words": 1279, "qsc_code_num_chars": 15328.0, "qsc_code_mean_word_length": 7.73885848, "qsc_code_frac_words_unique": 0.17513683, "qsc_code_frac_chars_top_2grams": 0.04000808, "qsc_code_frac_chars_top_3grams": 0.04415033, "qsc_code_frac_chars_top_4grams": 0.03455243, "qsc_code_frac_chars_dupe_5grams": 0.37... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/glu.py | import math
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
import torch
import torch.nn as nn
from torch import Tensor
from praxis.activations import ACT2CLS, ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class GatedLinearMLP(nn.Mod... | 1,954 | glu | py | en | python | code | {"qsc_code_num_words": 227, "qsc_code_num_chars": 1954.0, "qsc_code_mean_word_length": 5.31277533, "qsc_code_frac_words_unique": 0.44052863, "qsc_code_frac_chars_top_2grams": 0.026534, "qsc_code_frac_chars_top_3grams": 0.039801, "qsc_code_frac_chars_top_4grams": 0.026534, "qsc_code_frac_chars_dupe_5grams": 0.10779436, ... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/poly.py | import math
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
import torch
import torch.nn as nn
from torch import Tensor
from praxis.activations import ACT2CLS, ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class PolynomialExpansionML... | 3,423 | poly | py | en | python | code | {"qsc_code_num_words": 379, "qsc_code_num_chars": 3423.0, "qsc_code_mean_word_length": 5.45382586, "qsc_code_frac_words_unique": 0.39577836, "qsc_code_frac_chars_top_2grams": 0.03193033, "qsc_code_frac_chars_top_3grams": 0.04063861, "qsc_code_frac_chars_top_4grams": 0.01548137, "qsc_code_frac_chars_dupe_5grams": 0.1799... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/mlp.py | import math
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
import torch
import torch.nn as nn
from torch import Tensor
from praxis.activations import ACT2CLS, ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class MultiLayerPerceptron(... | 1,964 | mlp | py | en | python | code | {"qsc_code_num_words": 196, "qsc_code_num_chars": 1964.0, "qsc_code_mean_word_length": 5.69897959, "qsc_code_frac_words_unique": 0.42857143, "qsc_code_frac_chars_top_2grams": 0.05013429, "qsc_code_frac_chars_top_3grams": 0.02506714, "qsc_code_frac_chars_top_4grams": 0.03222919, "qsc_code_frac_chars_dupe_5grams": 0.1163... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v0_1_X_Changes.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 6,613 | v0_1_X_Changes | java | en | java | code | {"qsc_code_num_words": 964, "qsc_code_num_chars": 6613.0, "qsc_code_mean_word_length": 4.98651452, "qsc_code_frac_words_unique": 0.38174274, "qsc_code_frac_chars_top_2grams": 0.00665696, "qsc_code_frac_chars_top_3grams": 0.03162055, "qsc_code_frac_chars_top_4grams": 0.05159143, "qsc_code_frac_chars_dupe_5grams": 0.3045... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/WndChanges.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,516 | WndChanges | java | en | java | code | {"qsc_code_num_words": 196, "qsc_code_num_chars": 1516.0, "qsc_code_mean_word_length": 5.84183673, "qsc_code_frac_words_unique": 0.59693878, "qsc_code_frac_chars_top_2grams": 0.03930131, "qsc_code_frac_chars_top_3grams": 0.03406114, "qsc_code_frac_chars_top_4grams": 0.04978166, "qsc_code_frac_chars_dupe_5grams": 0.0716... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/FrozenCarpaccio.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,807 | FrozenCarpaccio | java | en | java | code | {"qsc_code_num_words": 339, "qsc_code_num_chars": 2807.0, "qsc_code_mean_word_length": 6.26843658, "qsc_code_frac_words_unique": 0.46312684, "qsc_code_frac_chars_top_2grams": 0.096, "qsc_code_frac_chars_top_3grams": 0.21458824, "qsc_code_frac_chars_top_4grams": 0.22776471, "qsc_code_frac_chars_dupe_5grams": 0.28141176,... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/1300.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1300</id><url>http://www.chinanews.com/ga/2020/04-02/9146041.shtml</url><title>外交部驻港公署发言人正告英政客:停止混淆是非、颠倒黑白</title><datetime>2020-4-2 22:39:00</datetime><body> 中新社香港4月2日电针对反中乱港顽固分子、“香港观察”发起人罗杰斯与英国政客公然以书信一唱一和,就中方针对美方打压中国媒体驻美机构行为采取反制措施说三道四,中国外交部驻香港特别行政区特派员公署(外交部驻港公署)发言人2日表示强... | 635 | 1300 | xml | zh | xml | data | {"qsc_code_num_words": 223, "qsc_code_num_chars": 635.0, "qsc_code_mean_word_length": 2.38565022, "qsc_code_frac_words_unique": 0.69955157, "qsc_code_frac_chars_top_2grams": 0.02255639, "qsc_code_frac_chars_top_3grams": 0.02631579, "qsc_code_frac_chars_top_4grams": 0.03759398, "qsc_code_frac_chars_dupe_5grams": 0.03759... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/CellSelector.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 14,181 | CellSelector | java | en | java | code | {"qsc_code_num_words": 1654, "qsc_code_num_chars": 14181.0, "qsc_code_mean_word_length": 5.7261185, "qsc_code_frac_words_unique": 0.22128174, "qsc_code_frac_chars_top_2grams": 0.03431528, "qsc_code_frac_chars_top_3grams": 0.02196178, "qsc_code_frac_chars_top_4grams": 0.03716609, "qsc_code_frac_chars_dupe_5grams": 0.229... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | tests/test_tokenizers.py | import itertools
from typing import List
import pytest
import torch
from praxis.tokenizers.byte_level import ByteLevelTokenizer
from praxis.tokenizers import create_tokenizer
# Only test ByteLevelTokenizer directly, StandardTokenizer needs to be loaded
TOKENIZER_TYPES = [ByteLevelTokenizer]
@pytest.fixture(params=... | 7,768 | test_tokenizers | py | en | python | code | {"qsc_code_num_words": 910, "qsc_code_num_chars": 7768.0, "qsc_code_mean_word_length": 5.59450549, "qsc_code_frac_words_unique": 0.17032967, "qsc_code_frac_chars_top_2grams": 0.07660577, "qsc_code_frac_chars_top_3grams": 0.07464152, "qsc_code_frac_chars_top_4grams": 0.02828521, "qsc_code_frac_chars_dupe_5grams": 0.3997... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | tests/test_embeddings.py | """Tests for praxis.embeddings module."""
import pytest
import torch
import torch.nn as nn
from dataclasses import dataclass
from typing import Optional
from praxis.embeddings import EMBEDDING_REGISTRY
from praxis.embeddings.positional import PositionalEmbedding
from praxis.embeddings.projected import ProjectedEmbedd... | 12,619 | test_embeddings | py | en | python | code | {"qsc_code_num_words": 1467, "qsc_code_num_chars": 12619.0, "qsc_code_mean_word_length": 5.53783231, "qsc_code_frac_words_unique": 0.15610089, "qsc_code_frac_chars_top_2grams": 0.05908419, "qsc_code_frac_chars_top_3grams": 0.038774, "qsc_code_frac_chars_top_4grams": 0.04209749, "qsc_code_frac_chars_dupe_5grams": 0.6015... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/506.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>506</id><url>http://www.chinanews.com/gn/2020/03-31/9143458.shtml</url><title>焦雅辉:主要采取五方面措施做好重症和危重症患者救治</title><datetime>2020-3-31 20:22:00</datetime><body> (抗击新冠肺炎)焦雅辉:主要采取五方面措施做好重症和危重症患者救治
中新社武汉3月31日电(记者梁婷)国务院新闻办公室31日在武汉举行新闻发布会,介绍中央指导组指导组织疫情防控和医疗救治工作进展。国家卫生健康委医政医管局监察专员... | 1,043 | 506 | xml | zh | xml | data | {"qsc_code_num_words": 422, "qsc_code_num_chars": 1043.0, "qsc_code_mean_word_length": 2.09478673, "qsc_code_frac_words_unique": 0.54265403, "qsc_code_frac_chars_top_2grams": 0.03959276, "qsc_code_frac_chars_top_3grams": 0.04072398, "qsc_code_frac_chars_top_4grams": 0.05429864, "qsc_code_frac_chars_dupe_5grams": 0.0667... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1801.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1801</id><url>http://www.chinanews.com/gj/2020/04-03/9147228.shtml</url><title>中亚国家经济受疫情冲击明显 吉尔吉斯斯坦或再现负增长</title><datetime>2020-4-3 21:31:00</datetime><body> (抗击新冠肺炎)中亚国家经济受疫情冲击明显吉尔吉斯斯坦或再现负增长
中新社努尔苏丹4月3日电(记者文龙杰)进入第二季度以来,新冠肺炎疫情对中亚国家经济的影响逐渐明显。哈萨克斯坦等国家对国内生产总值的预期进行了调整。
2日,... | 987 | 1801 | xml | zh | xml | data | {"qsc_code_num_words": 381, "qsc_code_num_chars": 987.0, "qsc_code_mean_word_length": 2.18110236, "qsc_code_frac_words_unique": 0.58530184, "qsc_code_frac_chars_top_2grams": 0.02166065, "qsc_code_frac_chars_top_3grams": 0.01684717, "qsc_code_frac_chars_top_4grams": 0.02166065, "qsc_code_frac_chars_dupe_5grams": 0.07460... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/StartScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 10,115 | StartScene | java | en | java | code | {"qsc_code_num_words": 1171, "qsc_code_num_chars": 10115.0, "qsc_code_mean_word_length": 5.7412468, "qsc_code_frac_words_unique": 0.24081981, "qsc_code_frac_chars_top_2grams": 0.03078983, "qsc_code_frac_chars_top_3grams": 0.10174029, "qsc_code_frac_chars_top_4grams": 0.11125985, "qsc_code_frac_chars_dupe_5grams": 0.197... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | tests/test_determinism.py | import random
import numpy as np
import pytest
import torch
from transformers import AutoTokenizer
from praxis.data import (
HUGGINGFACE_DATASETS,
HuggingfaceDataset,
InterleaveDataManager,
text_formatter,
)
from praxis.controllers import CONTROLLER_REGISTRY
from praxis.controllers.base import BaseCon... | 13,975 | test_determinism | py | en | python | code | {"qsc_code_num_words": 1786, "qsc_code_num_chars": 13975.0, "qsc_code_mean_word_length": 4.98432251, "qsc_code_frac_words_unique": 0.14613662, "qsc_code_frac_chars_top_2grams": 0.03100427, "qsc_code_frac_chars_top_3grams": 0.03774433, "qsc_code_frac_chars_top_4grams": 0.02201752, "qsc_code_frac_chars_dupe_5grams": 0.55... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/2402.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2402</id><url>http://www.chinanews.com/gj/2020/04-04/9147464.shtml</url><title>全球疫情简报:全球确诊超百万 默克尔结束隔离 </title><datetime>2020-4-4 09:49:00</datetime><body> 新华社北京4月4日电3日全球疫情简报:
全球数据
世界卫生组织总干事谭德塞3日在例行记者会上说,世卫组织的新冠疫情数据显示,全球确诊病例超100万例,死亡病例超5万例。
美国:确诊病例257773例,死亡病例6586例。(截至美... | 842 | 2402 | xml | zh | xml | data | {"qsc_code_num_words": 315, "qsc_code_num_chars": 842.0, "qsc_code_mean_word_length": 2.2, "qsc_code_frac_words_unique": 0.61269841, "qsc_code_frac_chars_top_2grams": 0.03463203, "qsc_code_frac_chars_top_3grams": 0.03607504, "qsc_code_frac_chars_top_4grams": 0.04040404, "qsc_code_frac_chars_dupe_5grams": 0.03896104, "q... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
0-5788719150923125/praxis | praxis/cli/__init__.py | """Praxis CLI system - modular command-line interface."""
import sys
from .core import (
DEFAULT_EXCLUDE_FROM_HASH,
CustomHelpFormatter,
compute_args_hash,
create_base_parser,
log_command,
)
from .groups import OtherGroup, add_all_argument_groups, process_all_arguments
from .loaders import Environ... | 4,848 | __init__ | py | en | python | code | {"qsc_code_num_words": 552, "qsc_code_num_chars": 4848.0, "qsc_code_mean_word_length": 6.22282609, "qsc_code_frac_words_unique": 0.26811594, "qsc_code_frac_chars_top_2grams": 0.04949054, "qsc_code_frac_chars_top_3grams": 0.03668122, "qsc_code_frac_chars_top_4grams": 0.04716157, "qsc_code_frac_chars_dupe_5grams": 0.1671... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/functional/alpha_relu.py | from typing import Any, Optional, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from torch.autograd import Function
class AlphaReLUFunction(Function):
"""
An optimized version of α-ReLU, which introduces sparsity into the
softmax operation.
h... | 5,084 | alpha_relu | py | en | python | code | {"qsc_code_num_words": 735, "qsc_code_num_chars": 5084.0, "qsc_code_mean_word_length": 4.22993197, "qsc_code_frac_words_unique": 0.30884354, "qsc_code_frac_chars_top_2grams": 0.01350917, "qsc_code_frac_chars_top_3grams": 0.01929881, "qsc_code_frac_chars_top_4grams": 0.01254423, "qsc_code_frac_chars_dupe_5grams": 0.0681... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/functional/gumbel_sigmoid.py | import torch
from torch import Tensor
from torch.distributions.gumbel import Gumbel
def gumbel_sigmoid(
logits: Tensor, tau: float = 1, hard: bool = False, threshold: float = 0.5
) -> Tensor:
"""
Samples from the Gumbel-Sigmoid distribution with an optional hard gate at the selected threshold.
Gumbel... | 1,492 | gumbel_sigmoid | py | en | python | code | {"qsc_code_num_words": 208, "qsc_code_num_chars": 1492.0, "qsc_code_mean_word_length": 4.70673077, "qsc_code_frac_words_unique": 0.48076923, "qsc_code_frac_chars_top_2grams": 0.06639428, "qsc_code_frac_chars_top_3grams": 0.02655771, "qsc_code_frac_chars_top_4grams": 0.04085802, "qsc_code_frac_chars_dupe_5grams": 0.0868... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/functional/alpha_entmax.py | from typing import Any, Optional, Tuple, Union
import torch
import torch.nn as nn
from torch import Tensor
from torch.autograd import Function
def _make_ix_like(input: Tensor, dim: int = 0) -> Tensor:
"""
Creates indices tensor for entmax calculation.
Args:
input: Input tensor
dim: Dimen... | 4,128 | alpha_entmax | py | en | python | code | {"qsc_code_num_words": 551, "qsc_code_num_chars": 4128.0, "qsc_code_mean_word_length": 4.41197822, "qsc_code_frac_words_unique": 0.29945554, "qsc_code_frac_chars_top_2grams": 0.03167421, "qsc_code_frac_chars_top_3grams": 0.02879473, "qsc_code_frac_chars_top_4grams": 0.02097902, "qsc_code_frac_chars_dupe_5grams": 0.1406... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Food.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 4,067 | Food | java | en | java | code | {"qsc_code_num_words": 476, "qsc_code_num_chars": 4067.0, "qsc_code_mean_word_length": 6.38445378, "qsc_code_frac_words_unique": 0.41596639, "qsc_code_frac_chars_top_2grams": 0.10069102, "qsc_code_frac_chars_top_3grams": 0.22507404, "qsc_code_frac_chars_top_4grams": 0.2461336, "qsc_code_frac_chars_dupe_5grams": 0.19249... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/Pasty.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 7,430 | Pasty | java | en | java | code | {"qsc_code_num_words": 879, "qsc_code_num_chars": 7430.0, "qsc_code_mean_word_length": 6.05346985, "qsc_code_frac_words_unique": 0.29351536, "qsc_code_frac_chars_top_2grams": 0.06389776, "qsc_code_frac_chars_top_3grams": 0.1428303, "qsc_code_frac_chars_top_4grams": 0.15711332, "qsc_code_frac_chars_dupe_5grams": 0.40011... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/MeatPie.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,794 | MeatPie | java | en | java | code | {"qsc_code_num_words": 320, "qsc_code_num_chars": 2794.0, "qsc_code_mean_word_length": 6.309375, "qsc_code_frac_words_unique": 0.45, "qsc_code_frac_chars_top_2grams": 0.06736008, "qsc_code_frac_chars_top_3grams": 0.15056959, "qsc_code_frac_chars_top_4grams": 0.1307578, "qsc_code_frac_chars_dupe_5grams": 0.14710253, "qs... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/987.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>987</id><url>http://www.chinanews.com/sh/2020/04-01/9144531.shtml</url><title>全力以“复”正当时</title><datetime>2020-4-1 18:22:00</datetime><body> 全力以“复”正当时
春光明媚,大江南北工人辛勤劳作、车间灯火通明、机器隆隆鸣响……在做好防疫工作同时,全国各地紧抓时机有序复工复产,生产建设热火朝天。
29日,习近平总书记前往浙江宁波舟山港穿山港区码头、北仑大碶高端汽配模具园区,了解港口和园区企业复工复产情况... | 1,408 | 987 | xml | zh | xml | data | {"qsc_code_num_words": 589, "qsc_code_num_chars": 1408.0, "qsc_code_mean_word_length": 2.04584041, "qsc_code_frac_words_unique": 0.64685908, "qsc_code_frac_chars_top_2grams": 0.02987552, "qsc_code_frac_chars_top_3grams": 0.006639, "qsc_code_frac_chars_top_4grams": 0.00829876, "qsc_code_frac_chars_dupe_5grams": 0.011618... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/935.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>935</id><url>http://www.chinanews.com/gn/2020/04-01/9144651.shtml</url><title>中央指导组:加快新冠肺炎疫苗、治疗技术和药物科研攻关</title><datetime>2020-4-1 20:01:00</datetime><body> 为深入贯彻习近平总书记重要指示精神,落实中央应对疫情工作领导小组部署,中共中央政治局委员、国务院副总理、中央指导组组长孙春兰1日召开抗疫一线专家院士和科研工作者座谈会,听取新冠肺炎疫苗研发、治疗技术和药物科研攻关等进展情况汇报,强... | 772 | 935 | xml | zh | xml | data | {"qsc_code_num_words": 296, "qsc_code_num_chars": 772.0, "qsc_code_mean_word_length": 2.19932432, "qsc_code_frac_words_unique": 0.68243243, "qsc_code_frac_chars_top_2grams": 0.02457757, "qsc_code_frac_chars_top_3grams": 0.01843318, "qsc_code_frac_chars_top_4grams": 0.02150538, "qsc_code_frac_chars_dupe_5grams": 0.06144... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1560.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1560</id><url>http://www.chinanews.com/gj/2020/04-02/9145395.shtml</url><title>中国赴菲律宾抗疫医疗专家组近日将启程</title><datetime>2020-4-2 14:30:00</datetime><body> (抗击新冠肺炎)中国赴菲律宾抗疫医疗专家组近日将启程
中新网马尼拉4月2日电(记者关向东)中国驻菲律宾使馆4月2日发布消息:中国赴菲律宾抗疫医疗专家组已组成,近日将启程。
中国驻菲律宾大使黄溪连3月30日与菲律宾卫生部长杜克通电话表示,应菲... | 810 | 1560 | xml | zh | xml | data | {"qsc_code_num_words": 293, "qsc_code_num_chars": 810.0, "qsc_code_mean_word_length": 2.34129693, "qsc_code_frac_words_unique": 0.59044369, "qsc_code_frac_chars_top_2grams": 0.04373178, "qsc_code_frac_chars_top_3grams": 0.05102041, "qsc_code_frac_chars_top_4grams": 0.03498542, "qsc_code_frac_chars_dupe_5grams": 0.14431... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1485.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1485</id><url>http://www.chinanews.com/gn/2020/04-02/9145584.shtml</url><title>福建泉州筹集933箱防疫物资驰援菲律宾 总价值逾500万元</title><datetime>2020-4-2 16:28:00</datetime><body> 中新网泉州4月2日电(孙虹吴冠标)呼吸机、N95口罩、医用防护服、护目镜、测温仪……4月2日,福建泉州筹集的933箱防疫物资“整装待发”,将捐赠给菲律宾华社救灾基金会、菲律宾崇仁医院以及各相关团体用于疫情防控。
“虽然远... | 1,156 | 1485 | xml | zh | xml | data | {"qsc_code_num_words": 461, "qsc_code_num_chars": 1156.0, "qsc_code_mean_word_length": 2.13665944, "qsc_code_frac_words_unique": 0.65509761, "qsc_code_frac_chars_top_2grams": 0.02436548, "qsc_code_frac_chars_top_3grams": 0.03045685, "qsc_code_frac_chars_top_4grams": 0.01624365, "qsc_code_frac_chars_dupe_5grams": 0.0, "... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
0-5788719150923125/praxis | static/app.js | // Praxis Chat - Main Application JavaScript
// ==================== Global Variables ====================
let currentTheme = 'light';
let conversationHistory = [];
let generationParams = {
max_new_tokens: 256,
temperature: 0.5,
repetition_penalty: 1.2,
do_sample: true,
use_cache: false
};
let debu... | 75,565 | app | js | en | javascript | code | {"qsc_code_num_words": 6429, "qsc_code_num_chars": 75565.0, "qsc_code_mean_word_length": 6.79670244, "qsc_code_frac_words_unique": 0.17841033, "qsc_code_frac_chars_top_2grams": 0.03927133, "qsc_code_frac_chars_top_3grams": 0.00199103, "qsc_code_frac_chars_top_4grams": 0.00201391, "qsc_code_frac_chars_dupe_5grams": 0.26... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/TorchHalo.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,830 | TorchHalo | java | en | java | code | {"qsc_code_num_words": 243, "qsc_code_num_chars": 1830.0, "qsc_code_mean_word_length": 5.11934156, "qsc_code_frac_words_unique": 0.52263374, "qsc_code_frac_chars_top_2grams": 0.02893891, "qsc_code_frac_chars_top_3grams": 0.03135048, "qsc_code_frac_chars_top_4grams": 0.04581994, "qsc_code_frac_chars_dupe_5grams": 0.1205... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/IceBlock.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,851 | IceBlock | java | en | java | code | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1851.0, "qsc_code_mean_word_length": 5.27309237, "qsc_code_frac_words_unique": 0.53815261, "qsc_code_frac_chars_top_2grams": 0.03427266, "qsc_code_frac_chars_top_3grams": 0.02970297, "qsc_code_frac_chars_top_4grams": 0.04341203, "qsc_code_frac_chars_dupe_5grams": 0.0959... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/effects/Effects.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,963 | Effects | java | en | java | code | {"qsc_code_num_words": 284, "qsc_code_num_chars": 1963.0, "qsc_code_mean_word_length": 4.74647887, "qsc_code_frac_words_unique": 0.44014085, "qsc_code_frac_chars_top_2grams": 0.06008902, "qsc_code_frac_chars_top_3grams": 0.08679525, "qsc_code_frac_chars_top_4grams": 0.13353116, "qsc_code_frac_chars_dupe_5grams": 0.2574... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/2058.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2058</id><url>http://www.chinanews.com/hr/2020/04-03/9146499.shtml</url><title>意大利华人男孩向当地医院捐赠防疫物资获赞</title><datetime>2020-4-3 12:03:00</datetime><body> 中新网4月3日电据意大利《新华联合时报》微信公众号消息,一名生活在意大利那不勒斯的华人因为给当地捐献防疫物资的善举而被当地媒体报道。
这名华人男孩名为Yuan某,今年22岁,籍贯中国江苏省扬州市。他自2019年开始生活在那不勒斯,并就读于... | 605 | 2058 | xml | zh | xml | data | {"qsc_code_num_words": 226, "qsc_code_num_chars": 605.0, "qsc_code_mean_word_length": 2.22123894, "qsc_code_frac_words_unique": 0.66371681, "qsc_code_frac_chars_top_2grams": 0.03984064, "qsc_code_frac_chars_top_3grams": 0.0, "qsc_code_frac_chars_top_4grams": 0.0, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_c... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/remains/CloakScrap.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,521 | CloakScrap | java | en | java | code | {"qsc_code_num_words": 193, "qsc_code_num_chars": 1521.0, "qsc_code_mean_word_length": 6.18134715, "qsc_code_frac_words_unique": 0.60103627, "qsc_code_frac_chars_top_2grams": 0.08549874, "qsc_code_frac_chars_top_3grams": 0.19111484, "qsc_code_frac_chars_top_4grams": 0.18440905, "qsc_code_frac_chars_dupe_5grams": 0.1525... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/auth/team/team.go | package team
import (
"strconv"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/thanhpk/randstr"
"github.com/vidar-team/Cardinal/internal/dbold"
"github.com/vidar-team/Cardinal/internal/locales"
"github.com/vidar-team/Cardinal/internal/logger"
"github.com/vidar-team/Cardinal/internal/utils"
)... | 8,493 | team | go | en | go | code | {"qsc_code_num_words": 1135, "qsc_code_num_chars": 8493.0, "qsc_code_mean_word_length": 5.05991189, "qsc_code_frac_words_unique": 0.15859031, "qsc_code_frac_chars_top_2grams": 0.05363051, "qsc_code_frac_chars_top_3grams": 0.05432701, "qsc_code_frac_chars_top_4grams": 0.05885426, "qsc_code_frac_chars_dupe_5grams": 0.582... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/attention/mla.py | from typing import Tuple
import torch
import torch.nn as nn
from torch import Tensor
class MLAQuery(nn.Module):
"""
Multi-head Latent Attention query projection with compression.
Based on DeepSeek-V2: https://arxiv.org/abs/2405.04434
Note: The DeepSeek-V2 implementation includes additional features ... | 5,802 | mla | py | en | python | code | {"qsc_code_num_words": 815, "qsc_code_num_chars": 5802.0, "qsc_code_mean_word_length": 4.24294479, "qsc_code_frac_words_unique": 0.19263804, "qsc_code_frac_chars_top_2grams": 0.04048583, "qsc_code_frac_chars_top_3grams": 0.03181029, "qsc_code_frac_chars_top_4grams": 0.03903991, "qsc_code_frac_chars_dupe_5grams": 0.6732... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/155.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>155</id><url>http://www.chinanews.com/ga/2020/03-30/9142181.shtml</url><title>受疫情影响 澳门2月进口额创9年来单月新低</title><datetime>2020-3-30 16:51:00</datetime><body> 受疫情影响澳门2月进口额创9年来单月新低
新华社澳门3月30日电(记者郭鑫)澳门特区政府统计暨普查局30日公布的数据显示,受新冠肺炎疫情影响,今年2月澳门经济活动减少,进口货物需求下降,进口货值按年下跌30.3%至38.7亿元(澳门元,... | 737 | 155 | xml | zh | xml | data | {"qsc_code_num_words": 286, "qsc_code_num_chars": 737.0, "qsc_code_mean_word_length": 2.03846154, "qsc_code_frac_words_unique": 0.53146853, "qsc_code_frac_chars_top_2grams": 0.01715266, "qsc_code_frac_chars_top_3grams": 0.02572899, "qsc_code_frac_chars_top_4grams": 0.02401372, "qsc_code_frac_chars_dupe_5grams": 0.06861... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/remains/BrokenHilt.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,496 | BrokenHilt | java | en | java | code | {"qsc_code_num_words": 199, "qsc_code_num_chars": 1496.0, "qsc_code_mean_word_length": 5.84924623, "qsc_code_frac_words_unique": 0.59296482, "qsc_code_frac_chars_top_2grams": 0.08762887, "qsc_code_frac_chars_top_3grams": 0.19587629, "qsc_code_frac_chars_top_4grams": 0.18900344, "qsc_code_frac_chars_dupe_5grams": 0.2079... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/remains/BrokenStaff.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,429 | BrokenStaff | java | en | java | code | {"qsc_code_num_words": 186, "qsc_code_num_chars": 1429.0, "qsc_code_mean_word_length": 5.96236559, "qsc_code_frac_words_unique": 0.61290323, "qsc_code_frac_chars_top_2grams": 0.07664563, "qsc_code_frac_chars_top_3grams": 0.17132552, "qsc_code_frac_chars_top_4grams": 0.15870153, "qsc_code_frac_chars_dupe_5grams": 0.0739... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/remains/RemainsItem.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,367 | RemainsItem | java | en | java | code | {"qsc_code_num_words": 298, "qsc_code_num_chars": 2367.0, "qsc_code_mean_word_length": 5.81543624, "qsc_code_frac_words_unique": 0.51342282, "qsc_code_frac_chars_top_2grams": 0.05885747, "qsc_code_frac_chars_top_3grams": 0.13156376, "qsc_code_frac_chars_top_4grams": 0.12694749, "qsc_code_frac_chars_dupe_5grams": 0.1384... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/db/db.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"fmt"
"time"
"github.com/pkg/errors"
"gorm.io/driver/mysql"
"gorm.io/driver/postgres"
"gorm.io/gorm"
log "unknwon.dev/clog/v2"
"githu... | 2,141 | db | go | en | go | code | {"qsc_code_num_words": 265, "qsc_code_num_chars": 2141.0, "qsc_code_mean_word_length": 5.68301887, "qsc_code_frac_words_unique": 0.50188679, "qsc_code_frac_chars_top_2grams": 0.10358566, "qsc_code_frac_chars_top_3grams": 0.01593625, "qsc_code_frac_chars_top_4grams": 0.02390438, "qsc_code_frac_chars_dupe_5grams": 0.1859... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/db/managers.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"crypto/sha256"
"crypto/subtle"
"fmt"
"github.com/pkg/errors"
"github.com/thanhpk/randstr"
"golang.org/x/crypto/pbkdf2"
"gor... | 5,260 | managers | go | en | go | code | {"qsc_code_num_words": 655, "qsc_code_num_chars": 5260.0, "qsc_code_mean_word_length": 5.87175573, "qsc_code_frac_words_unique": 0.23664122, "qsc_code_frac_chars_top_2grams": 0.04160166, "qsc_code_frac_chars_top_3grams": 0.07072283, "qsc_code_frac_chars_top_4grams": 0.03952158, "qsc_code_frac_chars_dupe_5grams": 0.3653... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
04zhujunjie/JJFontFit | JJFontFitExample/Example/JJExampleTableViewController.m | //
// JJExampleTableViewController.m
// JJFontFit
//
// Created by JMZiXun on 2018/4/18.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import "JJExampleTableViewController.h"
#import "JJFontFit.h"
#import "_UIJJLabel.h"
#import "JJLabel.h"
@interface JJExampleTableViewController ()
@property (weak, nonato... | 1,184 | JJExampleTableViewController | m | en | limbo | code | {"qsc_code_num_words": 123, "qsc_code_num_chars": 1184.0, "qsc_code_mean_word_length": 7.04065041, "qsc_code_frac_words_unique": 0.65853659, "qsc_code_frac_chars_top_2grams": 0.02424942, "qsc_code_frac_chars_top_3grams": 0.03926097, "qsc_code_frac_chars_top_4grams": 0.04618938, "qsc_code_frac_chars_dupe_5grams": 0.0, "... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/attention/pk_attention.py | from math import ceil, floor, sqrt
from typing import Any, List, Optional, Tuple, TypeVar, Union
import torch
import torch.nn.functional as F
from torch import Tensor, nn
from torch.nn import Module, ModuleList
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
def exists(v: Any) -> bool:
return v is not No... | 9,668 | pk_attention | py | en | python | code | {"qsc_code_num_words": 1326, "qsc_code_num_chars": 9668.0, "qsc_code_mean_word_length": 4.2413273, "qsc_code_frac_words_unique": 0.18401207, "qsc_code_frac_chars_top_2grams": 0.03129445, "qsc_code_frac_chars_top_3grams": 0.02133713, "qsc_code_frac_chars_top_4grams": 0.01866999, "qsc_code_frac_chars_dupe_5grams": 0.1895... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/db/score.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"github.com/pkg/errors"
"gorm.io/gorm"
"github.com/vidar-team/Cardinal/internal/conf"
)
var _ ScoresStore = (*scores)(nil)
//... | 7,263 | score | go | en | go | code | {"qsc_code_num_words": 851, "qsc_code_num_chars": 7263.0, "qsc_code_mean_word_length": 5.88366627, "qsc_code_frac_words_unique": 0.19388954, "qsc_code_frac_chars_top_2grams": 0.05512283, "qsc_code_frac_chars_top_3grams": 0.05272618, "qsc_code_frac_chars_top_4grams": 0.07908928, "qsc_code_frac_chars_dupe_5grams": 0.4759... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/livelog/stream.go | package livelog
import (
"context"
"sync"
"time"
)
// The max size that the content can be.
const bufferSize = 5000
// Line is a single line of the log.
type Line struct {
Type string `json:"Type"`
Message interface{} `json:"Message"`
Timestamp int64 `json:"Time"`
}
// NewLine creates a line... | 1,502 | stream | go | en | go | code | {"qsc_code_num_words": 202, "qsc_code_num_chars": 1502.0, "qsc_code_mean_word_length": 4.65346535, "qsc_code_frac_words_unique": 0.35148515, "qsc_code_frac_chars_top_2grams": 0.01702128, "qsc_code_frac_chars_top_3grams": 0.03510638, "qsc_code_frac_chars_top_4grams": 0.04680851, "qsc_code_frac_chars_dupe_5grams": 0.1085... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/livelog/livelog.go | package livelog
import (
"context"
"errors"
"sync"
)
type Streamer struct {
sync.Mutex
streams map[int64]*stream
}
var errStreamNotFound = errors.New("stream: not found")
// newStreamer returns a new in-memory log streamer.
func newStreamer() *Streamer {
return &Streamer{
streams: make(map[int64]*stream),
... | 1,414 | livelog | go | en | go | code | {"qsc_code_num_words": 209, "qsc_code_num_chars": 1414.0, "qsc_code_mean_word_length": 4.51196172, "qsc_code_frac_words_unique": 0.3062201, "qsc_code_frac_chars_top_2grams": 0.05090138, "qsc_code_frac_chars_top_3grams": 0.06892895, "qsc_code_frac_chars_top_4grams": 0.06044539, "qsc_code_frac_chars_dupe_5grams": 0.24072... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/MysteryMeat.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,853 | MysteryMeat | java | en | java | code | {"qsc_code_num_words": 350, "qsc_code_num_chars": 2853.0, "qsc_code_mean_word_length": 6.05142857, "qsc_code_frac_words_unique": 0.42857143, "qsc_code_frac_chars_top_2grams": 0.09631728, "qsc_code_frac_chars_top_3grams": 0.21529745, "qsc_code_frac_chars_top_4grams": 0.22851747, "qsc_code_frac_chars_dupe_5grams": 0.2785... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | integrations/gun/gun.mjs | import Gun from 'gun'
import SEA from 'gun/sea.js'
const bootstrapPeers = ['wss://59.src.eco/gun', 'wss://95.src.eco/gun']
const gun = Gun({
peers: bootstrapPeers,
file: `data`,
radisk: false,
axe: false
})
const src = gun.get('src')
src.on((data) => {})
async function keepAlive() {
const peers = gun.back(... | 1,192 | gun | mjs | en | javascript | code | {"qsc_code_num_words": 141, "qsc_code_num_chars": 1192.0, "qsc_code_mean_word_length": 4.84397163, "qsc_code_frac_words_unique": 0.46808511, "qsc_code_frac_chars_top_2grams": 0.0204978, "qsc_code_frac_chars_top_3grams": 0.02635432, "qsc_code_frac_chars_top_4grams": 0.0, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v1_X_Changes.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 75,005 | v1_X_Changes | java | en | java | code | {"qsc_code_num_words": 11372, "qsc_code_num_chars": 75005.0, "qsc_code_mean_word_length": 4.75976082, "qsc_code_frac_words_unique": 0.17490327, "qsc_code_frac_chars_top_2grams": 0.00602276, "qsc_code_frac_chars_top_3grams": 0.0284326, "qsc_code_frac_chars_top_4grams": 0.04639004, "qsc_code_frac_chars_dupe_5grams": 0.22... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/2393.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2393</id><url>http://www.chinanews.com/gj/2020/04-04/9147498.shtml</url><title>IMF总裁呼吁应对疫情须兼顾民众健康和经济发展</title><datetime>2020-4-4 10:33:00</datetime><body> 新华社日内瓦4月3日电(记者凌馨)国际货币基金组织(IMF)总裁格奥尔基耶娃3日强调,在应对新冠疫情时,需要兼顾保护民众健康和保持经济发展。
格奥尔基耶娃当天在世界卫生组织举行的视频记者会上表示,新冠疫情带来的危机不同以往,世界正处... | 577 | 2393 | xml | zh | xml | data | {"qsc_code_num_words": 208, "qsc_code_num_chars": 577.0, "qsc_code_mean_word_length": 2.29807692, "qsc_code_frac_words_unique": 0.68269231, "qsc_code_frac_chars_top_2grams": 0.0251046, "qsc_code_frac_chars_top_3grams": 0.03138075, "qsc_code_frac_chars_top_4grams": 0.0334728, "qsc_code_frac_chars_dupe_5grams": 0.0627615... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1237.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1237</id><url>http://www.chinanews.com/gj/2020/04-01/9143858.shtml</url><title>俄罗斯向美国提供物资 助美抗击新冠病毒疫情</title><datetime>2020-4-1 09:31:00</datetime><body> (抗击新冠肺炎)俄罗斯向美国提供物资助美抗击新冠病毒疫情
中新网莫斯科3月31日电(记者王修君)31日俄罗斯总统新闻秘书佩斯科夫在莫斯科透露,一架载有医疗设备和防护用品的飞机于31日晚间飞往美国。
佩斯科夫说,俄总统普京与美国总统特朗... | 709 | 1237 | xml | zh | xml | data | {"qsc_code_num_words": 282, "qsc_code_num_chars": 709.0, "qsc_code_mean_word_length": 2.07446809, "qsc_code_frac_words_unique": 0.61702128, "qsc_code_frac_chars_top_2grams": 0.04102564, "qsc_code_frac_chars_top_3grams": 0.04102564, "qsc_code_frac_chars_top_4grams": 0.04102564, "qsc_code_frac_chars_dupe_5grams": 0.03418... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/2174.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2174</id><url>http://www.chinanews.com/gn/2020/04-03/9146151.shtml</url><title>面对疫情“大考” 安理会中国主席月“答卷”可圈可点</title><datetime>2020-4-3 05:30:00</datetime><body> 面对疫情“大考”—— 安理会中国主席月“答卷”可圈可点
本报联合国4月1日电(记者李晓宏)3月,中国担任联合国安理会轮值主席国,面对新冠肺炎疫情给安理会及联合国各机构运作带来的挑战,中方同成员国密切协作,主动作为,开拓创新,探... | 1,344 | 2174 | xml | zh | xml | data | {"qsc_code_num_words": 559, "qsc_code_num_chars": 1344.0, "qsc_code_mean_word_length": 2.06261181, "qsc_code_frac_words_unique": 0.57245081, "qsc_code_frac_chars_top_2grams": 0.00867303, "qsc_code_frac_chars_top_3grams": 0.01821336, "qsc_code_frac_chars_top_4grams": 0.01387684, "qsc_code_frac_chars_dupe_5grams": 0.0555... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
05sec/Cardinal | internal/game/flag.go | package game
import (
"fmt"
"strconv"
"strings"
"sync"
"time"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/vidar-team/Cardinal/internal/asteroid"
"github.com/vidar-team/Cardinal/internal/conf"
"github.com/vidar-team/Cardinal/internal/dbold"
"github.com/vidar-team/Cardinal/internal/dynam... | 11,356 | flag | go | en | go | code | {"qsc_code_num_words": 1424, "qsc_code_num_chars": 11356.0, "qsc_code_mean_word_length": 5.48103933, "qsc_code_frac_words_unique": 0.19662921, "qsc_code_frac_chars_top_2grams": 0.03100577, "qsc_code_frac_chars_top_3grams": 0.02767457, "qsc_code_frac_chars_top_4grams": 0.02998078, "qsc_code_frac_chars_dupe_5grams": 0.47... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/game/score.go | package game
import (
"time"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/vidar-team/Cardinal/internal/conf"
"github.com/vidar-team/Cardinal/internal/dbold"
"github.com/vidar-team/Cardinal/internal/healthy"
"github.com/vidar-team/Cardinal/internal/locales"
"github.com/vidar-team/Cardinal/i... | 6,383 | score | go | en | go | code | {"qsc_code_num_words": 792, "qsc_code_num_chars": 6383.0, "qsc_code_mean_word_length": 5.67676768, "qsc_code_frac_words_unique": 0.20075758, "qsc_code_frac_chars_top_2grams": 0.04225979, "qsc_code_frac_chars_top_3grams": 0.04003559, "qsc_code_frac_chars_top_4grams": 0.05338078, "qsc_code_frac_chars_dupe_5grams": 0.3572... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v0_5_X_Changes.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 4,174 | v0_5_X_Changes | java | en | java | code | {"qsc_code_num_words": 613, "qsc_code_num_chars": 4174.0, "qsc_code_mean_word_length": 5.03262643, "qsc_code_frac_words_unique": 0.46492659, "qsc_code_frac_chars_top_2grams": 0.04408428, "qsc_code_frac_chars_top_3grams": 0.09854133, "qsc_code_frac_chars_top_4grams": 0.09983793, "qsc_code_frac_chars_dupe_5grams": 0.1990... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/2002.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2002</id><url>http://www.chinanews.com/cj/2020/04-03/9146701.shtml</url><title>中国基层官员“拥抱”新技能 “直播带货”振兴乡村</title><datetime>2020-4-3 14:55:00</datetime><body> 中新社长沙4月3日电(记者唐小晴)“大家好,我身后是生长在海拔800米以上的双牌特色野生藤茶,纯天然,喝下去有一种特别的清香……”手持自拍杆的湖南省永州市双牌县委常委、宣传部长唐俊穿梭茶园,用手机直播推销双牌特色农产品。
地处湖南... | 1,366 | 2002 | xml | zh | xml | data | {"qsc_code_num_words": 570, "qsc_code_num_chars": 1366.0, "qsc_code_mean_word_length": 2.0245614, "qsc_code_frac_words_unique": 0.68070175, "qsc_code_frac_chars_top_2grams": 0.01039861, "qsc_code_frac_chars_top_3grams": 0.00866551, "qsc_code_frac_chars_top_4grams": 0.01039861, "qsc_code_frac_chars_dupe_5grams": 0.0, "q... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v3_X_Changes.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 61,829 | v3_X_Changes | java | en | java | code | {"qsc_code_num_words": 9233, "qsc_code_num_chars": 61829.0, "qsc_code_mean_word_length": 4.69565688, "qsc_code_frac_words_unique": 0.19473627, "qsc_code_frac_chars_top_2grams": 0.00405951, "qsc_code_frac_chars_top_3grams": 0.02497982, "qsc_code_frac_chars_top_4grams": 0.04075654, "qsc_code_frac_chars_dupe_5grams": 0.21... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/changelist/v0_4_X_Changes.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 13,317 | v0_4_X_Changes | java | en | java | code | {"qsc_code_num_words": 1898, "qsc_code_num_chars": 13317.0, "qsc_code_mean_word_length": 4.86090622, "qsc_code_frac_words_unique": 0.31822972, "qsc_code_frac_chars_top_2grams": 0.01008021, "qsc_code_frac_chars_top_3grams": 0.02883156, "qsc_code_frac_chars_top_4grams": 0.04704097, "qsc_code_frac_chars_dupe_5grams": 0.25... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | integrations/wandb/main.py | """Weights & Biases integration implementation for Praxis."""
import os
import re
import shutil
from datetime import datetime
from typing import Any, Dict, Optional
from praxis.integrations.base import BaseIntegration, IntegrationSpec
def add_cli_args(parser):
"""Add wandb CLI arguments to the parser."""
lo... | 7,880 | main | py | en | python | code | {"qsc_code_num_words": 1010, "qsc_code_num_chars": 7880.0, "qsc_code_mean_word_length": 4.76930693, "qsc_code_frac_words_unique": 0.24257426, "qsc_code_frac_chars_top_2grams": 0.02034461, "qsc_code_frac_chars_top_3grams": 0.01245589, "qsc_code_frac_chars_top_4grams": 0.01660785, "qsc_code_frac_chars_dupe_5grams": 0.180... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | integrations/wandb/README.md | # Weights & Biases Integration
Experiment tracking and visualization with Weights & Biases.
## Activation
Add the `--wandb` flag when running Praxis:
```bash
python main.py --wandb
```
## Features
- **Real-time Metrics**: Live training metrics streamed to W&B dashboard
- **Experiment Tracking**: Automatic logging ... | 1,191 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.14218009, "qsc_doc_num_sentences": 7.0, "qsc_doc_num_words": 149, "qsc_doc_num_chars": 1191.0, "qsc_doc_num_lines": 45.0, "qsc_doc_mean_word_length": 6.09395973, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore... | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_... |
0-5788719150923125/praxis | praxis/heads/tied.py | """Tied weight language modeling head that reuses embedding weights."""
from typing import Any, Optional
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from praxis.heads.base import BaseHead
class TiedWeights(BaseHead):
"""
Language modeling head with tied weigh... | 2,703 | tied | py | en | python | code | {"qsc_code_num_words": 318, "qsc_code_num_chars": 2703.0, "qsc_code_mean_word_length": 5.39308176, "qsc_code_frac_words_unique": 0.33333333, "qsc_code_frac_chars_top_2grams": 0.11370262, "qsc_code_frac_chars_top_3grams": 0.03965015, "qsc_code_frac_chars_top_4grams": 0.03148688, "qsc_code_frac_chars_dupe_5grams": 0.0, "... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/2399.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>2399</id><url>http://www.chinanews.com/gn/2020/04-04/9147472.shtml</url><title>央广时评:愿山河无恙气清景明 缅怀抗疫牺牲烈士和逝世同胞</title><datetime>2020-4-4 10:02:00</datetime><body> 又是一年清明时。作为重要的传统节日之一,公众在清明节悼念逝者,寄托哀思,慎终追远。4月3日,为表达全国各族人民对抗击新冠肺炎疫情斗争牺牲烈士和逝世同胞的深切哀悼,国务院发布公告,决定2020年4月4日举行全国性哀悼活动。在此... | 911 | 2399 | xml | zh | xml | data | {"qsc_code_num_words": 369, "qsc_code_num_chars": 911.0, "qsc_code_mean_word_length": 2.08401084, "qsc_code_frac_words_unique": 0.65582656, "qsc_code_frac_chars_top_2grams": 0.02080624, "qsc_code_frac_chars_top_3grams": 0.0130039, "qsc_code_frac_chars_top_4grams": 0.01820546, "qsc_code_frac_chars_dupe_5grams": 0.054616... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1905.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1905</id><url>http://www.chinanews.com/cj/2020/04-03/9146873.shtml</url><title>中国国家机器人重点实验室优化算法:让机器人更快认知世界</title><datetime>2020-4-3 17:04:00</datetime><body> 中新社沈阳4月3日电(王景巍)中国科学院沈阳自动化研究所3日发布消息称,依托于该所的机器人学国家重点实验室提出了一种连续多视角任务学习算法,可有效解决现存大部分多视角任务学习模型不能够满足让机器人快速学习新任务的问题。
目前... | 757 | 1905 | xml | zh | xml | data | {"qsc_code_num_words": 323, "qsc_code_num_chars": 757.0, "qsc_code_mean_word_length": 2.02167183, "qsc_code_frac_words_unique": 0.56037152, "qsc_code_frac_chars_top_2grams": 0.03675345, "qsc_code_frac_chars_top_3grams": 0.04594181, "qsc_code_frac_chars_top_4grams": 0.05359877, "qsc_code_frac_chars_dupe_5grams": 0.10566... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
05sec/Cardinal | internal/install/install.go | package install
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"strings"
"github.com/manifoldco/promptui"
"github.com/pelletier/go-toml"
"github.com/pkg/errors"
"github.com/thanhpk/randstr"
log "unknwon.dev/clog/v2"
"github.com/vidar-team/Cardinal/internal/conf"
"github.com/vidar-team/Cardinal/internal/... | 6,789 | install | go | en | go | code | {"qsc_code_num_words": 890, "qsc_code_num_chars": 6789.0, "qsc_code_mean_word_length": 5.15617978, "qsc_code_frac_words_unique": 0.23370787, "qsc_code_frac_chars_top_2grams": 0.0228808, "qsc_code_frac_chars_top_3grams": 0.03312268, "qsc_code_frac_chars_top_4grams": 0.05491392, "qsc_code_frac_chars_dupe_5grams": 0.39115... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/1212.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1212</id><url>http://www.chinanews.com/hr/2020/04-01/9143951.shtml</url><title>中国驻旧金山总领馆将给留学生发“健康包”</title><datetime>2020-4-1 10:28:00</datetime><body> 中国侨网4月1日电据中国驻旧金山总领事馆网站消息,近日,驻旧金山总领馆发布关于向领区留学人员发放防疫“健康包”的公告称,将通过发放防疫“健康包”等措施,全力保障领区内留学人员生命安全和身体健康,留学人员可通过各地中国学生学者联谊会或所在州指... | 941 | 1212 | xml | zh | xml | data | {"qsc_code_num_words": 369, "qsc_code_num_chars": 941.0, "qsc_code_mean_word_length": 2.12195122, "qsc_code_frac_words_unique": 0.56097561, "qsc_code_frac_chars_top_2grams": 0.03065134, "qsc_code_frac_chars_top_3grams": 0.04469987, "qsc_code_frac_chars_top_4grams": 0.02681992, "qsc_code_frac_chars_dupe_5grams": 0.11366... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/StewedMeat.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,903 | StewedMeat | java | en | java | code | {"qsc_code_num_words": 238, "qsc_code_num_chars": 1903.0, "qsc_code_mean_word_length": 5.65546218, "qsc_code_frac_words_unique": 0.51260504, "qsc_code_frac_chars_top_2grams": 0.05052006, "qsc_code_frac_chars_top_3grams": 0.11292719, "qsc_code_frac_chars_top_4grams": 0.0423477, "qsc_code_frac_chars_dupe_5grams": 0.27414... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/SupplyRation.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,471 | SupplyRation | java | en | java | code | {"qsc_code_num_words": 299, "qsc_code_num_chars": 2471.0, "qsc_code_mean_word_length": 6.32441472, "qsc_code_frac_words_unique": 0.50501672, "qsc_code_frac_chars_top_2grams": 0.08989952, "qsc_code_frac_chars_top_3grams": 0.20095188, "qsc_code_frac_chars_top_4grams": 0.20941301, "qsc_code_frac_chars_dupe_5grams": 0.2961... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/ChargrilledMeat.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,308 | ChargrilledMeat | java | en | java | code | {"qsc_code_num_words": 174, "qsc_code_num_chars": 1308.0, "qsc_code_mean_word_length": 5.63218391, "qsc_code_frac_words_unique": 0.62068966, "qsc_code_frac_chars_top_2grams": 0.03367347, "qsc_code_frac_chars_top_3grams": 0.03979592, "qsc_code_frac_chars_top_4grams": 0.05816327, "qsc_code_frac_chars_dupe_5grams": 0.0836... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/PhantomMeat.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 2,106 | PhantomMeat | java | en | java | code | {"qsc_code_num_words": 262, "qsc_code_num_chars": 2106.0, "qsc_code_mean_word_length": 6.2480916, "qsc_code_frac_words_unique": 0.51526718, "qsc_code_frac_chars_top_2grams": 0.1038485, "qsc_code_frac_chars_top_3grams": 0.23213195, "qsc_code_frac_chars_top_4grams": 0.24190593, "qsc_code_frac_chars_dupe_5grams": 0.277336... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
04zhujunjie/JJFontFit | JJFontFitExample/Home/JJHomeController.m | //
// JJHomeController.m
// JJFontFit
//
// Created by JMZiXun on 2018/4/18.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import "JJHomeController.h"
#import "JJFontFit.h"
#import "JJExampleTableViewController.h"
#define kJJIPHONE_47 375.0
@interface JJHomeController ()
@property (weak, nonatomic) IBOut... | 5,773 | JJHomeController | m | zh | limbo | code | {"qsc_code_num_words": 710, "qsc_code_num_chars": 5773.0, "qsc_code_mean_word_length": 5.45352113, "qsc_code_frac_words_unique": 0.42535211, "qsc_code_frac_chars_top_2grams": 0.01549587, "qsc_code_frac_chars_top_3grams": 0.01549587, "qsc_code_frac_chars_top_4grams": 0.01239669, "qsc_code_frac_chars_dupe_5grams": 0.1069... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/attention/components.py | import math
from typing import Any, Optional, Tuple
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from praxis.dense import DENSE_REGISTRY
class MultiTokenAttention(nn.Module):
"""
Implements Multi-Token Attention (MTA) with key-query convolution
and head mix... | 15,903 | components | py | en | python | code | {"qsc_code_num_words": 1993, "qsc_code_num_chars": 15903.0, "qsc_code_mean_word_length": 4.60210738, "qsc_code_frac_words_unique": 0.1796287, "qsc_code_frac_chars_top_2grams": 0.02812909, "qsc_code_frac_chars_top_3grams": 0.01962495, "qsc_code_frac_chars_top_4grams": 0.02289577, "qsc_code_frac_chars_dupe_5grams": 0.299... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/GameScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 56,983 | GameScene | java | en | java | code | {"qsc_code_num_words": 6393, "qsc_code_num_chars": 56983.0, "qsc_code_mean_word_length": 6.20585015, "qsc_code_frac_words_unique": 0.15767245, "qsc_code_frac_chars_top_2grams": 0.0283561, "qsc_code_frac_chars_top_3grams": 0.09673842, "qsc_code_frac_chars_top_4grams": 0.11090387, "qsc_code_frac_chars_dupe_5grams": 0.335... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | test/log_test.go | package cardinal_test
import (
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
)
func Test_GetLogs(t *testing.T) {
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/api/manager/logs", nil)
req.Header.Set("Authorization", managerToken)
router.ServeHTTP(w, req)
asser... | 2,196 | log_test | go | en | go | code | {"qsc_code_num_words": 309, "qsc_code_num_chars": 2196.0, "qsc_code_mean_word_length": 4.71197411, "qsc_code_frac_words_unique": 0.20711974, "qsc_code_frac_chars_top_2grams": 0.09065934, "qsc_code_frac_chars_top_3grams": 0.0989011, "qsc_code_frac_chars_top_4grams": 0.15796703, "qsc_code_frac_chars_dupe_5grams": 0.77197... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 1, "qsc... |
01joy/news-search-engine | data/news/112.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>112</id><url>http://www.chinanews.com/gn/2020/03-30/9142295.shtml</url><title>北京:优先安排因疫情防控未及时接种疫苗的补种 </title><datetime>2020-3-30 19:27:00</datetime><body> 新华社北京3月30日电(记者郭宇靖)在30日举行的北京市新冠肺炎疫情防控工作新闻发布会上,北京市卫生健康委员会新闻发言人高小俊介绍,目前北京市预防接种工作平稳有序开展,常规免疫规划门诊开诊441家。各预防接种门诊将优先安排因疫情防控未... | 839 | 112 | xml | zh | xml | data | {"qsc_code_num_words": 331, "qsc_code_num_chars": 839.0, "qsc_code_mean_word_length": 2.18429003, "qsc_code_frac_words_unique": 0.54984894, "qsc_code_frac_chars_top_2grams": 0.02213001, "qsc_code_frac_chars_top_3grams": 0.02489627, "qsc_code_frac_chars_top_4grams": 0.01936376, "qsc_code_frac_chars_dupe_5grams": 0.09128... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
01joy/news-search-engine | data/news/1358.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1358</id><url>http://www.chinanews.com/cj/2020/04-02/9145916.shtml</url><title>长三角金融服务“同城化”全面启动</title><datetime>2020-4-2 21:14:00</datetime><body> 中新社上海4月2日电(记者姜煜)中国人民银行上海总部会同长三角生态绿色一体化发展示范区执委会等12个部门,2日联合发布《关于在长三角生态绿色一体化发展示范区深化落实金融支持政策推进先行先试的若干举措》,此举标志着长三角生态绿色一体化发展示范区金融服... | 777 | 1358 | xml | zh | xml | data | {"qsc_code_num_words": 280, "qsc_code_num_chars": 777.0, "qsc_code_mean_word_length": 2.36428571, "qsc_code_frac_words_unique": 0.60714286, "qsc_code_frac_chars_top_2grams": 0.05438066, "qsc_code_frac_chars_top_3grams": 0.05287009, "qsc_code_frac_chars_top_4grams": 0.0755287, "qsc_code_frac_chars_dupe_5grams": 0.090634... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/AlchemyScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 32,715 | AlchemyScene | java | en | java | code | {"qsc_code_num_words": 3614, "qsc_code_num_chars": 32715.0, "qsc_code_mean_word_length": 5.95351411, "qsc_code_frac_words_unique": 0.15163254, "qsc_code_frac_chars_top_2grams": 0.02467931, "qsc_code_frac_chars_top_3grams": 0.07770961, "qsc_code_frac_chars_top_4grams": 0.08793456, "qsc_code_frac_chars_dupe_5grams": 0.39... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/scenes/RankingsScene.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 10,336 | RankingsScene | java | en | java | code | {"qsc_code_num_words": 1239, "qsc_code_num_chars": 10336.0, "qsc_code_mean_word_length": 5.67393059, "qsc_code_frac_words_unique": 0.24858757, "qsc_code_frac_chars_top_2grams": 0.0371266, "qsc_code_frac_chars_top_3grams": 0.12432432, "qsc_code_frac_chars_top_4grams": 0.13769559, "qsc_code_frac_chars_dupe_5grams": 0.167... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | test/manager_test.go | package cardinal_test
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"github.com/stretchr/testify/assert"
)
func Test_ManagerLogout(t *testing.T) {
w := httptest.NewRecorder()
req, _ := http.NewRequest("GET", "/api/manager/logout", nil)
req.Header.Set("Authorization", managerToken... | 6,781 | manager_test | go | en | go | code | {"qsc_code_num_words": 884, "qsc_code_num_chars": 6781.0, "qsc_code_mean_word_length": 5.27036199, "qsc_code_frac_words_unique": 0.11425339, "qsc_code_frac_chars_top_2grams": 0.05902554, "qsc_code_frac_chars_top_3grams": 0.0643915, "qsc_code_frac_chars_top_4grams": 0.09787508, "qsc_code_frac_chars_dupe_5grams": 0.86670... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 1, "qsc_code_frac_chars_dupe_6grams": 1, "qsc... |
05sec/Cardinal | test/cardinal_test.go | package cardinal_test
import (
"os"
"testing"
"github.com/gin-gonic/gin"
log "unknwon.dev/clog/v2"
"github.com/vidar-team/Cardinal/internal/asteroid"
"github.com/vidar-team/Cardinal/internal/bootstrap"
"github.com/vidar-team/Cardinal/internal/conf"
"github.com/vidar-team/Cardinal/internal/dbold"
"github.com... | 1,795 | cardinal_test | go | en | go | code | {"qsc_code_num_words": 232, "qsc_code_num_chars": 1795.0, "qsc_code_mean_word_length": 5.57758621, "qsc_code_frac_words_unique": 0.38362069, "qsc_code_frac_chars_top_2grams": 0.09041731, "qsc_code_frac_chars_top_3grams": 0.12982998, "qsc_code_frac_chars_top_4grams": 0.16692427, "qsc_code_frac_chars_dupe_5grams": 0.3153... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/db/teams_test.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"testing"
"time"
"github.com/stretchr/testify/assert"
"gorm.io/gorm"
)
func TestTeams(t *testing.T) {
if testing.Short() {
... | 12,090 | teams_test | go | en | go | code | {"qsc_code_num_words": 1547, "qsc_code_num_chars": 12090.0, "qsc_code_mean_word_length": 4.70588235, "qsc_code_frac_words_unique": 0.09825469, "qsc_code_frac_chars_top_2grams": 0.03365385, "qsc_code_frac_chars_top_3grams": 0.05631868, "qsc_code_frac_chars_top_4grams": 0.07321429, "qsc_code_frac_chars_dupe_5grams": 0.77... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 1, "qsc... |
05sec/Cardinal | internal/db/bulletins.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"github.com/pkg/errors"
"gorm.io/gorm"
)
var _ BulletinsStore = (*bulletins)(nil)
// Bulletins is the default instance of the B... | 3,120 | bulletins | go | en | go | code | {"qsc_code_num_words": 402, "qsc_code_num_chars": 3120.0, "qsc_code_mean_word_length": 5.69651741, "qsc_code_frac_words_unique": 0.26616915, "qsc_code_frac_chars_top_2grams": 0.05240175, "qsc_code_frac_chars_top_3grams": 0.08908297, "qsc_code_frac_chars_top_4grams": 0.04978166, "qsc_code_frac_chars_dupe_5grams": 0.4179... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
05sec/Cardinal | internal/db/managers_test.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"testing"
"time"
"github.com/stretchr/testify/assert"
"gorm.io/gorm"
)
func TestManagers(t *testing.T) {
if testing.Short() {... | 7,015 | managers_test | go | en | go | code | {"qsc_code_num_words": 809, "qsc_code_num_chars": 7015.0, "qsc_code_mean_word_length": 5.43634116, "qsc_code_frac_words_unique": 0.15574784, "qsc_code_frac_chars_top_2grams": 0.03410641, "qsc_code_frac_chars_top_3grams": 0.05457026, "qsc_code_frac_chars_top_4grams": 0.07094134, "qsc_code_frac_chars_dupe_5grams": 0.6371... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/peer.py | import math
from typing import Any, Dict, List, Optional, Tuple, TypeVar
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from praxis.activations import ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class ParameterEfficientExpertRetrieval(nn.Module):
"... | 9,528 | peer | py | en | python | code | {"qsc_code_num_words": 1116, "qsc_code_num_chars": 9528.0, "qsc_code_mean_word_length": 4.52688172, "qsc_code_frac_words_unique": 0.25, "qsc_code_frac_chars_top_2grams": 0.04552652, "qsc_code_frac_chars_top_3grams": 0.00475059, "qsc_code_frac_chars_top_4grams": 0.02078385, "qsc_code_frac_chars_dupe_5grams": 0.18368963,... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/kan.py | import math
from typing import Any, Callable, Dict, Optional, Tuple, TypeVar, Union
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Tensor
from praxis.activations import ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class KolmogorovArnoldNetwo... | 8,515 | kan | py | en | python | code | {"qsc_code_num_words": 1031, "qsc_code_num_chars": 8515.0, "qsc_code_mean_word_length": 4.69835112, "qsc_code_frac_words_unique": 0.2356935, "qsc_code_frac_chars_top_2grams": 0.02146986, "qsc_code_frac_chars_top_3grams": 0.01878613, "qsc_code_frac_chars_top_4grams": 0.01300578, "qsc_code_frac_chars_dupe_5grams": 0.1463... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
0-5788719150923125/praxis | praxis/dense/scatter.py | import math
from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Tuple, TypeVar, Union
import torch
import torch.nn as nn
from torch import Tensor
from praxis.activations import ACT2CLS, ACT2FN
ConfigType = TypeVar("ConfigType", bound="AutoConfig")
class ScatterMLP(nn.Module)... | 6,127 | scatter | py | en | python | code | {"qsc_code_num_words": 770, "qsc_code_num_chars": 6127.0, "qsc_code_mean_word_length": 4.84935065, "qsc_code_frac_words_unique": 0.19480519, "qsc_code_frac_chars_top_2grams": 0.05061596, "qsc_code_frac_chars_top_3grams": 0.04177825, "qsc_code_frac_chars_top_4grams": 0.01740761, "qsc_code_frac_chars_dupe_5grams": 0.5187... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
04zhujunjie/JJFontFit | JJFontFitExample.xcodeproj/project.pbxproj | // !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {
/* Begin PBXBuildFile section */
8BBEFAE02112DD03001432FF /* caiyunFont.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 8BBEFADF2112DD03001432FF /* caiyunFont.ttf */; };
F22FAC7C2089D59C00270804 /* AppDelegate.m in Sources... | 33,485 | project | pbxproj | en | unknown | unknown | {} | 0 | {} |
01joy/news-search-engine | data/news/1747.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>1747</id><url>http://www.chinanews.com/gn/2020/04-03/9147326.shtml</url><title>辛识平:春天,我们一起种下希望</title><datetime>2020-4-3 23:12:00</datetime><body> 新华社北京4月3日电题:春天,我们一起种下希望
辛识平
冬去春回,和煦的春风给大地带来勃勃生机。3日,习近平总书记参加首都义务植树活动。在全国疫情防控形势持续向好、复工复产不断推进的时刻,挥锹种下一片新绿,也是将希望的种子播撒进人们心中。
疫情... | 1,041 | 1747 | xml | zh | xml | data | {"qsc_code_num_words": 449, "qsc_code_num_chars": 1041.0, "qsc_code_mean_word_length": 1.91314031, "qsc_code_frac_words_unique": 0.69710468, "qsc_code_frac_chars_top_2grams": 0.01396973, "qsc_code_frac_chars_top_3grams": 0.01396973, "qsc_code_frac_chars_top_4grams": 0.01862631, "qsc_code_frac_chars_dupe_5grams": 0.0232... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
00-Evan/shattered-pixel-dungeon | core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/food/SmallRation.java | /*
* Pixel Dungeon
* Copyright (C) 2012-2015 Oleg Dolya
*
* Shattered Pixel Dungeon
* Copyright (C) 2014-2025 Evan Debenham
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either vers... | 1,165 | SmallRation | java | en | java | code | {"qsc_code_num_words": 159, "qsc_code_num_chars": 1165.0, "qsc_code_mean_word_length": 5.52201258, "qsc_code_frac_words_unique": 0.65408805, "qsc_code_frac_chars_top_2grams": 0.03758542, "qsc_code_frac_chars_top_3grams": 0.04441913, "qsc_code_frac_chars_top_4grams": 0.06492027, "qsc_code_frac_chars_dupe_5grams": 0.0933... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
01joy/news-search-engine | data/news/714.xml | <?xml version='1.0' encoding='utf-8'?>
<doc><id>714</id><url>http://www.chinanews.com/gn/2020/03-31/9142903.shtml</url><title>哈尔滨市人民检察院原检察长王克伦被开除党籍</title><datetime>2020-3-31 11:36:00</datetime><body> 中新网3月31日电据黑龙江省纪委监委消息:日前,经黑龙江省委批准,黑龙江省纪委监委对哈尔滨市人民检察院原党组书记、检察长王克伦严重违纪违法问题进行了立案审查调查。
经查,王克伦违反政治纪律,搞两面派、做两面人,以权谋私、以案谋私,处心积... | 1,713 | 714 | xml | zh | xml | data | {"qsc_code_num_words": 592, "qsc_code_num_chars": 1713.0, "qsc_code_mean_word_length": 2.4222973, "qsc_code_frac_words_unique": 0.56587838, "qsc_code_frac_chars_top_2grams": 0.0125523, "qsc_code_frac_chars_top_3grams": 0.0167364, "qsc_code_frac_chars_top_4grams": 0.0251046, "qsc_code_frac_chars_dupe_5grams": 0.06345886... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code... |
05sec/Cardinal | internal/db/game_boxes_test.go | // Copyright 2021 E99p1ant. All rights reserved.
// Use of this source code is governed by an AGPL-style
// license that can be found in the LICENSE file.
package db
import (
"context"
"testing"
"time"
"github.com/stretchr/testify/assert"
"gorm.io/gorm"
)
func TestGameBoxes(t *testing.T) {
if testing.Short() ... | 26,418 | game_boxes_test | go | en | go | code | {"qsc_code_num_words": 3031, "qsc_code_num_chars": 26418.0, "qsc_code_mean_word_length": 5.10095678, "qsc_code_frac_words_unique": 0.06532498, "qsc_code_frac_chars_top_2grams": 0.0217321, "qsc_code_frac_chars_top_3grams": 0.05368346, "qsc_code_frac_chars_top_4grams": 0.0697885, "qsc_code_frac_chars_dupe_5grams": 0.8644... | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 1, "qsc_code_frac_chars_dupe_6grams": 1, "qsc... |
04zhujunjie/JJFontFit | JJFontFitExampleUITests/JJFontFitExampleUITests.m | //
// JJFontFitExampleUITests.m
// JJFontFitExampleUITests
//
// Created by JMZiXun on 2018/4/20.
// Copyright © 2018年 JMZiXun. All rights reserved.
//
#import <XCTest/XCTest.h>
@interface JJFontFitExampleUITests : XCTestCase
@end
@implementation JJFontFitExampleUITests
- (void)setUp {
[super setUp];
... | 1,237 | JJFontFitExampleUITests | m | en | limbo | code | {"qsc_code_num_words": 170, "qsc_code_num_chars": 1237.0, "qsc_code_mean_word_length": 5.23529412, "qsc_code_frac_words_unique": 0.58235294, "qsc_code_frac_chars_top_2grams": 0.03146067, "qsc_code_frac_chars_top_3grams": 0.04719101, "qsc_code_frac_chars_top_4grams": 0.04044944, "qsc_code_frac_chars_dupe_5grams": 0.1460... | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.