text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```c++
#include "edge-segments.h"
#include "arithmetics.hpp"
#include "equation-solver.h"
namespace msdfgen {
EdgeSegment *EdgeSegment::create(Point2 p0, Point2 p1, EdgeColor edgeColor) {
return new LinearSegment(p0, p1, edgeColor);
}
EdgeSegment *EdgeSegment::create(Point2 p0, Point2 p1, Point2 p2, EdgeColor ... | /content/code_sandbox/core/edge-segments.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 5,929 |
```objective-c
#pragma once
// This file needs to be included first for all MSDFgen sources
#ifndef MSDFGEN_PUBLIC
#include <msdfgen/msdfgen-config.h>
#endif
#include <cstddef>
namespace msdfgen {
typedef unsigned char byte;
}
``` | /content/code_sandbox/core/base.h | objective-c | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 55 |
```cmake
# This script reads version from vcpkg.json and sets it to ${MSDFGEN_VERSION} etc.
cmake_minimum_required(VERSION 3.15)
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/../vcpkg.json" MSDFGEN_VCPKG_JSON)
string(REGEX MATCH "\"version\"[ \t\n\r]*:[ \t\n\r]*\"[^\"]*\"" MSDFGEN_TMP_VERSION_PAIR ${MSDFGEN_VCPKG_JSON})
... | /content/code_sandbox/cmake/version.cmake | cmake | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 324 |
```c++
#include "resolve-shape-geometry.h"
#ifdef MSDFGEN_USE_SKIA
#include <skia/core/SkPath.h>
#include <skia/pathops/SkPathOps.h>
#include "../core/arithmetics.hpp"
#include "../core/Vector2.hpp"
#include "../core/edge-segments.h"
#include "../core/Contour.h"
namespace msdfgen {
SkPoint pointToSkiaPoint(Point2 ... | /content/code_sandbox/ext/resolve-shape-geometry.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 1,326 |
```objective-c
#pragma once
#include "../core/Shape.h"
#ifdef MSDFGEN_USE_SKIA
namespace msdfgen {
/// Resolves any intersections within the shape by subdividing its contours using the Skia library and makes sure its contours have a consistent winding.
bool resolveShapeGeometry(Shape &shape);
}
#endif
``` | /content/code_sandbox/ext/resolve-shape-geometry.h | objective-c | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 65 |
```objective-c
#pragma once
#include "../core/Shape.h"
#ifndef MSDFGEN_DISABLE_SVG
#ifndef MSDFGEN_EXT_PUBLIC
#define MSDFGEN_EXT_PUBLIC // for DLL import/export
#endif
namespace msdfgen {
extern MSDFGEN_EXT_PUBLIC const int SVG_IMPORT_FAILURE;
extern MSDFGEN_EXT_PUBLIC const int SVG_IMPORT_SUCCESS_FLAG;
extern M... | /content/code_sandbox/ext/import-svg.h | objective-c | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 273 |
```objective-c
#pragma once
#include "../core/Shape.h"
namespace msdfgen {
#define MSDFGEN_LEGACY_FONT_COORDINATE_SCALE (1/64.)
typedef unsigned unicode_t;
class FreetypeHandle;
class FontHandle;
class GlyphIndex {
public:
explicit GlyphIndex(unsigned index = 0);
unsigned getIndex() const;
private:
... | /content/code_sandbox/ext/import-font.h | objective-c | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 1,034 |
```objective-c
#pragma once
#include "../core/BitmapRef.hpp"
#ifndef MSDFGEN_DISABLE_PNG
namespace msdfgen {
/// Saves the bitmap as a PNG file.
bool savePng(const BitmapConstRef<byte, 1> &bitmap, const char *filename);
bool savePng(const BitmapConstRef<byte, 3> &bitmap, const char *filename);
bool savePng(const B... | /content/code_sandbox/ext/save-png.h | objective-c | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 164 |
```c++
#include "MSDFErrorCorrection.h"
#include <cstring>
#include "arithmetics.hpp"
#include "equation-solver.h"
#include "EdgeColor.h"
#include "bitmap-interpolation.hpp"
#include "edge-selectors.h"
#include "contour-combiners.h"
#include "ShapeDistanceFinder.h"
#include "generator-config.h"
namespace msdfgen {
... | /content/code_sandbox/core/MSDFErrorCorrection.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 7,155 |
```c++
#include "import-font.h"
#include <cstring>
#include <vector>
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_OUTLINE_H
#ifndef MSDFGEN_DISABLE_VARIABLE_FONTS
#include FT_MULTIPLE_MASTERS_H
#endif
namespace msdfgen {
#define F16DOT16_TO_DOUBLE(x) (1/65536.*double(x))
#define DOUBLE_TO_F16DOT16(x) FT... | /content/code_sandbox/ext/import-font.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 3,035 |
```c++
#define _CRT_SECURE_NO_WARNINGS
#include "save-png.h"
#include <cstdio>
#include <cstring>
#include <vector>
#include "../core/pixel-conversion.hpp"
#ifdef MSDFGEN_USE_LIBPNG
#include <png.h>
namespace msdfgen {
class PngGuard {
png_structp png;
png_infop info;
FILE *file;
public:
inline P... | /content/code_sandbox/ext/save-png.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 1,738 |
```c++
#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include "import-svg.h"
#ifndef MSDFGEN_DISABLE_SVG
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <vector>
#include <string>
#include <stack>
#ifdef MSDFGEN_USE_TINYXML2
#include <tinyxml2.h>
#endif
#ifdef MSDFGEN_USE_DROPXML
#inclu... | /content/code_sandbox/ext/import-svg.cpp | c++ | 2016-04-24T13:03:47 | 2024-08-16T15:14:00 | msdfgen | Chlumsky/msdfgen | 3,862 | 9,425 |
```javascript
const ESLintPlugin = require('eslint-webpack-plugin');
const path = require('path');
const include = path.resolve(__dirname, './src/scripts');
const exclude = /node_modules/;
/**
* @type {import('webpack').Configuration}
*/
module.exports = {
entry: ['./src/index'],
module: {
rules: [
{
... | /content/code_sandbox/webpack.config.base.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 220 |
```yaml
coverage:
parsers:
javascript:
enable_partials: yes
``` | /content/code_sandbox/.codecov.yml | yaml | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 16 |
```javascript
module.exports = {
'*.js': ['eslint --fix --quiet -f visualstudio', 'git add'],
'*.{ts,scss,yaml,yml,md,html,json,babelrc,eslintrc}': [
'prettier --write',
'git add',
],
'src/icons/*.svg': [
'prettier --write --parser=html --html-whitespace-sensitivity=ignore',
'git add',
],
'.... | /content/code_sandbox/lint-staged.config.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 144 |
```javascript
const path = require('path');
const { HotModuleReplacementPlugin } = require('webpack');
const deepMerge = require('deepmerge');
const baseConfig = require('./webpack.config.base');
module.exports = deepMerge(
baseConfig,
/** @type {import('webpack').Configuration} */ ({
mode: 'development',
... | /content/code_sandbox/webpack.config.dev.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 162 |
```javascript
/* eslint-disable no-console,global-require,import/no-extraneous-dependencies */
const express = require('express');
const path = require('path');
const PORT = process.env.PORT || 3001;
const DIST_DIR = path.resolve(__dirname, 'public');
const app = express();
if (process.env.NODE_ENV !== 'production')... | /content/code_sandbox/server.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 441 |
```javascript
// ***********************************************************
// This example support/index.js is processed and
// loaded automatically before your test files.
//
// This is a great place to put global configuration and
// behavior that modifies Cypress.
//
// You can change the location of this file or ... | /content/code_sandbox/cypress/support/e2e.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 115 |
```javascript
/* eslint-disable no-param-reassign */
const { JSDOM } = require('jsdom');
const jsdom = new JSDOM(
'<!doctype html><html><head><meta charset="utf-8"></head><body></body></html>',
{
pretendToBeVisual: true,
},
);
const { window } = jsdom;
function copyProps(src, target) {
const props = Obje... | /content/code_sandbox/config/jsdom.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 321 |
```javascript
const path = require('path');
const deepMerge = require('deepmerge');
const { BannerPlugin } = require('webpack');
const baseConfig = require('./webpack.config.base');
const { name, version, author, homepage } = require('./package.json');
const arrayMerge = (target, source) => [...source, ...target];
c... | /content/code_sandbox/webpack.config.prod.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 247 |
```yaml
require:
- 'ts-node/register'
- './config/jsdom.js'
exit: true
spec: src/**/**/*.test.ts
extension:
- ts
- js
``` | /content/code_sandbox/.mocharc.yml | yaml | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 40 |
```javascript
// ***********************************************
// This example commands.js shows you how to
// create various custom commands and overwrite
// existing commands.
//
// For more comprehensive examples of custom
// commands please read more here:
// path_to_url
// ***************************************... | /content/code_sandbox/cypress/support/commands.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 174 |
```javascript
// ***********************************************************
// This example plugins/index.js can be used to load plugins
//
// You can change the location of this file or turn off loading
// the plugins file with the 'pluginsFile' configuration option.
//
// You can read more here:
// path_to_url
// **... | /content/code_sandbox/cypress/plugins/index.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 126 |
```scss
/* =============================================
= Generic styling =
============================================= */
$global-guttering: 24px;
$global-font-size-h1: 32px;
$global-font-size-h2: 24px;
$global-font-size-h3: 20px;
$global-font-size-h4: 18px;
$global-font-size-h5: 16px;
... | /content/code_sandbox/src/styles/base.scss | scss | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 863 |
```scss
/* ===============================
= Choices =
=============================== */
@use "sass:color";
$choices-selector: "choices" !default;
$choices-font-size-lg: 16px !default;
$choices-font-size-md: 14px !default;
$choices-font-size-sm: 12px !default;
$choices-guttering: 24px !default;... | /content/code_sandbox/src/styles/choices.scss | scss | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 2,740 |
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=no"
/>
<title>Choices</title>
<meta
name="description"
itemprop="description"
content="A lightweight, configurable ... | /content/code_sandbox/public/test/select-one/index.html | html | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 4,691 |
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=no"
/>
<title>Choices</title>
<meta
name="description"
itemprop="description"
content="A lightweight, configurable ... | /content/code_sandbox/public/index.html | html | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 6,890 |
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=no"
/>
<title>Choices</title>
<meta
name="description"
itemprop="description"
content="A lightweight, configurable ... | /content/code_sandbox/public/test/text/index.html | html | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 1,755 |
```css
/* =============================================
= Generic styling =
============================================= */
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body {
position: rela... | /content/code_sandbox/public/assets/styles/base.css | css | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 738 |
```css
.choices{position:relative;overflow:hidden;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-open{overflow:visible}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:non... | /content/code_sandbox/public/assets/styles/choices.min.css | css | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 2,062 |
```css
*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,::after,::before{box-sizing:border-box}body,html{position:relative;margin:0;width:100%;height:100%}body{font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-size:16px;line-height:1.4;color:#fff;background-color:#333;... | /content/code_sandbox/public/assets/styles/base.min.css | css | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 488 |
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width,initial-scale=1,user-scalable=no"
/>
<title>Choices</title>
<meta
name="description"
itemprop="description"
content="A lightweight, configurable ... | /content/code_sandbox/public/test/select-multiple/index.html | html | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 4,220 |
```css
/* ===============================
= Choices =
=============================== */
.choices {
position: relative;
overflow: hidden;
margin-bottom: 24px;
font-size: 16px;
}
.choices:focus {
outline: none;
}
.choices:last-child {
margin-bottom: 0;
}
.choices.is-open {
overflow: v... | /content/code_sandbox/public/assets/styles/choices.css | css | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 2,670 |
```javascript
/*! For license information please see choices.min.js.LICENSE.txt */
!function(){"use strict";var e={282:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var n=i(883);t.addChoice=function(e){var t=e.value,i=e.label,r=e.id,... | /content/code_sandbox/public/assets/scripts/choices.min.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 24,553 |
```javascript
// get polyfill settings from top level config
// @ts-ignore
const { settings } = require('../../../.eslintrc.json');
// Adding non-polyfilable Symbol-related functions as they are most probably
// behind the flag
settings.polyfills.push(
'Symbol.toStringTag',
'Symbol.for',
'Object.getOwnPropertyS... | /content/code_sandbox/public/assets/scripts/.eslintrc.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 172 |
```javascript
/*! choices.js v10.2.0 | 2022 Josh Johnson | path_to_url#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(... | /content/code_sandbox/public/assets/scripts/choices.js | javascript | 2016-03-15T14:02:08 | 2024-08-15T07:08:50 | Choices | Choices-js/Choices | 6,092 | 49,105 |
```java
package com.ms509.model;
import javax.swing.table.DefaultTableModel;
public class DatabaseTableModel extends DefaultTableModel {
public Class getColumnClass(int columnIndex) {
if (this.getRowCount() == 0) {
return super.getColumnClass(columnIndex);
} else {
return getValueAt(0, columnIndex).getCla... | /content/code_sandbox/src/com/ms509/model/DatabaseTableModel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 115 |
```java
package com.ms509.model;
import java.awt.Component;
import javax.swing.ImageIcon;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import com.ms509.util.NodeData;
import com.ms509.util.NodeData.DataType;
public class DatabaseTreeCel... | /content/code_sandbox/src/com/ms509/model/DatabaseTreeCellRenderer.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 243 |
```java
package com.ms509.model;
import java.awt.Color;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.tree.TreeCellRenderer;
/*
* JPanelTreeCellRenderer
* getTreeCellRendererCompon... | /content/code_sandbox/src/com/ms509/model/ExtendedTreeCellRenderer.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 359 |
```java
package com.ms509.model;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.Vector;
import javax.swing.table.AbstractTableModel;
import javax.swing.tree.DefaultMutableTreeNode;
/*
*
* AbstractTableModeladd,remove
* add,remove
* @author Chora
*/
p... | /content/code_sandbox/src/com/ms509/model/ResultSetTableModel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 588 |
```java
package com.ms509.model;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Vector;
import javax.swing.ImageIcon;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTree;
import javax.swing.SwingUtilities;
import j... | /content/code_sandbox/src/com/ms509/model/RightTableModel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,828 |
```java
package com.ms509.model;
import java.awt.Component;
import java.util.ArrayList;
import javax.swing.ImageIcon;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
/*
* /A-Z
*
* @author Chora
*/
public class ExtendedDefaultTreeCellRende... | /content/code_sandbox/src/com/ms509/model/ExtendedDefaultTreeCellRenderer.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 268 |
```java
package com.ms509.model;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
import javax.swing.table.TableColumn;
import javax.swing.table.TableColumnModel;
/*
*
*
* @author C... | /content/code_sandbox/src/com/ms509/model/ExtendedTableCellRenderer.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 229 |
```java
package com.ms509.ui;
import javax.swing.*;
import com.ms509.ui.panel.DatabasePanel;
import com.ms509.ui.panel.FileManagerPanel;
import com.ms509.ui.panel.HeadPanel;
import com.ms509.ui.panel.ListPanel;
import com.ms509.ui.panel.ShellPanel;
import com.ms509.ui.panel.TextPanel;
public class TabFrame extends... | /content/code_sandbox/src/com/ms509/ui/TabFrame.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 407 |
```java
package com.ms509.ui;
import javax.swing.*;
import java.awt.*;
public class MainFrame {
public static TabFrame tab;
public static JFrame main;
public MainFrame() {
// TODO Auto-generated constructor stub
Toolkit t = Toolkit.getDefaultToolkit();
Dimension d = t.getScreenSize();
main = new JFrame("Ck... | /content/code_sandbox/src/com/ms509/ui/MainFrame.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 181 |
```java
package com.ms509.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.TimerTask;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing... | /content/code_sandbox/src/com/ms509/ui/MessageDialog.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 644 |
```java
package com.ms509.ui;
import java.awt.EventQueue;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.UIManager;
import org.pushingpixels.substance.api.SubstanceLookAndFeel;
import org.pushingpixels.substance.internal.fonts.DefaultGnomeFontPolicy;
import org.pushingpixels.substance.inte... | /content/code_sandbox/src/com/ms509/ui/Cknife.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 457 |
```java
package com.ms509.ui;
import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JTabbedPane;
import com.ms509.ui.config.panel.RequestPanel;
import com.ms509.ui.config.panel.ProxyPanel;
public class ConfigDialog extends JDialog{
public s... | /content/code_sandbox/src/com/ms509/ui/ConfigDialog.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 222 |
```java
package com.ms509.ui;
import java.awt.Color;
import java.awt.Cursor;
import java.awt.Desktop;
import java.awt.Dialog;
import java.awt.GridBagLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.net.URI;
import javax.swing.*;
import javax.swing.event.HyperlinkEvent;
import ... | /content/code_sandbox/src/com/ms509/ui/AboutDialog.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 683 |
```java
package com.ms509.ui;
//
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.aw... | /content/code_sandbox/src/com/ms509/ui/SetDBDialog.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,939 |
```java
package com.ms509.ui;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.HeadlessException;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
impor... | /content/code_sandbox/src/com/ms509/ui/AddDialog.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,727 |
```java
package com.ms509.ui.config.panel;
import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadio... | /content/code_sandbox/src/com/ms509/ui/config/panel/RequestPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 524 |
```java
package com.ms509.ui.config.panel;
import java.awt.Dimension;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
... | /content/code_sandbox/src/com/ms509/ui/config/panel/ProxyPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,151 |
```java
package com.ms509.ui.panel;
import java.awt.GridBagLayout;
import java.io.File;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JToolBar;
import javax.swing.table.TableC... | /content/code_sandbox/src/com/ms509/ui/panel/ListPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 602 |
```java
package com.ms509.ui.panel;
import com.ms509.model.ExtendedDefaultTreeCellRenderer;
import com.ms509.model.ResultSetTableModel;
import com.ms509.model.RightTableModel;
import com.ms509.util.FileManager;
import com.ms509.ui.MainFrame;
import com.ms509.ui.MessageDialog;
import com.ms509.ui.menu.FileManagerPopMen... | /content/code_sandbox/src/com/ms509/ui/panel/FileManagerPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 3,032 |
```java
package com.ms509.ui.panel;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.J... | /content/code_sandbox/src/com/ms509/ui/panel/HeadPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 531 |
```java
package com.ms509.ui.panel;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridBagLayout;
import java.awt.event.*;
import java.util.ArrayList;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.swing.*;
import javax.swing.text.AttributeSet;
impo... | /content/code_sandbox/src/com/ms509/ui/panel/ShellPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 2,707 |
```java
package com.ms509.ui.panel;
import java.awt.GridBagLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.JTextPane;
imp... | /content/code_sandbox/src/com/ms509/ui/panel/TextPanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 935 |
```java
package com.ms509.ui.panel;
//
import com.ms509.model.DatabaseTableModel;
import com.ms509.model.DatabaseTreeCellRenderer;
import com.ms509.ui.MainFrame;
import com.ms509.ui.MessageDialog;
import com.ms509.ui.SetDBDialog;
import com.ms509.ui.menu.DBPopMenu;
import com.ms509.util.Common;
import com.ms509.util.Da... | /content/code_sandbox/src/com/ms509/ui/panel/DatabasePanel.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 3,939 |
```java
package com.ms509.ui.menu;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.b... | /content/code_sandbox/src/com/ms509/ui/menu/FileManagerPopMenu.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 4,641 |
```java
package com.ms509.ui.menu;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.sql.SQLException;
import java.sql.Statement;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
import javax.... | /content/code_sandbox/src/com/ms509/ui/menu/ListPopMenu.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,660 |
```java
package com.ms509.ui.menu;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.UnsupportedFlavorException;
import java.awt.event.ActionEvent;
import java.awt.event.... | /content/code_sandbox/src/com/ms509/ui/menu/ShellPopMenu.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 723 |
```java
package com.ms509.util;
import java.net.HttpURLConnection;
import java.net.InetSocketAddress;
import java.net.Proxy;
import java.net.InetAddress;
import java.net.SocketAddress;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Collection;
import java.util.Date;
i... | /content/code_sandbox/src/com/ms509/util/Common.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 1,108 |
```java
package com.ms509.ui.menu;
//
import java.awt.Component;
import java.awt.datatransfer.Clipboard;
import java.awt.datatransfer.StringSelection;
import java.awt.datatransfer.Transferable;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.... | /content/code_sandbox/src/com/ms509/ui/menu/DBPopMenu.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 3,839 |
```java
package com.ms509.util;
//
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.nio.charset.UnsupportedCharsetException;
import javax.swing.JTree;
import sun.misc.BASE64Encoder;
public class DataBase {
private static String dbtype;
private static String dbhost;
private st... | /content/code_sandbox/src/com/ms509/util/DataBase.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 4,274 |
```java
package com.ms509.util;
import java.awt.Color;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.Arrays;
import javax.swing.text.BadLocationException;
import javax.swing.text.SimpleAttributeSet;
import javax.swing.text.StyleConstants;
import sun.misc.BASE64Encoder;
pu... | /content/code_sandbox/src/com/ms509/util/Shell.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 3,426 |
```java
package com.ms509.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class DbDao {
private static DbDao dao;
private String driver;
private String url;
private String user;
private String pass;
priva... | /content/code_sandbox/src/com/ms509/util/DbDao.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 368 |
```java
package com.ms509.util;
import java.io.ByteArrayOutputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Vector;
import sun.misc.BASE64Encoder;
public class FileManager {
private String url;
private String ... | /content/code_sandbox/src/com/ms509/util/FileManager.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 4,313 |
```java
package com.ms509.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Collections;
import java.util.Enumeration;
import java.util.LinkedHashSet;
import java.util.Properties;
import java.util.Set;
public class Configuration {
private OrderedProperties ... | /content/code_sandbox/src/com/ms509/util/Configuration.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 448 |
```java
package com.ms509.util;
public final class Safe {
public static String SPL;
public static String SPR;
public static String CODE;
public static String ACTION;
public static String PARAM1;
public static String PARAM2;
public static String PARAM3;
public static String ASP_BASE64;
public static String AS... | /content/code_sandbox/src/com/ms509/util/Safe.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 730 |
```java
package com.ms509.util;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
class BasicAuthenticator extends Authenticator {
String username;
String password;
public BasicAuthenticator(String username, String password) {
this.username = username;
this.password =... | /content/code_sandbox/src/com/ms509/util/BasicAuthenticator.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 86 |
```java
package com.ms509.util;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.PrintWriter;
import java.net.Authenticator;
import java.net.HttpURLConnection;
import java.net.InetAddress;
import java.net.Proxy;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;... | /content/code_sandbox/src/com/ms509/util/Request.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 2,862 |
```java
package com.ms509.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
public class InitConfig {
public InitConfig() {
// TODO Auto-generated constructor stub
Init();
}
private void Init() {
File conf = new File("Config.in... | /content/code_sandbox/src/com/ms509/util/InitConfig.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 8,474 |
```java
package com.ms509.util;
import java.util.ArrayList;
import java.util.Enumeration;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.DefaultTreeSelectionModel;
import javax.swing.tree.TreeNode;
import javax.swing.tree.Tre... | /content/code_sandbox/src/com/ms509/util/TreeMethod.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 728 |
```java
package com.ms509.util;
public class NodeData
{
public int nodetype;
public String nodedata;
public NodeData(int nodetype,String nodedata)
{
this.nodetype = nodetype;
this.nodedata = nodedata;
}
public String toString() {
return this.nodedata;
}
public class DataType
{
public final static int ... | /content/code_sandbox/src/com/ms509/util/NodeData.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 111 |
```java
package com.ms509.util;
import java.awt.GridBagConstraints;
import java.awt.Insets;
public class GBC extends GridBagConstraints
{
public GBC(int gridx,int gridy)
{
this.gridx = gridx;
this.gridy = gridy;
}
public GBC(int gridx,int gridy,int gridwidth,int gridheight)
{
this.gridx = gridx;
this.gri... | /content/code_sandbox/src/com/ms509/util/GBC.java | java | 2016-02-18T02:58:01 | 2024-08-15T19:55:03 | Cknife | Chora10/Cknife | 2,415 | 263 |
```c++
/***
*ehvccctr.cpp - EH-aware version of copy constructor iterator helper function
*
*
*Purpose:
* These functions are called when constructing and destructing arrays of
* objects. Their purpose is to assure that constructed elements get
* destructed if the constructor for one of the elements ... | /content/code_sandbox/src/14.0.23918/vcruntime/ehvccctr.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 702 |
```c++
//
// legacy_stdio_wide_specifiers.cpp
//
//
// Configures the stdio library to use the legacy %s, %c, and %[] specifiers for
// the wide string printf and scanf functions. The conforming (default) behavior
// is that these format specifiers map to a narrow character buffer; the 'l' length
// modifier must be u... | /content/code_sandbox/src/14.0.23918/linkopts/legacy_stdio_wide_specifiers.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 375 |
```c++
//
// new_array.cpp
//
//
// Defines the array operator new.
//
#include <vcruntime_internal.h>
#include <vcruntime_new.h>
void* __CRTDECL operator new[](size_t const size)
{
return operator new(size);
}
``` | /content/code_sandbox/src/14.0.23918/vcruntime/new_array.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 53 |
```assembly
;***
;memmove.asm -
;
;
;Purpose:
; memmove() copies a source memory buffer to a destination buffer.
; Overlapping buffers are treated specially, to avoid propogation.
;
; NOTE: This stub module scheme is compatible with NT build
; procedure.
;
;*************************************... | /content/code_sandbox/src/14.0.23918/i386/memmove.asm | assembly | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 82 |
```c
/***
*gs_support.c - initialize the global buffer overrun security cookie
*
*
*Purpose:
* Define __security_init_cookie, which is called at startup to initialize
* the global buffer overrun security cookie used by the /GS compile flag.
*
*****************************************************************... | /content/code_sandbox/src/14.0.23918/vcruntime/gs_support.c | c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,141 |
```c++
/***
*user.cpp - E.H. functions only called by the client programs
*
*
*Purpose:
* Exception handling functions only called by the client programs,
* not by the C/C++ runtime itself.
*
* Entry Points:
* * set_terminate
* * set_unexpected
* * _set_seh_translator
****/
#include... | /content/code_sandbox/src/14.0.23918/vcruntime/user.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 255 |
```c++
//
// legacy_conio_definitions.cpp
//
//
// Provides external definitions of the inline conio printf and scanf functions
// for use by objects compiled with older versions of the CRT headers.
//
// Our references to "unsafe" functions count as "use" so we need to suppress
// the deprecation warnings. Note that... | /content/code_sandbox/src/14.0.23918/linkopts/legacy_conio_definitions.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 620 |
```qmake
Release {
# GPBetapath_to_url
# 2019-02-14
#
#
# VC-LTLVC-LTL
#
#
# 1. proinclude("VC-LTL helper for qmake.pri")
# 2. VC-LTL
#
# VC-LTL
# 1. VC-LTL helper for qmake.pri $$PWD
# 2. VC-LTL helper for qmake.priVC-LTL $$PWD/VC-LTL
# 3. VC-LTL helper for qmake.pri$$PWD/..
# 4. (*.pro) $$_PRO_FILE_PWD_... | /content/code_sandbox/VC-LTL helper for qmake.pri | qmake | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 664 |
```c++
//
// throw_bad_alloc.cpp
//
//
// Defines functions that throw std::bad_alloc and std::bad_array_new_length.
// We cannot include the <vcruntime_exception.h> header in the source files
// that define the various operator new functions because that header defines
// inline functions that may be referenced by use... | /content/code_sandbox/src/14.0.23918/vcruntime/throw_bad_alloc.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 245 |
```c++
//
// All rights reserved.
//
#include "pch.h"
namespace Platform {
namespace Details {
//Forward declarations from vccorlib120.dll
HRESULT STDMETHODCALLTYPE GetActivationFactory(_In_ Microsoft::WRL::Details::ModuleBase*, _In_ HSTRING, _Deref_out_ ::IActivationFactory**);
bool STDMETHODCALLTYPE Termina... | /content/code_sandbox/src/14.0.23918/vccorlib/dllexportsimpl.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 251 |
```c++
#define __Build_OBJ
#undef _CRT_BEST_PRACTICES_USAGE
#include <msvcrt_IAT.h>
#include <Windows.h>
#include <internal_shared.h>
#include <corecrt_internal.h>
#include <winapi_thunks.h>
//msvrctonexit_tablemsvcrt.dll
//EXTERN_C bool __cdecl __scrt_initialize_onexit_tables(int const module_type)
//{
// return tru... | /content/code_sandbox/src/vc_msvcrt.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,634 |
```c
/***
*wcschr.c - search a wchar_t string for a given wchar_t character
*
*
*Purpose:
* defines wcschr() - search a wchar_t string for a wchar_t character
*
*******************************************************************************/
#include <vcruntime_internal.h>
/***
*wchar_t *wcschr(string, c) - sea... | /content/code_sandbox/src/14.0.23918/vcruntime/wcschr.c | c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 238 |
```c
/*++
Module Name:
longjmpc.c
Abstract:
This module implements C support code for long jump.
Author:
Ken Johnson (kejohns) 04-Apr-2013
Environment:
Kernel mode only.
--*/
#ifndef _M_IX86
#define longjmp __longjmp_crt
#endif
#include <vcruntime_internal.h>
#include <setjmp.h>
#include <st... | /content/code_sandbox/src/14.0.23918/vcruntime/longjmpc.c | c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 385 |
```c++
//
// utility_app.cpp
//
//
// CRT startup and termination functionality specific to use of the CRT in a
// Desktop app.
//
#include <vcstartup_internal.h>
#include <eh.h>
#include <ehdata.h>
#include <intrin.h>
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//
// Startup Sup... | /content/code_sandbox/src/14.0.23918/vcruntime/utility_desktop.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,586 |
```c++
//
// exe_wwinmain.cpp
//
//
// The mainCRTStartup() entry point, linked into client executables that
// uses main().
//
#define _SCRT_STARTUP_MAIN
#include "exe_common.inl"
extern "C" int mainCRTStartup()
{
return __scrt_common_main();
}
``` | /content/code_sandbox/src/14.0.23918/vcruntime/exe_main.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 67 |
```c++
//
// delete_array.cpp
//
//
// Defines the array operator delete.
//
#include <vcruntime_internal.h>
#include <vcruntime_new.h>
void __CRTDECL operator delete[](void* block) noexcept
{
operator delete(block);
}
``` | /content/code_sandbox/src/14.0.23918/vcruntime/delete_array.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 53 |
```c++
//
// exe_wwinmain.cpp
//
//
// The wWinMainCRTStartup() entry point, linked into client executables that
// uses wWinMain().
//
#define _SCRT_STARTUP_WWINMAIN
#include "exe_common.inl"
extern "C" int wWinMainCRTStartup()
{
return __scrt_common_main();
}
``` | /content/code_sandbox/src/14.0.23918/vcruntime/exe_wwinmain.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 75 |
```c++
//
// All rights reserved.
//
#include "pch.h"
#pragma hdrstop
namespace Platform { namespace Details
{
CPPCLI_FUNC void Console::WriteLine(String^ s)
{
printf("%S\r\n", s->Data());
}
CPPCLI_FUNC void Console::WriteLine(Object^ o)
{
::Platform::String^ s = o->ToString();
printf("%S\r\n", s->Data(... | /content/code_sandbox/src/14.0.23918/vccorlib/console.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 120 |
```c++
/***
*mehvecctr.cpp - EH-aware version of constructor iterator helper function
*
*
*Purpose:
* These functions are called when constructing and destructing arrays of
* objects. Their purpose is to assure that constructed elements get
* destructed if the constructor for one of the elements thro... | /content/code_sandbox/src/14.0.23918/vcruntime/mehvecctr.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 113 |
```c++
//
// All rights reserved.
//
#include "pch.h"
#pragma hdrstop
namespace Platform
{
template <typename T, typename U>
bool PropertyValueScalarCallback(Windows::Foundation::IPropertyValue^ value, T callback, U context)
{
switch (value->Type)
{
case Windows::Foundation::PropertyType::Boolean:
return... | /content/code_sandbox/src/14.0.23918/vccorlib/object.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,574 |
```c++
//
// vcruntime_stubs.cpp
//
//
// This source file defines stub alternatives for several functions that are
// only present in the static VCRuntime (not in the VCRuntime DLLs).
//
#include <vcruntime.h>
extern "C" bool __cdecl __scrt_stub_for_vcrt_initialize()
{
return true;
}
extern "C" bool __cdecl __... | /content/code_sandbox/src/14.0.23918/vcruntime/vcruntime_stubs.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 169 |
```c++
//
// initializers.cpp
//
//
// Data used in C and C++ initialization and termination. Because this object
// is linked into every module that uses the CRT, we also use this module to
// pass flags to the linker to link with libraries upon which the CRT depends.
//
#include <vcstartup_internal.h>
#include <vcru... | /content/code_sandbox/src/14.0.23918/vcruntime/initializers.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,687 |
```c++
//
// default_precision.cpp
//
//
// Initializes the floating point precision to the default state. This behavior
// is overridable at link-time by linking with one of the link options.
//
#ifndef _M_IX86
#error This file may only be built for x86
#endif
#include <float.h>
#include <vcstartup_internal.h>
... | /content/code_sandbox/src/14.0.23918/vcruntime/default_precision.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 126 |
```c++
//
// utility_app.cpp
//
//
// CRT startup and termination functionality specific to use of the CRT in a
// Windows Store app.
//
#include <vcstartup_internal.h>
#include <roapi.h>
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//
// Startup Support
//
//-+-+-+-+-+-+-+-+-+-+-... | /content/code_sandbox/src/14.0.23918/vcruntime/utility_app.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 332 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.