# 本文件必须用【UTF-8】编码。
# 在 YAML 格式中，井号 # 之后的内容表示注释。

# name 必填。填写常用名
name: 阎佑西

# other_names 可为空。填写其它姓名（比如：原名、曾用名、化名、英文名...）
# 采用 YAML 的【键值对】语法表示。举例如下：
# other_names: {"原名":"张三", "化名":"李四", "英文名":"Tom"}
# 上述举例中，作为分隔符的花括号、冒号、逗号，都采用【半角符号】。
other_names:

# sex 必填。填写性别。用 M/F 代表 男/女
sex: F

# birth 必填。填写出生时间，用【4位数年份】表示。未知年份用 N/A 表示。
birth: N/A

# death 可为空。填写死亡时间，用【4位数年份】表示。未知年份用 N/A 表示。尚未死亡则留空。
death:

# desc 可为空。填写概述，用 YAML 的【多行】文本语法表示，内容是纯文本。
# 考虑到生成“关系图”的展示效果，desc 的内容不宜太长。
desc: |
    阎揆要之妹、秦力生之妻

# links 可为空。放置关于此人的网页链接（一个或多个），使用 YAML 的【list】语法表示。
# 考虑到可信度的问题，首选“维基百科”，其次是“国际权威媒体”。
# 对于客观事实（比如生卒年月、简历），也可以引用国内网站，比如“百度百科”或“政府网站”。
links:

{'repo_name': 'programthink/zhao', 'stars': '7273', 'repo_language': 'Python', 'file_name': '叶挺.yaml', 'mime_type': 'text/plain', 'hash': -2485298526133809833, 'source_dataset': 'data'}


// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2016, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
//   this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
//   to endorse or promote products derived from this software without specific
//   prior written permission of Deusty, LLC.

/**
 * Legacy macros used for 1.9.x backwards compatibility.
 *
 * Imported by default when importing a DDLog.h directly and DD_LEGACY_MACROS is not defined and set to 0.
 **/
#if DD_LEGACY_MACROS

#warning CocoaLumberjack 1.9.x legacy macros enabled. \
Disable legacy macros by importing CocoaLumberjack.h or DDLogMacros.h instead of DDLog.h or add `#define DD_LEGACY_MACROS 0` before importing DDLog.h.

#ifndef LOG_LEVEL_DEF
    #define LOG_LEVEL_DEF ddLogLevel
#endif

#define LOG_FLAG_ERROR    DDLogFlagError
#define LOG_FLAG_WARN     DDLogFlagWarning
#define LOG_FLAG_INFO     DDLogFlagInfo
#define LOG_FLAG_DEBUG    DDLogFlagDebug
#define LOG_FLAG_VERBOSE  DDLogFlagVerbose

#define LOG_LEVEL_OFF     DDLogLevelOff
#define LOG_LEVEL_ERROR   DDLogLevelError
#define LOG_LEVEL_WARN    DDLogLevelWarning
#define LOG_LEVEL_INFO    DDLogLevelInfo
#define LOG_LEVEL_DEBUG   DDLogLevelDebug
#define LOG_LEVEL_VERBOSE DDLogLevelVerbose
#define LOG_LEVEL_ALL     DDLogLevelAll

#define LOG_ASYNC_ENABLED YES

#define LOG_ASYNC_ERROR    ( NO && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_WARN     (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_INFO     (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_DEBUG    (YES && LOG_ASYNC_ENABLED)
#define LOG_ASYNC_VERBOSE  (YES && LOG_ASYNC_ENABLED)

#define LOG_MACRO(isAsynchronous, lvl, flg, ctx, atag, fnct, frmt, ...) \
        [DDLog log : isAsynchronous                                     \
             level : lvl                                                \
              flag : flg                                                \
           context : ctx                                                \
              file : __FILE__                                           \
          function : fnct                                               \
              line : __LINE__                                           \
               tag : atag                                               \
            format : (frmt), ## __VA_ARGS__]

#define LOG_MAYBE(async, lvl, flg, ctx, fnct, frmt, ...)                       \
        do { if(lvl & flg) LOG_MACRO(async, lvl, flg, ctx, nil, fnct, frmt, ##__VA_ARGS__); } while(0)

#define LOG_OBJC_MAYBE(async, lvl, flg, ctx, frmt, ...) \
        LOG_MAYBE(async, lvl, flg, ctx, __PRETTY_FUNCTION__, frmt, ## __VA_ARGS__)

#define DDLogError(frmt, ...)   LOG_OBJC_MAYBE(LOG_ASYNC_ERROR,   LOG_LEVEL_DEF, LOG_FLAG_ERROR,   0, frmt, ##__VA_ARGS__)
#define DDLogWarn(frmt, ...)    LOG_OBJC_MAYBE(LOG_ASYNC_WARN,    LOG_LEVEL_DEF, LOG_FLAG_WARN,    0, frmt, ##__VA_ARGS__)
#define DDLogInfo(frmt, ...)    LOG_OBJC_MAYBE(LOG_ASYNC_INFO,    LOG_LEVEL_DEF, LOG_FLAG_INFO,    0, frmt, ##__VA_ARGS__)
#define DDLogDebug(frmt, ...)   LOG_OBJC_MAYBE(LOG_ASYNC_DEBUG,   LOG_LEVEL_DEF, LOG_FLAG_DEBUG,   0, frmt, ##__VA_ARGS__)
#define DDLogVerbose(frmt, ...) LOG_OBJC_MAYBE(LOG_ASYNC_VERBOSE, LOG_LEVEL_DEF, LOG_FLAG_VERBOSE, 0, frmt, ##__VA_ARGS__)

#endif

{'repo_name': 'jimmy54/iRime', 'stars': '151', 'repo_language': 'C', 'file_name': 'RimeConfigController.m', 'mime_type': 'text/x-objective-c', 'hash': 1601703835538391751, 'source_dataset': 'data'}


/*
 * Units of Measurement API
 * Copyright (c) 2014-2020, Jean-Marie Dautelle, Werner Keil, Otavio Santana.
 *
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 *    this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
 *    and the following disclaimer in the documentation and/or other materials provided with the distribution.
 *
 * 3. Neither the name of JSR-385 nor the names of its contributors may be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
package javax.measure.test.quantity;

import javax.measure.Quantity;
import javax.measure.Unit;
import javax.measure.quantity.Volume;
import javax.measure.test.unit.AreaUnit;
import javax.measure.test.unit.DistanceUnit;
import javax.measure.test.unit.VolumeUnit;

/**
 * @author Werner Keil
 * @version 0.6
 */
public class VolumeQuantity extends TestQuantity<Volume> {
    public VolumeQuantity() {
        super(Volume.class);
    }

    public VolumeQuantity(double val, VolumeUnit un) {
        this();
        value = val;
        unit = un;
        scalar = val * unit.getMultFactor();
    }

    public VolumeQuantity(Number val, Unit un) {
        this(val.doubleValue(), (VolumeUnit) un);
    }

    public VolumeQuantity add(VolumeQuantity d1) {
        VolumeQuantity dn = new VolumeQuantity();
        Object o = super.add(dn, this, d1, VolumeUnit.REF_UNIT);
        return (VolumeQuantity) o;
    }

    public VolumeQuantity subtract(VolumeQuantity d1) {
        VolumeQuantity dn = new VolumeQuantity();
        Object o = super.subtract(dn, this, d1, VolumeUnit.REF_UNIT);
        return (VolumeQuantity) o;
    }

    public boolean eq(VolumeQuantity d1) {
        return super.eq(d1);
    }

    public boolean ne(VolumeQuantity d1) {
        return super.ne(d1);
    }

    public boolean gt(VolumeQuantity d1) {
        return super.gt(d1);
    }

    public boolean lt(VolumeQuantity d1) {
        return super.lt(d1);
    }

    public boolean ge(VolumeQuantity d1) {
        return super.ge(d1);
    }

    public boolean le(VolumeQuantity d1) {
        return super.le(d1);
    }

    public VolumeQuantity multiply(double v) {
        return new VolumeQuantity(value * v, (VolumeUnit) unit);
    }

    public VolumeQuantity divide(double v) {
        return new VolumeQuantity(value / v, (VolumeUnit) unit);
    }

    // mixed type operations

    public AreaQuantity divide(DistanceQuantity d1) {
        VolumeQuantity dq0 = convert(VolumeUnit.cumetre);
        DistanceQuantity dq1 = d1.convert(DistanceUnit.m);
        return new AreaQuantity(dq0.value / dq1.value, AreaUnit.sqmetre);
    }

    public DistanceQuantity divide(AreaQuantity a1) {
        VolumeQuantity dq0 = convert(VolumeUnit.cumetre);
        AreaQuantity dq1 = a1.convert(AreaUnit.sqmetre);
        return new DistanceQuantity(dq0.value / dq1.value, DistanceUnit.m);
    }

    public VolumeQuantity convert(VolumeUnit newUnit) {
        return new VolumeQuantity(scalar / newUnit.getMultFactor(), newUnit);
    }

    public String showInUnits(VolumeUnit u, int precision) {
        return super.showInUnits(u, precision);
    }

    public Quantity<?> divide(Quantity<?> that) {
        // TODO Auto-generated method stub
        return null;
    }

    public Quantity<Volume> subtract(Quantity<Volume> that) {
        // TODO Auto-generated method stub
        return null;
    }

    public Quantity<Volume> add(Quantity<Volume> that) {
        // TODO Auto-generated method stub
        return null;
    }

    public Quantity<Volume> divide(Number that) {
        return divide(that.doubleValue());
    }

    public Quantity<Volume> inverse() {
        // TODO Auto-generated method stub
        return null;
    }

    public Quantity<Volume> multiply(Number that) {
        return multiply(that.doubleValue());
    }

    public Quantity<Volume> to(Unit<Volume> unit) {
        // TODO Auto-generated method stub
        return null;
    }

    public Quantity<?> multiply(Quantity<?> that) {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Quantity<Volume> negate() {
        return new VolumeQuantity(-value, getUnit());
    }

    @SuppressWarnings({ "unchecked", "rawtypes" })
    public final <T extends Quantity<T>> Quantity<T> asType(Class<T> type) throws ClassCastException {
        this.getUnit().asType(type); // Raises ClassCastException is dimension
        // mismatches.
        return (Quantity) this;
    }
}

{'repo_name': 'unitsofmeasurement/unit-api', 'stars': '129', 'repo_language': 'Java', 'file_name': 'config.yml', 'mime_type': 'text/plain', 'hash': 3679187341827677118, 'source_dataset': 'data'}


services:

    #
    # Event Listeners
    #
    elcodi.event_listener.covert_cart_coupons_to_order_coupons:
        class: Elcodi\Component\CartCoupon\EventListener\ConvertCartCouponsToOrderCouponsEventListener
        arguments:
            - '@elcodi.transformer.cart_coupon_to_order_coupon'
        tags:
            - { name: kernel.event_listener, event: order.oncreated, method: createOrderCouponsByCartCoupons, priority: -16 }

    elcodi.event_listener.create_and_save_cart_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\CreateAndSaveCartCouponEventListener
        arguments:
            - '@elcodi.manager.cart_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: createAndSaveCartCoupon, priority: 1 }

    elcodi.event_listener.create_order_coupon_by_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\CreateOrderCouponByCouponEventListener
        arguments:
            - '@elcodi.transformer.coupon_to_order_coupon'
        tags:
            - { name: kernel.event_listener, event: order_coupon.onapply, method: createOrderCouponByCoupon, priority: 0 }

    elcodi.event_listener.load_cart_coupon_amount:
        class: Elcodi\Component\CartCoupon\EventListener\LoadCartCouponAmountEventListener
        arguments:
            - '@elcodi.loader.cart_coupon_prices'
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: refreshCouponAmount, priority: 6 }

    elcodi.event_listener.remove_cart_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\RemoveCartCouponEventListener
        arguments:
            - '@elcodi.manager.cart_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onremove, method: removeCartCoupon, priority: 0 }

    elcodi.event_listener.try_automatic_coupons_application:
        class: Elcodi\Component\CartCoupon\EventListener\TryAutomaticCouponsApplicationEventListener
        arguments:
            - '@elcodi.applicator.automatic_coupon'
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: tryAutomaticCoupons, priority: 16 }

    elcodi.event_listener.validate_cart_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCartCouponEventListener
        arguments:
            - '@elcodi.event_dispatcher.cart_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: validateCoupon, priority: 16 }

    elcodi.event_listener.validate_coupon_duplication:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCouponDuplicationEventListener
        arguments:
            - '@elcodi.validator.duplicated_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: validateDuplicatedCoupon, priority: 16 }

    elcodi.event_listener.validate_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCouponEventListener
        arguments:
            - '@elcodi.validator.cart_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: validateCoupon, priority: 32 }

    elcodi.event_listener.validate_coupon_minimum_price:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCouponMinimumPriceEventListener
        arguments:
            - '@elcodi.validator.cart_coupon_minimum_price'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: validateCartCouponMinimumPrice, priority: 0 }

    elcodi.event_listener.validate_coupon_rules:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCouponRulesEventListener
        arguments:
            - '@elcodi.validator.cart_coupon_rule'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.oncheck, method: validateCartCouponRules, priority: -16 }

    elcodi.event_listener.validate_coupons_from_cart:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateCouponsFromCartEventListener
        arguments:
            - '@elcodi.validator.cart_coupon'
        tags:
            - { name: kernel.event_listener, event: cart.onload, method: refreshCartCoupons, priority: 10 }

    elcodi.event_listener.validate_stackable_coupon:
        class: Elcodi\Component\CartCoupon\EventListener\ValidateStackableCouponsEventListener
        arguments:
            - '@elcodi.validator.stackable_coupon'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: validateStackableCoupon, priority: 16 }

    elcodi.event_listener.update_cart_after_coupon_change:
        class: Elcodi\Component\CartCoupon\EventListener\CartUpdateAfterCouponChangeEventListener
        arguments:
            - '@elcodi.event_dispatcher.cart'
        tags:
            - { name: kernel.event_listener, event: cart_coupon.onapply, method: updateCart, priority: 0 }
            - { name: kernel.event_listener, event: cart_coupon.onremove, method: updateCart, priority: 0 }

{'repo_name': 'elcodi/elcodi', 'stars': '443', 'repo_language': 'PHP', 'file_name': 'AttributeData.php', 'mime_type': 'text/x-php', 'hash': -2751633449119260802, 'source_dataset': 'data'}


/*
   Copyright (c) Marshall Clow 2014.

   Distributed under the Boost Software License, Version 1.0. (See accompanying
   file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

    For more information, see http://www.boost.org
*/

#include <iostream>

#include <boost/config.hpp>
#include <boost/algorithm/algorithm.hpp>

#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>

namespace ba = boost::algorithm;

BOOST_AUTO_TEST_CASE( test_main )
{
//  Second argument must be an integral value
    BOOST_CHECK ( ba::power(1, 1.0) == 1);
}

{'repo_name': 'TGAC/KAT', 'stars': '121', 'repo_language': 'C++', 'file_name': 'using.rst', 'mime_type': 'text/plain', 'hash': -7296997843845535366, 'source_dataset': 'data'}


/*

gse 分词服务器同时提供了两种模式：

	"/"	分词演示网页
	"/json"	JSON 格式的 RPC 服务
		输入：
			POST 或 GET 模式输入 text 参数
		输出 JSON 格式：
			{
				segments:[
					{"text":"服务器", "pos":"n"},
					{"text":"指令", "pos":"n"},
					...
				]
			}

测试服务器

*/

package main

import (
	"flag"
	"fmt"
	"io"
	"log"
	"runtime"

	"encoding/json"
	"net/http"

	"github.com/go-ego/gse"
)

var (
	seg = gse.Segmenter{}

	host         = flag.String("host", "", "HTTP服务器主机名")
	port         = flag.Int("port", 8080, "HTTP服务器端口")
	hmm          = flag.Bool("hmm", false, "use hmm")
	dict         = flag.String("dict", "../data/dict/dictionary.txt", "词典文件")
	staticFolder = flag.String("static_folder", "static", "静态页面存放的目录")
)

// JsonResponse []*segments json response
type JsonResponse struct {
	Segments []*Segment `json:"segments"`
	Err      error      `json:"err"`
}

// Segment segment json struct
type Segment struct {
	Text string `json:"text"`
	Pos  string `json:"pos"`
}

// JsonResp []string json response
type JsonResp struct {
	Seg []string
}

// JsonRpcServer start json rpc server
func JsonRpcServer(w http.ResponseWriter, req *http.Request) {
	// 得到要分词的文本
	text := req.URL.Query().Get("text")
	if text == "" {
		text = req.PostFormValue("text")
	}

	if *hmm {
		segs := seg.Cut(text, true)
		response, _ := json.Marshal(&JsonResp{Seg: segs})

		w.Header().Set("Content-Type", "application/json")
		io.WriteString(w, string(response))

		return
	}

	// 分词
	segs := seg.Segment([]byte(text))

	// 整理为输出格式
	ss := []*Segment{}
	for _, segment := range segs {
		ss = append(ss, &Segment{
			Text: segment.Token().Text(), Pos: segment.Token().Pos()})
	}
	response, _ := json.Marshal(&JsonResponse{Segments: ss})

	w.Header().Set("Content-Type", "application/json")
	io.WriteString(w, string(response))
}

func main() {
	flag.Parse()

	// 将线程数设置为 CPU数
	runtime.GOMAXPROCS(runtime.NumCPU())

	// 初始化分词器
	seg.LoadDict(*dict)

	http.HandleFunc("/json", JsonRpcServer)
	http.Handle("/", http.FileServer(http.Dir(*staticFolder)))

	log.Printf("%s %s:%d \n", "Server listen: ", *host, *port)
	http.ListenAndServe(fmt.Sprintf("%s:%d", *host, *port), nil)
}

{'repo_name': 'go-ego/gse', 'stars': '1369', 'repo_language': 'Go', 'file_name': 'index.html', 'mime_type': 'text/html', 'hash': 1263448678769703775, 'source_dataset': 'data'}


### 武汉肺炎疫情下的机械加工：开工订单也没了(图)
------------------------

#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md)   |   [手把手翻墙教程](https://github.com/gfw-breaker/guides/wiki)   |   [禁闻聚合安卓版](https://github.com/gfw-breaker/bn-android)   |   [网门安卓版](https://github.com/oGate2/oGate)   |   [神州正道安卓版](https://github.com/SzzdOgate/update)

   中国一些机械加工厂主要接外贸订单。（图片来源：robinimages/Adobe Stock）

  【看中国2020年2月25日讯】由于依赖中国的供应链导致零部件供应量不够充分，一些国家的工厂面临停工状态。中国一些

   机械

  加工厂主要接外贸订单，为美国、日本、韩国和德国的工程机械提供液压件和自动化机械手。

  如果往年中国黄历新年假期后的正月初八复工，交货就没有问题。现在

   武汉肺炎

  疫情之下，加工厂没有办法复工，液压件供不了，客户的液压箱组装不了，导致工程机械没有办法整个交付。机械加工厂老板表示，国外的客户等不起，所以客户就订单转到了印度或者东南亚了。

  尤其有的机械加工厂所做的机械配件需要相应认证才能进入客户的生产线，这就意味着即使是准许开工，机械加工厂也要面临长期零外贸

   订单

  的局面。订单转掉后，国外订单很少会再转回来的。除非有新的东西要开发，但是一个新品的开发周期非常长。

  机械加工厂的自救办法是开发国内的客户，尽快在医疗配件等与疫情防控相关的行业找到自己的坐标定位。但是，这很困难。

手机上长按并复制下列链接或二维码分享本文章：

https://github.com/gfw-breaker/banned-news/blob/master/pages/p5/924197.md

原文地址（需翻墙访问）：https://www.secretchina.com/news/gb/2020/02/25/924197.html

------------------------
#### [首页](https://github.com/gfw-breaker/banned-news/blob/master/README.md)  |  [一键翻墙软件](https://github.com/gfw-breaker/nogfw/blob/master/README.md)  | [《九评共产党》](https://github.com/gfw-breaker/9ping.md/blob/master/README.md#九评之一评共产党是什么) | [《解体党文化》](https://github.com/gfw-breaker/jtdwh.md/blob/master/README.md) | [《共产主义的终极目的》](https://github.com/gfw-breaker/gczydzjmd.md/blob/master/README.md)

{'repo_name': 'gfw-breaker/banned-news', 'stars': '105', 'repo_language': 'Python', 'file_name': 'hp-12202019112936.md', 'mime_type': 'text/plain', 'hash': -4091101363746270444, 'source_dataset': 'data'}