query_id
string
corpus_id
string
query
string
code
string
label
int64
0fb9ba08aa5d86881cbe6ed38cca3a9c
435443d77815c10bb17c19a8690f88a7
Creates a deep clone of this <see cref="IMessageEncoder"/>, including
{ var clone = new MessageEncoderSettings(); foreach (var key in _settings.Keys) { clone.Add(key, _settings[key]); } return clone; }
0
ff4f49e1fff4b8f1a98a565b2046cf3e
153d4498f9ffbc8e3f6b2b6fc677e4c5
Amazon Checkout v2 Reporting APIs - Create Report Submits a request to generate a report based on the reportType and date range specified.
{ var options = new InvokeOptions(); options.RequestMarshaller = StartReportCreationRequestMarshaller.Instance; options.ResponseUnmarshaller = StartReportCreationResponseUnmarshaller.Instance; return InvokeAsync<StartReportCreationResponse>(request, options, cance...
1
13fb0dba698ac77431f9d1371c883055
fe970c772dff4a11811c993ad94dc661
将html实体名称/实体编号转为html标签
def replaceCharEntity(htmlstr): CHAR_ENTITIES={'nbsp':'','160':'', 'lt':'<','60':'<', 'gt':'>','62':'>', 'amp':'&','38':'&', 'quot':'"''"','34':'"'} re_charEntity=re.compile(r'&#?(?P<name>\w+);') sz=re_charEntity.search(htmlstr...
1
fce4851296eca711162e02843797a3a5
55605284dcf81338327cb7ee0a109c91
List all columns.
class ColumnController extends Controller public function index() { return view('admin.columns.index'); }
0
933835515360376245f5ec9d2df325ed
4574eb9d0a31bc54151521b2d0c3dfb9
获取群列表分页
export class WeworkchatApi public static pageGET( params: WeworkchatPageGETParam, config?: AxiosRequestConfig): Promise<Page<GroupChatPageBO>> { return axios(Object.assign({ url: `/api/v1.0/weworkchat/chat`, method: 'get', params, responseType: 'json' }, config)) as any }
1
1238406f9aefd2c926c2b4b9acccb54f
a28592d9e6449930ee9198f634073439
Check if two public keys are equal.
ifapi_cmp_public_key( TPM2B_PUBLIC *key1, TPM2B_PUBLIC *key2) { if (key1->publicArea.type != key2->publicArea.type) return false; switch (key1->publicArea.type) { case TPM2_ALG_RSA: if (key1->publicArea.unique.rsa.size != key2->publicArea.unique.rsa.size) { return false; ...
1
9df9bd3012c39f61d4abf94869d4b269
92d26783fa8bff3bf0bb422e029cec05
重写OnClickListener接口的onClick方法
internal interface IKit fun onClick(context: Context?)
0
665c5fbd897a3097325097d2111e1982
63b599f28c53bf30f97be8f2c5498059
Callback function receiving raw IMU-data
{ imu_calib_data_.header = msg->header; imu_calib_data_.angular_velocity = msg->angular_velocity; imu_calib_data_.linear_acceleration = msg->linear_acceleration; }
1
b8c2b47c4c3de9aa721cef8676168c11
9adb20f7f2f3cd7c40a36c5b4860a5c9
@brief 指定穴位NG计数器加1,并且发送NG结果
static void addNgCount(u8 port) { FlagHand * pErr = errHandCreate(); s_ngCount += (1 << (2*(port - 1))); if (s_ngCount & 0b10101010){ pErr->setVbStatus(EX_DRY_S); pErr->setErrBit(ERR_NEED_DRY); s_ngCount = 0; } if (1 == port) pErr->setVbRes(EX_NG1_S); else if (2 == port) pErr->setVbRes(...
1
9034ccded91ab59b8422492c0d6971a8
c3ccf99fbaecacce45098be97a9a8a6f
Called when the user indicates that they want to view event logs.
namespace Microsoft.TeamFoundation.Migration.Shell.View public class ViewLogsCommand : ViewModelCommand<ShellController, ConfigurationModel> public override void Execute(object parameter) { OpenLogs(); }
1
a2ec1182c2e3d9296077e546528dd8c9
24ff57b16daa04f5397f3d36e58e83c4
Get qteReserv
class Tarifs public function getQteTr1() { return $this->qteTr1; }
0
84546395b518aef06641450c987167cd
702a74dd3f1b0d8e07e61ef18f3c0168
获取班级的视频信息
{ $array_result = array(); $sql = "SELECT id,status,title FROM ".TABLE_CLASS." WHERE classroom_id = ".$int_classroom_id; $array_result = $this->db->query($sql)->row_array(); return $array_result; }
0
e10e7b100c268d1d5420055b3c99d25e
8459c2fe69c8b4764604523fd1654f4e
strlen which skips ansi esc sequences
static size_t strLenStripped(const char *pcsz) { size_t cch = 0; for (size_t i = 0; pcsz[i] != '\0'; ++i) if (pcsz[i] > 32 && pcsz[i] < 127) cch = i; return cch + 1; }
0
b116e294db98d671f845205bcc4ea59c
50acf6105f76d6fb0b5135cc780cbf9e
Select job definitions which have no tenant id. Can be used in combination with {@link #tenantIdIn(String...)}.
namespace org.activiti.engine.runtime ISuspendedJobQuery jobTenantIdLike(string tenantIdLike);
0
0221e344cc805f8e323590d000d8af67
a67e11418327c2a38e4b542e78051687
Add cateogory_id from the URL to the serializer
class InfoModelSerializer(serializers.ModelSerializer): def get_fields(self): fields = super().get_fields() if self.context["request"].method == "GET": fields["category"] = InfoCategoryModelSerializer(read_only=True, required=False) return fields
0
148d4011481f7eb54ca579710883d499
b8661a782f24fe116412e422d5ced02d
Verifies VXLAN network segments are not supported.
options = (('neutron_l2_pop', True), ('neutron_dvr', True)) self._deploy_with_neutron_configuration( "deploy_toolchain_neutron_vxlan_l2pop_dvr", config={ "net_provider": "neutron", "net_segment_type": settings.NEUTRON_SEGMENT["tu...
0
8484a3b2da47f6284e6ad9ad3ae6c641
a3eb0c4bce25f9707f12a2f3bac3d070
Gets the NBT of the underlying item stack.
CompoundTag getNBT();
1
a1a5e4ab3fc16996f632a81881571785
3d7cd9446b530301f4a09d092a9ef321
Function to invoke long click on certain place button. 2000ms by default.
class AdbExt(object): def long_click(self, x, y, duration=''): self.util.shell('input touchscreen swipe {} {} {} {} {}'.format(x, y, x, y, duration))
1
bd42005cb6e2f8a154f9863bde845e58
180b43e935a26be724325aec12467b7c
только то мороженое, у кторого есть флаг on_main
class V2015 def meals_on date @dish_ranges.select{ |r| @csv.by_col[date][r].join.include?("KC") } end
0
66bb3e223bb94989402bd5a6418a6e39
9f64f75d5d997fe9d897013a68928584
Metodo que devuelve el array de las celdas de tipo pasillo
{ std::list<Vector2D> cells; Vector2D* pos; int xhalf = this->_hSize/2; int yhalf = this->_vSize/2; for (int i = 0; i < this->_hSize; i++) { for (int j = 0; j < this->_vSize; j++) { if (this->_scenario[i][j] == CORRIDOR && (i<xhalf-2 || i>xhalf+1 || j<yhalf-2 || j>yhalf+2)) { ...
1
3b56d34a95d0a938cc15c0268eeaf245
35ea6a129540f1b9a0c801cdee68bfc6
Creates a new Graph @Args: vs: list of vertices es: list of edges
class Graph(common.Drawable): def __init__(self): self.Vertices = [] self.Edges = set()
0
b6c7c5285c2ba4ffeaccdbfc3e89c2a9
4add24faf07beceaf56d5867d7510e41
Returns data points for the given time range. Both ends of the time range are included if possible.
class BaseReader(object): def fetch(self, startTime, endTime, now=None, requestContext=None):
1
33ac2ca4ca5ff8b5867e7cca7e7b5df4
df63a193e00d6c4e89e3a3b19ed670e4
display hours and location page
buildHours (start,finish); for (var f = 0; f < allLoc.length; f++) { fillInfo(f); } getTotals(); createHeader(); renderAll(); createFooter(); }
1
b1058cb5c93405a363823fb687b6692f
f31883fd2b80bf05d36e5bff0890f512
Create a new string output stream.
class PhpOutputStream extends ResourceStream public function __construct() { parent::__construct('php://output'); }
0
20f07773e443a62913ec7cdae8c1a5b6
ad32a7fcf5f53baa692175f0205bd30d
Converts Genotype to the compact representation
byte[] result = new byte[2]; result[0] = (byte) ((genotype >>> 4) & 0xf); result[1] = (byte) (genotype & 0xf); return result; }
1
4e00af01fcf26cff894c78df4a918372
9c729e39b02515426a3b1a1faf33b576
Приведение элементов формы к исходному состоянию.
export class TeamComponent implements AfterViewInit undo(): void { if (this.mode == "update") { this.initForm(); } else if (this.mode == "create") { this.cleanForm(); } }
1
b0b4a1190078c9863b02cb6296654832
7b427bd518856b82ef1a970df266bee9
---------------------------------------------------------------------------------------------- #3 Synchronous Compilation ----------------------------------------------------------------------------------------------
string smtp_host, int smtp_port, string accountUsername, string accountPassword, System.Net.Mail.AlternateView[] alternativeViews) { AsyncSimpleEmailDelegate3 myAction = new AsyncSimpleEmailDelegate3(SyncEmail3); myAction.BeginInvoke(from_address, from_name, to, su...
0
70ad713a4fa2e97f2d2826781d56c218
fec6f736d35cd8bb433f6eef2070ea32
Get Kicked Users Returns a list of kicked users. Accepts the name of the clan.
public final class MSPacketRepository public static void sendClanKick(String username, String name) { IoBuffer buffer = new IoBuffer(9, PacketHeader.BYTE); buffer.putString(username); buffer.putString(name); WorldCommunicator.getSession().write(buffer); }
0
8f0bb8708c66dd48b3dec4c74ee7ce3b
7eb950049ddab7782e3cdd9398bf1a4b
Returns list storing all High priority FlashCards.
void commitFlashcardList();
0
e90bf40b1b0744f0600712884da6e38a
99b5a608fdb87ec36b4f636576264b5c
publishes specified velocities on /cmd_vel topic
def sendTwist(forwardVelocity, angularVelocity): global cmdPub cmdPub.publish(createTwist(forwardVelocity,angularVelocity))
1
6ecc51292af5cc7f02775311f3b49d2f
5b04a65664530b2a0e55c83a7b220cd4
This is the event handler for clicks on the 'Cancel print job' button.
namespace Screeners.Modals public partial class PrinterSelectionForm : MoviesModalBase protected override void DoCancel() { base.DoCancel(); }
0
f1265551f3082d5e3cdecfc0261f0bc0
9b879032c54842ccb554b5be22c4aa0c
Enable single image compression
class RISE_Disable_Image_Compression public function init() { add_filter( 'jpeg_quality', array( $this, 'set_compression' ), 999 ); add_filter( 'wp_editor_set_quality', array( $this, 'set_compression' ), 999 ); }
0
6a7d134c15c186f61a82c0b829319d5a
a91cb89b139fede8f4a29061e104626b
Retrieves the profile name of the currently connected network.
namespace Vanara.PInvoke public static partial class WlanApi [return: MarshalAs(UnmanagedType.LPWStr)] string GetProfileName();
1
05870e4a5e3319844b743c6474c2701c
64de579a78a342ad1711e80162caca63
Проверка на ввод времени
bool CheckTimeValid(string& answer) { cin.clear(); getline(cin, answer); if (!regex_match(answer, CORRECT_TIME_FORMAT)) { cout << "Please try again (format: hh:mm [am|pm]): "; return false; } return true; }
1
820240b980579acf5017688649bed47f
44d1ce6020aac866e8d2d208a25d2d69
Обновити дані по абонементу у клієнта
class AbonementController extends AdminController public function actionEdit($id) { $model = AbonemModel::model()->where("`id`='{$id}'")->findRow(); if(isset($_POST['Abonement'])) { $model->setAttrs($_POST['Abonement']); $model->save(); $this->redirect($this->url); ...
1
2259da1b4d1f34d0acca650e6352d755
04776f2db76e05b1c3b931ce7d748814
Gets a list of anomalous metrics for a measure in an anomaly group.
namespace Amazon.LookoutMetrics Task<ListAnomalyGroupRelatedMetricsResponse> ListAnomalyGroupRelatedMetricsAsync(ListAnomalyGroupRelatedMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
1
b243e1aac263cf33e78632ba603a8053
856074ed38c2e24804aabb9003def42d
Used to silence print statments when scripts are ran from a cron. Note: http://stackoverflow.com/q/2828953/76267
def _silence(): old_stdout = sys.stdout old_stderr = sys.stderr sys.stdout = _DummyFile() sys.stderr = _DummyFile() exception_occurred = False try: yield except: exception_occurred = True sys.stdout = old_stdout sys.stderr = old_stderr raise if not...
1
4574a44dfb61dc76d89261296c61aef2
db234528c4137747380b110a40d8d917
Traslada el scroll al tope de la pagina en el form de alta de un PD.
export class BecomeHostComponent implements OnInit navigateToForm() { window.scrollTo(590, 590); }
0
674dd26c254c8b4ee925c4ac33325429
4a8bb15831dac053c99170cadb76fec1
Returns value of 'vigour' property
class RoleStateMemento public function getVitality() { return $this->vitality; }
0
c982559913c209c5dafceb4b9213b090
8199c774bb1031b30aa28e81a1513706
Set Z_PautaComercial ID.
{ if (Z_OfertaVenta_ID < 1) set_Value (COLUMNNAME_Z_OfertaVenta_ID, null); else set_Value (COLUMNNAME_Z_OfertaVenta_ID, Integer.valueOf(Z_OfertaVenta_ID)); }
0
2e84b2fc69c8b5975e930f5efbc180e3
e2da8f2bbc0835e63c8ce8775886eebf
Ensure the specified webhook URL matches our expected format
def test_env_webhook_url(): webhook_url = os.getenv("MS_TEAMS_WEBHOOK", None) assert webhook_url assert webhook_url.find("https") == 0
1
f9410eaad53b7c60feda2bc7c11c4d28
0352c06c8e33f518371d4d14a7b7ced6
Check if <msgpos> has a value
class WaveZombie extends \DrSlump\Protobuf\Message public function hasPosition(){ return $this->_has(3); }
1
b101a1451cd374eaf2cea21616adc20c
d0213f57b591564734f7def59d714043
Returns the command for adding a delay with netem
class TestbTCPFramework(unittest.TestCase): def test_delayed_network(self): run_command(netem_change.format("delay "+str(timeout)+"ms 20ms")) global number print("\n\nTimeout network:",number) doTheRest(str(number))
1
f969251b0129286130dac4369d12ed7c
5fb96963205c1178e09c931c87af7246
Charge le fragment permettant l'affichage des options de synchronisation.
public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.synthese, menu); return true; }
0
8bc9a4589c2b3e5c59cb1cb00e5a19d7
9b06c19d275848f72ee547367da8fb6c
跨服战力下降最低百分比
local kf_info = self:GetRoleData() if kf_info.cross_1v1_total_win_times > 0 then return math.ceil((kf_info.cross_1v1_total_win_times / kf_info.cross_lvl_total_join_times)*100) else return 0 end end
0
d931478fc29d031a41f7187dafc30baf
6d8906144afb64a60c358e8e8aae4c6f
获取答疑室记录的用户列表
@Component @ActionMapping(value = "300") public class RoomAction @MethodMapping(value = "1-0002") public void getRoomUserList(Head head, @Parameter("roomId") String roomId) { }
1
3af1a4526b8f04f97680c0cb9f640fb3
6a2f05376cecee212dd4cb5a7a7bd50d
获取自定义格式服务器时间 时间格式,如:yyyy-MM-dd HH:mm:ss
function getServerTime(format) { if (!format) { format = ""; } var result = getServerData({FORMAT: format}, "home/actions/javagetservertime.xml"); return result.TIME; }
1
360e0ff57819263c2e7fe22c6f69e121
470817197dbbdff829576000dfa4ca91
Getter for all order field displaynames.
{ return array( 'orderNumber' => Craft::t('Order Number'), 'dateCreated' => Craft::t('Create Date'), 'totalPrice' => Craft::t('Total Price') ); }
1
2b05f65e4f80cffe05a1be3228ff040f
917f33171c9720d370cfab19ae2f7fb3
重新设置按钮背景色
namespace TWLottery.Src.Lottery.BingoBingo public partial class BingoBingo : Form private void ChangeBtnBackground(Button btn) { if (btn.BackColor == Color.Gainsboro) { btn.BackColor = Color.Orange; } else { btn.Back...
1
77573dda4d75c4a1c7e3ddfe92ce3bec
a9ce75fd664abbe42dec27d0f0ba0c19
-------------------------------------------------------------------------- ● 接近主角 --------------------------------------------------------------------------
public class Canoneer : EnemyController protected override void Approach(GameObject target) { this.transform.position = Vector3.Lerp(transform.position, target.transform.position, 5f * Time.deltaTime); }
1
19101e9a23fce27206fb294ab9eafd5a
88235f7b2ab1ff2869d9ecd3b1929e72
Reads the current block into `memPage` buffer
RC writeCurrentBlock (SM_FileHandle *fHandle, SM_PageHandle memPage) { if (fHandle == NULL) { return RC_FILE_HANDLE_NOT_INIT; } return writeBlock(fHandle->curPagePos, fHandle, memPage); }
0
6d95b039296d68e9449394b1de00e72e
9120dadf1cbacc9df02c79d9f470aa9e
Combine the metadata for the tracks of two different sources.
def merge_metadata(metadata, observation): return merge(metadata, observation)
1
baf85998ed1c32cec39ab770e794c036
9444efc4a689d13dc609bac736396c14
sets all the pointers in the array to be null this is acceptable since the array is not supposed to have ownership of the objects to which it points to
for(int i = 1; i < 15; i++){ heartsArr[i] = NULL; spadesArr[i] = NULL; clubsArr[i] = NULL; diamondsArr[i] = NULL; } }
1
be9254280faa3b3b7138be1633c0e713
398a518e99d976279c95f48525e47b9e
Get accessor for persistent attribute: consentId
@ApiModelProperty(required = true, value = "Consent request template short Id.") public String getShortId() { return shortId; }
0
f1e8e5448d472f52b400ff4064c9fa9b
64ee69557056898e734230d0f87d3a42
locates and returns a pointer to the first instantiated world with given ID
std::shared_ptr<Room> World::GetRoom(RoomID v) { return this->rooms[v]; }
0
6d962547a77a5bb3d7b6c888e988693a
8729f641a176fbd05e79e1612077cea6
Returns true if given interest is chosen by the user
class DatabaseDate function getInterest($interest) { $sql = "SELECT interest_id FROM interests WHERE interest = :interName"; $statement = $this->_db->prepare($sql); $statement->bindParam(':interName',$interest); $statement->execute(); return $statement->fetch(PDO::FETCH_ASSO...
0
435a75df6de437722483b7ee07b3f38b
625654ad08f374f70dfe6f6db96086b9
Function description: display string (no wrapping) Entry data: x, y starting point coordinates p string start address Return value: None
void gvram_strings( int x, int y, char *mes, char col ) { if ((x < 0) || (x > GVRAM_W) || (y < 0) || (y > GVRAM_H)) { return; } int l = strlen(mes); for (int i = 0; i < l * CHAR_W; i += CHAR_W) { if (x + i >= GVRAM_W) { return; } else { gvram_put_char(x + ...
1
f5d207d484663d3e5689bacfba303f3d
714e8223c7a96e5973333842789eb54f
@brief Sets up a menu with a @p parent_menu (if any) and a @p parent_item (if any), which is item which will go into this menu when clicked.
DebugMenuLabel* item ){ if (item->getParent()){ item->detachSelf(); } item->setParent(this); items_.push_back(item); }
0
0a8e306afd2f299c3772722d36251b4e
b4612a613f14fa1fdbe118a15cfc3a68
Demonstrate ECC crypto functionality of A71CH without relying on Host Crypto
char *d, char *k, char *R, char *S) { uint32_t volatile temp_result1[18], temp_result2[18]; int32_t i, ret = 0; if (ecc_init_curve(crpt, ecc_curve) != 0) { ret = -1; } if (ret == 0) { CRPT->ECC_KSCTL = 0; for (i = 0; i < 18; i++) ...
1
5eec55dd397bd71b6d4af2ae628c31be
f64bb586d4f32f956cd948e3681a7a4a
中序遍历(循环实现“左根右”)
public class BinaryTree<T> public void inOrderByLoop() { Node<T> current = this.root; Stack<Node<T>> stack = new Stack<>(); while (true) { if (current != null) { stack.push(current); current = current.leftChild; } else { if ...
1
a7ecf9140b38bece50609f1015f38068
59e5f6679418d362d590d42a5bed022c
初始化用户 没有则新建 有则直接返回
obj = super(UserLogin,cls).get(uid) if not obj: obj = cls.create(uid) obj.put() return obj
1
f8cb68c49de0bbf461bef9ed5e424610
d555d986c5e131a06a838fca9c78ee0b
Possible party size options for this ride. An empty array indicates selecting a party size is not required.
class FoodEstablishmentReservationSchema extends ReservationSchema public function setPartySize($partySize) { $this->properties['partySize'] = $partySize; return $this; }
0
d92ae40144de14f18364c22eecc2db08
12fb75dc0e14c0419684cf12fb7a56c2
Called when this application is no longer the device administrator.
public class DeviceAdminSample extends DeviceAdminReceiver @Override public void onDisabled(Context context, Intent intent) { super.onDisabled(context, intent); }
1
850297ec0caa01e3907dfb4e942e82f0
c15adb062875a2ef26438453cd2a27d4
Handles the RowCancelingEdit event of the ProductsGridView control.
public partial class ProductList : System.Web.UI.Page protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) { GridView1.EditIndex = -1; _getData(); }
1
9b6c64065636ffa3ab9de9bdae7f03d1
dc426d2d3691fbf997fd96a01dafc256
Получаем список свидетельств соответствующих поисковому шаблону
namespace GadzhiDAL.Services.Implementations.Signatures public class SignaturesService : ISignaturesService public async Task<IList<SignatureDto>> GetSignatures(IList<string> ids) { using var unitOfWork = _container.Resolve<IUnitOfWork>(); var signatureEntities = await unitOfWork.Ses...
0
b8efbca8b7196d61b8de3acc2c0723c6
8529d63f1baeaf40a4b837400af19ff2
Returns {@code true} if {@code view} is a descendant of a {@link WearableDrawerView}.
boolean isForViewType(@NonNull T items, int position);
0
cb889bd80f7b92ff7b95db9fec6b70cf
362ddab1ae6a6ea6304de8f37f7d4199
定时查询退款订单并更新数据库信息
@Component("wechatMobilePlugin") public class WechatMobilePlugin extends AbstractPaymentPlugin implements IPaymentEvent, IEveryMinutesExecuteEvent @SuppressWarnings("unchecked") @Override public void everyMinutes() { PayCfg payCfg = this.paymentManager.get(this.getId()); Map<String, String> params = JSONObject.pa...
1
007d89fa948f093531cf0f2a08d8fa9f
46dcc0489c4e0629f4defff3913df2f8
Returns with the date format for YANG revisions.
if (this.date == null) { this.date = this.auditReader.getRevisionDate(getRevision()); } return this.date; }
0
77fb006c850637cc8b94d394e918453d
836a8831b751c738faf25eb79b34c70b
取兄弟节点的总尺寸
if(autoSizeStack.length>0){ for(var i=0;i<autoSizeStack.length;i++){ var node = $(autoSizeStack[i]); var p = node.parent(); var pp = p.parent(); var psize = Utils.getInnerSize(p); var pW = psize.width; var pH = psize.height; var size = getSiblingsSize(node); Utils.setSize(node, {wid...
1
ecd559a4b6d1839a647d771838ded7a1
6313f21840a7c02363425e2bb88be49d
Stacked convolutional denoising autoencoder implementation. See Also: Schmidt et al. "Stacked Denoising and Stacked Convolutional Autoencoders" (2017)
reconstruction_criterion="MSELoss"): assert 0 <= dropout < 1 super(VariationalAutoEncoder, self).__init__() self.ksi = ksi self.latent_dimension = latent_dimension self.reconstruction_criterion = getattr(nn, reconstruction_criterion)() self.activation = n...
0
dc5e77e8271a90719f56728ca8904a65
6620b4e9c4ca6d61524f9fac3bcda538
Expected output
fn_input = [ "[cli][info] Available streams: 144p (worst), 270p, 360p, 540p, 720p, 1080p (best)", "[cli][info] Opening stream: 1080p (dash)", "Input #0, matroska,webm, from 'pipe:':", "unexpected=", "=unexpected", "unexpected=unexpected=une...
1
a91d6c47f04c16d3556044a52d816788
fad827578f989d5add288f020b16959e
Get the full path for a sitemap item within a sitemap
abstract class AbstractDatabaseSitemapBuilder abstract protected function sitemapUrl();
0
449b6b752605025d65c049dae1c946a2
65be6462ee3ac51e5a73e4b04c5ad107
Method to mute a call.
if (sessionid.length()>0 && pluginRegistered) { RESTConvenienceClass.SendRESTCommand( BaseURL + "Spokes/CallServices/MuteCall?name=My%20Java%20Plugin&muted=" + muted ); } else { System.out.println("Error: Yo...
1
d3bc4f6722e3578d14f26e4f572ce94c
d3cab2ebd7d9032a75fab29a73e42454
添加资源的code和名称
public class CodeResourceMapping private static void intCodeResource() { initActionCodeResource(); initNormalCodeResource(); }
0
81ac430d93b5668f68df7193e7ef04f8
7a5e5ab44849c0458c195bbfa55ad78a
Initializes the until month spinner with the proper values.
private void updateSpinners() { if (mCurrentDate.equals(mMinDate)) { mDaySpinner.setMinValue(mCurrentDate.get(Calendar.DAY_OF_MONTH)); mDaySpinner.setMaxValue(mCurrentDate.getActualMaximum(Calendar.DAY_OF_MONTH)); mDaySpinner.setWrapSelectorWheel(false); mMont...
1
fcdc13abb63dd756f41a9c51af230614
213647a58da45d6f7adb91803e7bb771
图片的url转换成等级
if "很差" == text: return 1 elif "较差" == text: return 2 elif "还行" == text: return 3 elif "推荐" == text: return 4 elif "力荐" == text: return 5
0
f2eebce8aebb2b9ecf98384b1a7ad391
feb27a0eeb24932d8f7118f3a5addd65
根据filters条件查询self.model模型类的对象
query = db_session.query(self.model_class) for filter in self._query_filters(): query = query.filter(filter) if hasattr(self.model_class, "priority"): query = query.order_by(self.model_class.priority) return query
1
a553c59b81d00a55611d022388e8bfe3
a751ce0d597459c1d1643e32d86c0b00
玩家签到后更新银两元宝数
C.super.updatePlayerMoney(self,info) local playerId = info["playerid"] local blance = info["coin"] self.scene:setPlayerBlanceByPlayerId(playerId,blance) end
1
0c9121897e4d56123f3d000bcef48f44
2089d7c127e3bd3f66fef1e1e6340220
SameSite cookie parameter (strict, lax, or none) Cookies without a SameSite attribute will be treated as SameSite=Lax Cookies with SameSite=None must also specify Secure, meaning they require a secure context
class SessionInterface: def get_cookie_samesite(self, app: Flask) -> str: return app.config["SESSION_COOKIE_SAMESITE"]
1
db973c0b8d877e8a1a659a1e792297dc
32aadd31c17de8bede45ac64cb169227
Get the elements that this helper's element connects to.
function getAutoPlaceClosure(source, element) { var allConnected = getConnected(source); if (source.host) { allConnected = allConnected.concat(getConnected(source.host)); } if (source.attachers) { allConnected = allConnected.concat(source.attachers.reduce(function(shapes, attacher) { return shapes...
1
a02a7dddfc808b2aa6e92b641cf49143
28979d777049737b5f247ba5f5c3884b
保存告警信息(10分钟未收到数据更新的飞机)
{ MySQLHelper.ExecuteNonQuery("update alarms set alarmcontext=@text where Id=1;", new MySqlParameter("text", msg)); }
0
ad19a3611d0fb363d1c0c9823cbf3b21
f0978152cb8de0ced744a95fcf98a288
Consumes the remnants of a bad url from the stream of code points, "cleaning up" after the tokenizer realizes that it’s in the middle of a {@link BadURLToken} rather than a {@link URLToken}. This returns nothing; its sole use is to consume enough of the input stream to reach a recovery point where normal tokenizing can...
for (int i = off; i < off + len; i++) { if (isBadXmlCharacter(cbuf[i])) { cbuf[i] = '\u0020'; } } }
0
4ea0e5daa0425d6ed15d0418b75cd8db
df4d6be7e4aeb697434f4df2ee713c6e
计算击球分数
this.calc_3x_zhxfs = function(balls) { if ( balls.length !== 3 || balls[0] === '' || balls[1] === '' || balls[2] === '' ) { return 0 } const ba0 = balls[0].split('|') const ba1 = balls[1].split('|') const ba2 = balls[2].split('|') const c = ba0.concat(ba1).con...
0
67a238ea1c89bbd854e7e93c423a14be
15c13f8041b6432613c01e53a4187214
Get breaker instance.
clock := &breakerClock{} return circuit.NewBreakerWithOptions(&circuit.Options{ BackOff: newBackOff(clock), Clock: clock, ShouldTrip: circuit.ThresholdTripFunc(1), }) }
1
58cde087bac6683c5e1b7686794cde37
d774ca3d7bbf87a14bd298ad51265355
Java中,null是一个关键字,用来标识一个不确定的对象。 因此可以将null赋给引用类型变量,但不可以将null赋给基本类型变量。
public class UnBoxingNpe public static void main(String[] args) { Long count = null; long count_ = count; }
1
eb841e832aab0085d7c4dae7b16d47b5
96f1778ddc1c24ce67f8e9073c67bbcd
@brief 增加指定HTTP头部
namespace ZLMediaKit.CSharp.PInvoke internal partial class ZLMediaKitMethod [DllImport(NativeLibrary, CallingConvention = CallingConvention)] internal static extern void mk_http_requester_add_header(IntPtr mk_http_requester, [In()][MarshalAs(UnmanagedType.LPStr)] string key, [In()][MarshalAs(UnmanagedType.L...
1
95f66ef25afd419e9e7298c8f8cb6093
d987f0374831c3ea5e5c40210425b8bf
Display Schedules for a car
while((document.getElementById("scheduleView")).firstChild ){ (document.getElementById("scheduleView")).removeChild((document.getElementById("scheduleView")).firstChild ); } const scheduleInput = document.getElementById("scheduleN").value; fetch(`/api/schedules/${scheduleInput}`) .then(r...
0
a3bb8d081cea607788d6a0dfa01cf85c
a7aabb0f4a8a4a02b4a96413b97a7d8a
Função que retorna Delta
def delta(param): value=list(param[1]) deltaValue=abs(value[0]-value[1]) return deltaValue
1
316815402c935ed70a4428ae83d31df0
e3eb373977c3f2296d3eae2b34475abf
多线程上传单个文件
public class OfficeFileConvertUtil{ private static void fileConvertByMoreThread(final Map<String, String> map){ executorService.execute(new Runnable() { @Override public void run() { try { runFileConvert(map); } catch (Exception e) { } } }); }
0
2f6d62b52cb333bfd9cc7d8e3252b391
00fe3447ed5ca7abb15c8afc7b350f0f
Put a sentinel marker at the end of the token_stream
class EndToken(object): def __init__(self): return
0
452cf6988a82ccaee1322933781300ed
a3e90fdb95f74547a59dc28b59051c11
计算两点构成的直线的弧度
local p = {} p.x = p2.x - p1.x p.y = p2.y - p1.y local r = math.atan2(p.y,p.x)*180/math.pi return r end
0
e32b3fe5e6ee3e089e8b14d4a9a775d7
5f42a6cefb426740f502ffe347789c15
r"""Get Good Friday for a given year.
day = Easter(year) while day.weekday() != 4: day -= datetime.timedelta(days=1) return day
1
737ba6195e875e2a3c414703256b2c85
af0f6260b7be2f95d475037004b97441
Savoir si un emprunt existe deja
@Service public class IEmpruntServiceImpl implements IEmpruntService @Override public Emprunt findByCopie_Id(Long id) { return iEmpruntDao.findByCopie_Id(id); }
1
99ed9d5d79c981b39b6d55cc609bc921
c9f7ea8b44d44f33e2b3f50a5ff0abdb
获取指定拓扑文件夹ID的连接信息.
List<Link> getEdgeByFolderId(Long folderId);
1
8632b69d358fb91e82748ca8389ac462
4460d88dfb407444b86830c2cbb44d5e
“修改受控仪表设备”接口
@RestController @RequestMapping("/water/device/") public class WaterDeviceController extends AbstractController @RequestMapping(value = "modifyWaterDevice/{projectId}") public Data modifyWaterDevice(String json){ return waterDeviceService.modifyWaterDevice(json); }
1
0b901d658433e30b3d00dfae4f974b26
46b4d81a3b900e5317694a8dccd4aa46
metodo per la validazione dell'orario di inzio e di fine turno controlla che l'orario di inizio non sia dopo o sia uguale a quello di fine
public class clientMain public static boolean timePeriod(String startTime,String endTime) throws Exception{ SimpleDateFormat sdf = new SimpleDateFormat("HH:mm"); Date currDateStart = sdf.parse(startTime); Date currDateEnd = sdf.parse(endTime); Date startDate = sdf.parse("09:00"); ...
1
9f11bff57b55e96eb3e2c88490eca58f
bb0d687ea61839ddad3ac0f6724a697c
Retourne l'id du produit contenu dans l'url
function getId(pUrl) { const pUrlSplit = pUrl.split('/'); return pUrlSplit[pUrlSplit.length - 2]; }
1
d88dee6b687b2885a8274b3909407444
3f549acf21d71a581100b8c02a79d06b
班班通授课次数统计>按教师统计
public class clsEducationLecturer : BaseTable, IclsEducationLecturer public DataView SelectTeacherHourCount(string aid , string d1 , string d2) { _params.Clear(); _params.Add(new ListItem("LecturerName", aid)); _params.Add(new ListItem("d1", d1)); _params.Add(new ListItem("d2", d2));...
1
ce3635a97d300bdc29a8dd5916a63f75
f6deda673bce9ebb6d7e429d8f3f5dcb
刷新果树血量
public class MountManager extends ModuleManager public void refreshFightPower() { mount.fightPower = CommonUtil.calFightPower(data_mount_final); }
0
6fea5dd3599dcd965097e0b51a161648
f2b331753cb8ba4301c21b8278aa5ebe
Initialize the MvtParams structure with default values
m_nTrajectories = 0; m_nOutliers = 0; m_nOutlyingPartitions = 0; m_nLineSegments = 0; m_nTrajectoryPartitions = 0; m_paramFraction = g_FRACTION_PARAMETER; m_paramDistance = g_DISTANCE_PARAMETER; }
1