query_id
string
corpus_id
string
query
string
code
string
label
int64
204a706cf9deebc4c0433fec6bba7b22
f1d6dd3e9216e1aef291427a3fe7595c
Wipes raw data for security reasons. Following recommendations from the <a href= "http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#PBEEx">Java Cryptography Architecture (JCA) Reference Guide</a>
ProvidedKey secretRaw(Pbe template);
0
3fed53adab85823f9deb681c2c88127b
fc9419f9469817daca87367153c17547
Chooses one of the dependent varaibles randomly with probabilities proportional to the total rate of each variable.
int DrPriVar(Node *n) { int Ngood = SumGoodVar(n); double u= unif_rand(); int VarI = (int)floor(u*Ngood)+1; return GetSkipBadInd(NumX,n->VarAvail,VarI); }
0
4ca77900fc65b20a4a78cdc5f5857a90
44d43111228b124414961bf0e68d8f64
Creates, updates, or removes campaign drafts. Operation statuses are returned. List of thrown errors: [AuthenticationError]() [AuthorizationError]() [CampaignDraftError]() [DatabaseError]() [FieldError]() [HeaderError]() [InternalError]() [MutateError]() [QuotaError]() [RequestError]()
ListCampaignDraftAsyncErrorsRequest request, gaxgrpc::CallSettings callSettings = null) { throw new sys::NotImplementedException(); }
0
e40fd373ec3b4d2c7c11b8fa440b4ab6
e5c2258b117a43f20f384fa942a162c8
MulBlank records hold multiple blank cells. Check that we don't have any MulBlankRecords, but do have lots of BlankRecords
record = make_filled_form() record['ftdmrios'] = '1' record['ftdmriob'] = '0' ipacket = build_ftld_ivp_form(record) warnings = [] warnings = redcap2nacc.check_blanks(ipacket, self.options) expected = ["FTDMRIOS in form E3F is" " '1 ...
0
585783df0bc6e4a3105479fab4f01c88
89cd7feb9c7f8b88618a4d3f1d7c446d
Route that renders the page to edit an category. This method validate that the user is logged in, and the category were created by him, to avoid malicious behaviors in the url.
{ return 'categories.read' == currentRouteName() && $category_id == currentRouteVars('id'); }
0
b6fc3e4c540848c81ba39d7f6bff8bee
6090ff2aac91bd326ea813f0cc5b7870
Test an object to be deeply equal to the provided object.
namespace TruePosition.Test.Core internal class ObjectComparer internal static bool DeepEquals<TSource>(TSource source, TSource comparedTo) { XElement elSource = GetObjectXml<TSource>(source); XElement elComparedTo = GetObjectXml<TSource>(comparedTo); return XElement.Deep...
1
4065dd487992ea2a8a2ab5be0abe61d7
8aa45152eebec2bc3b817d9bc031dac4
only show your own posts/pages in admin land
function my_custom_get_posts( $query ) { if ( is_admin() || ! $query->is_main_query() ) { return; } if ( $query->is_post_type_archive( 'give_forms' ) ) { $query->set( 'post__not_in', array( 1, 13, 266 ) ); } }
0
4bf523cda52b43ef4e6d0babda0ce6be
5c60c0b8b7e28e702426d0a9cd445206
将data经svd分解降维后估计评分
def svdEst(dataMat,user,simMeas,item): n = shape(dataMat)[1] simTotal = 0.0 ratSimTotal = 0.0 U,Sigma,VT = linalg.svd(dataMat) Sig4 = mat(eye(4)*Sigma[:4]) xformedItems = dataMat.T*U[:,:4]*Sig4.I for j in range(n): userRating = dataMat[user,j] if userRating == 0 or j == item:...
1
f9d87dec40f8c67ea0c31560ebc9eaf1
c4d99915fe3665c00dc121113991353b
导出流量日志
@Controller @RequestMapping("/traffic") public class TrafficQueryController @RequestMapping(value = "exportExcel") public String download(HttpServletRequest request, HttpServletResponse response) throws IOException { String fileName = "本月流量使用详细情况表"; List<LaoTrafficMmDto> listDao = null; long channelCustId = Long...
1
8c3e5d10e94bf9f9bdadcf799410f851
ebd052c7b155edab400bf3b44410f0d4
Extend the signup form with additional fields selected in the plugin configuration
class LoginForm extends Form private function addSignUpFields() { $this->add([ 'name' => 'username', 'type' => 'text', 'options' => [ 'label' => 'Username', ], 'attributes' => [ 'class'=> 'form-control' ...
0
1e700dc15a4804687c4298acac1258f0
89772e1614f2692a431223a40688fc01
多个手指按下处理
{ try { if (this.Parameter.initPoints <= 1) { if (this.Parameter.initPoints == 0) { initPoint1 = e.GetPosition((Canvas)sender); Ellipse np = new Ellipse(); ...
0
1b73322b113a577266511e91f6563c25
bba4fa64b47984d404c17bf2ea41e014
Set token settings.
if (this.innerProperties() == null) { this.innerProperties = new SiteAuthSettingsProperties(); } this.innerProperties().withTokenStoreEnabled(tokenStoreEnabled); return this; }
1
614577b5b252a4037a81f6fc24585c92
c2a366d010291e4b87365e9bced63b5d
获取回调失败的结果 钉钉服务器给回调接口推送时,有可能因为各种原因推送失败(比如网络异常),此时钉钉将保留此次变更事件。用户可以通过此回调接口获取推送失败的变更事件。 请求方式:GET(HTTPS) 请求地址:https://oapi.dingtalk.com/call_back/get_call_back_failed_result?access_token=ACCESS_TOKEN
void onFailure(CallbackData data, CallbackContext context);
0
29882a616213cda54fa48ecdbe3c6eb3
69dea24ed896bfa77b0339e8c52919ef
Display a listing of the Entidad.
{ $controlador = Route::getCurrentRoute()->getName(); if(!strpos(Request::url(), '/api/')){ return view('entidades.index', compact('controlador')); } $fechaActual = strtotime(date("d-m-Y H:i:00",time())); $cadena = "060829"; $buscar = "99"; return...
1
96eb973cfb932c5113e33655b7b45e43
d7332833436e0d667f0d8fbaf388ea39
เพิ่มรายการโปรโมชั่นโดยเลือกจาก Material ที่ดึงจาก SAP UI: https://projects.invisionapp.com/d/main#/console/17482068/362358682/preview
*addBatchSupplierMaterial({ payload }, { call, put }) { const response = yield call(importSupplierMaterial, payload); yield put({ type: 'saveStatus', payload: response, }); }
0
9620a48ef37c576614f9aee4195159f0
8f67dd87b88e4b05141292a2dec18746
new window to show 'How to play'
public class Money_Conversion_Script : MonoBehaviour public void OnHowToButtonClick(){ HowToPlay_Popup.SetActive(true); }
1
95f8c93a63ec1562710ee8508a9ade76
1abda4cc436681eaff5fae6dd0f1ea45
Devuelve el total de pallets recibidos, total de pallets en anden, total de pallets en pasillo y el total de pallets terminados
public class TrainStation public int devolucion() { return machine1.getTotal() + machine2.getTotal(); }
0
441c42c28a7128cffcdec8ab5f827458
fd9e840eb3537b9deee09e75702b07c7
incarca pagina de cerere voluntar
namespace AppBurse.Controllers public class CerereController : Controller public ActionResult Index() { return View(); }
1
02f601bb3c2d828a8438b977ed4f91c5
655a79dacd68637ed837c6b9c3cce498
save password to Registration file for next time usage
class User: def save_password(self): User.lock_list.append(self)
0
72b48832d1e944cfd65a6fc41cbba6e7
fb79946c227ec030d4eb0408e5acac82
Gets the value of the deductUs35 property. possible object is {@link DeductUs35 }
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "ChargeType", propOrder = { "rowid", "ban", "entSeqNo", "actvSeqNo", "sysCreationDate", "sysUpdateDate", "piachgarroperatorId", "piachgarrapplicationId", "dlServiceCode", "dlUpdateStamp", "actvCode", "actvReasonCode", ...
0
826bfadfb16de70c721fb6016a4443b2
137a37c4cbeeeac0e53e87f0785c038c
Gets the CheckedBorderBrush dependency property.
namespace Isvis.Windows.Themes public static partial class ControlTheme public static Brush GetCheckedBorderBrush(Control element) { return (Brush) element.GetValue(CheckedBorderBrushProperty); }
1
0111351a083c06705ddf781ede236242
12ac181ccebc91b84ffab6fb9b6b8cad
Test of printTextDescompress method, of class Huffman.
public class TestCompressedFrameTransformation implements Opcodes public void test() { }
0
88921d47e32df6bc0b7dfad82d599e01
d8aea3458de09501de63c4be07b1d652
For all the custom dimensions we have in our request we call the respective function to combine the necessary fields. Returns altered df with the final fields for all the custom dimensions
gen = data[['card_id', 'creationdate', 'EuroAmount', 'txvariantcode', 'accountcode', 'shoppercountrycode', 'currencycode']] trans_over_month = data[['card_id', 'creationdate']] d1 = gen.groupby('card_id')['creationdate'].apply(list).to_dict() trans_over_month = trans_over_month.groupby(['card_id', 'crea...
1
c1f8e5afece7e60ce2575db828bb4fa9
e16cab44150d747a75e0b3899806c809
reset feedback vector and detection flag
class HandLandmarkDetectionService: def reset(self): self.hands = np.zeros((0, 7, 2)) self.sizes = np.zeros((0, 1)) self.dydx = np.zeros((0, 2)) self.n_different = 0
0
2fb8964ad4ac216e727f79bb8e64893e
3dd9d2613e1c509e9cf7c5f571b9a4c4
Retourne la moyenne des vitesses caculables sur le reseau
taille_moyenne = 0 nb = 0 res = 0 if liste_serpents != [] and dangerosite >= 0 and dangerosite <= 5: for indice in range(len(liste_serpents)) : if liste_serpents[indice][2] == dangerosite : taille_moyenne += liste_serpents[indice][1] nb += 1 r...
0
806442cc79dff1cbacd2bc642fd64bae
a97079013b99edccc92f49850f14ddcf
Generate a two factor auth code to the user.
public function getTwoFactorCode(int $length = 6): int;
1
8b7ba3dbc97c270def0fa1628feaf8af
8fff0c36a41d24f36fae68ee1ef4acad
Linear material function
function LambertianMaterial (opts) { this.Ka = 0; this.Ks = 0; this.Kd = 1; this.opacity = 1; this.ambientColor = new Color(0, 0, 0); this.diffuseColor = new Color(0.6, 0.6, 0.6); this.isSpecular = false; this.isRefractive = false; Util.extend(this, opts); }
0
0aa3e4c4fc2be789151e2d72fb75cbc5
067295a1288e02a4836e0645c9c02dc6
++ Routine Description: 'Disable' button handler None Return Value: None
{ m_iButtonCapture = -1; m_iHighlighted = -1; m_iSelected = -1; for (POSITION pos = m_Buttons.GetHeadPosition (); pos != NULL;) { CBCGToolbarButton* pButton = (CBCGToolbarButton*) m_Buttons.GetNext (pos); ASSERT (pButton != NULL); pButton->OnCancelMode (); if ((pButton->m_nStyle & TBBS_DISABLED) == 0) { ...
1
a5010a3d4aee1d1e7dd43641be67088a
e5b94671ca3fea629d485112154539d3
Retrieves the list of users that liked the photo
class MediaService private function getUsersLikeMedia(Media $media) { $url = "https://api.instagram.com/v1/media/" . $media->instagram_id . "/likes?access_token=" . \Yii::$app->params['accessToken']; return (new SendService($url))->sendGet(); }
1
3e0fbe0080557040c607b003f242c0e2
741c898917493fba47aad336fb952aa0
Full deterministic MI model
tolerance = 1e-6 max_iter = 10000 T = np.shape(o)[0] M = int( max(o)) + 1 digamma = np.zeros((N, N, T)) np.random.seed(rand_seed) if dirichlet: pi = np.ndarray.flatten(np.random.dirichlet(np.ones(N), size=1)) a = np.random.dir...
0
6ca11fadd90cb718fbc52733b9fc13b5
c22b62d044b09b3a7f06aef3ccb79904
GET: Tablas
namespace WebAppEQRI.Controllers public class TablerosController : Controller public ActionResult Index() { return View(); }
0
ad99c336d4abec4d817be5fe36c7c53b
c1737ac639c724301d239a6229edeb6b
Executes a query against a given database and returns a result handle
{ $this->_query_count++; $db_string = $this->initialChecks($db_string, $db_values, $identifier); if (trim($db_string) === '') { throw new \Exception('Query string empty'); } $db_string = $this->_prepareQuery($db_string, $db_values); $this->_preQueryDebug($db_string); $this->_doSanityCheck($db_string...
1
faff7dfe8d5aa978c63154af26865bc3
8c759c33003914000d82dc2c60dbf903
Listview Item全选
if (allcheck) { for (let i = 0; i < this.itemlists.length; i++) { this.itemlists[i].sfxz = true; } this.selectitemarr = JSON.parse(JSON.stringify(this.itemlists)); } else { for (let i = 0; i < this.itemlists.length; i++) { this.itemlists[i].sfxz = false; } thi...
1
f6308a06566e5ce44a39173e25f803e1
60c3b6d5a8df7994159dc8c82c711032
@description: 登录如果需要二步验证码的话自动填入
password = utils.getMd5(password) url = self.aux_base_url + 'login2/' requestData = {'password':password,'mobile':mobile,'imei':''} res_obj = utils.request(url = url,method = 'get',data = requestData) if res_obj['ret']!='13': return utils.errorReport(res_obj['msg']+ ",account:" + mobile + ' ord_id:'+self.o...
0
3e5704b198bdafd39269c8318fb8bfbd
cc56d08dd3bba7c9da787cf7dd292ebb
转盘加速
let _isAc = isRunning && isAccelerate let fastArr = [] let wqArr = [] if (_isAc) { let arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] fastArr = getRandomIndex(arr).slice(0, 3) wqArr = getRandomIndex(arr).slice(0, 5) } let $car = __doms.find('.car' + carNumber) $car.find('.car-wh...
1
d6c3243279eb37124be8a2e2ab092211
5586b3ce3b2cdda95a24da022642dde7
Return the context key from url params
def test_key_fn(mock_session): def create_custom_key(request, **kwargs): return request.url.split('?')[0]
0
58ed640c6c240cc3e0e2fd5576c285ad
4e91d5ff69477bbba644183d4d441981
获取宠物等级信息
local cfg = self:getPetCfg(rawName) if not cfg then return CHS[7000325] end local level = cfg.capacity_level if level >= 6 then return CHS[7000305] else return level .. CHS[3002813] end end
1
64cc8afc3e8a65b5ab1011820e784ca3
ba7a97c8ec8e467bbc2877826f979976
Prefab templates shouldn't get registered in the scene
namespace ChameleonForms.Config public class ChameleonFormsConfigBuilder<TFormTemplate> where TFormTemplate : IFormTemplate public ChameleonFormsConfigBuilder<TFormTemplate> WithoutTemplateTypeRegistration() { _config.RegisterTemplateType = false; return this; }
1
3c8c7bb2510d3a9f389d95159c895b87
882b7c716534ef22de3b9b4dab6ef0b8
Compares this vertex with another object to see if they are the same. Compares all components
{ return other != null && other.x.Equals(x) && other.y.Equals(y) && other.z.Equals(z) && other.m.Equals(m); }
1
0b6962bc75a5ceca90b07a8ae4e1a84f
e3ccbb0b6d909ca60b27589d085189c7
拒绝群邀请按钮的点击事件
public void onClick(View v) { Button button = (Button) v; button.setClickable(false); button.setBackgroundColor(Color.parseColor("#FFFFFF")); button.setTextColor(Color.parseColor("#9E9E9E")); button.setText("已同意"); ...
0
debd168ef5820b47a6f4f4188d8d33bb
81e05ea455382d504d297e13ff9f88ac
Calculates geographical size of a tile at current zoom.
def MapSize(zoomlevel, tilesize_in_pixel=256): return (2**zoomlevel)*tilesize_in_pixel
1
ccaf9a0ac9635d60965a6cacb05ebaa0
99152c218751b1cf9b846d7672c18997
將上次查詢的頁數恢復為1
public partial class Book_Sample_Ch11_Default_book_4_User_Control_5_RowDataBound : System.Web.UI.Page protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e) { Session["myGridViewNum"] = -1; GridView1.SelectedIndex = -1; GridView1.PageIndex = e.NewPageIndex; ...
0
fefbdbee5102a1cb28d4a5c5f271d6da
e7597489b3336df618c3419f196bbcd5
Retrieve magnetic field object.
class MagneticField(HexSignedIntegerField): def __init__(self, *args): super().__init__(16, *args)
0
d4634d0c722c8469eaf04fce70673dd8
73fef379e137ae3d1b9c3d28e8953020
Generate a sector and assign it to the UNTerrain.
namespace uNature.Core.Terrains [RequireComponent(typeof(Terrain))] public class UNTerrain : UNTarget public virtual UNTerrainSector GenerateSector(int sectorResolution, bool multiThread) { _sector = Sector.GenerateSector<UNTerrainSector, TIChunk>(transform, terrainData.terrainData.size, _se...
1
3aef2725a6cc4772c31da2956ac9da9c
b8c7cc95328b36c8a90a9c2a40cd848b
Pause Usb Service.
static void sam_suspend(struct sam_usbdev_s *priv) { if (priv->devstate != UDPHS_DEVSTATE_SUSPENDED) { if (priv->driver) { CLASS_SUSPEND(priv->driver, &priv->usbdev); } priv->prevstate = priv->devstate; priv->devstate = UDPHS_DEVSTATE_SUSPENDED; sam_udphs_disable...
1
47da549b812a7566f88d19a78e4c62ff
e541f7f92c06196864e4c7501e903d49
这是判断XML文件中是否包含目标标签的函数
{ bool t = false; XmlDocument doc = new XmlDocument(); doc.Load(Server.MapPath("../DbFile/XMLFile1.xml")); XmlElement xe = (XmlElement)doc.SelectSingleNode("//table[@name='" + s + "']"); if (xe != null) { t = true; ...
1
c4d1da3f5cfe73beb47063258bc1b807
a4f55ed1ca1c6ba1f00b923692ab6067
Sets focus parameter for product Log View
void CUserGraphPg1::OnBnSetfocusChkLogX() { CString strRes; AfxFormatString1(strRes, IDS_STRING725, _T("x") ); m_eInputDesc.SetWindowText(strRes); }
0
e6af14d17d05f8003df63797a4ea4272
a1b4cb66913285745b072d407f35abf7
获取用户已到帐订单列表
namespace CoreCms.Net.IServices Task<WebApiCallBack> UserToCashList(int userId = 0, int page = 1, int limit = 10, int status = 0);
1
22ea0bf1adb5f0d4654ec4b5b5512195
9accf1580bb02f74ae642cc6c0519b99
Шифрует сообщение посимвольно
namespace MailSender.Library.Service public static class PasswordEncoder public static string Encode(this string input, int key = 1) { return new string(input.Select(c => (char) (c + key)).ToArray()); }
1
d77784cb73c59d2fcd425aa3b81bd537
d66ed94e05735c928ff3dc360e65e843
Generates rectangular mesh
{ if (columns < 2 || rows < 2) { throw new ArgumentNullException("columns or rows too small"); } if (width <= 0 || height <= 0) { throw new ArgumentNullException("width or height too small"); } va...
1
4a75d22d24faf1546c42d4b0ef96ece0
def39bc6e5e91f5c20971b2b4585f800
This test verifies that an error is returned if a number is divided by zero
public void DivideByZeroTest4() { Assert.IsInstanceOfType(new Formula("(x5/0)").Evaluate(s => 1), typeof(FormulaError)); }
1
b393c607615f10c1ecf4db5c2200a1b9
8b57f33f0dac075572343b44d2b21543
Get all services that are inactive
{ var query = this.unitOfWork.CreateQuery(); return query.GetAll<ServiceInfo>().Where(serviceInfo => serviceInfo.AutoRunning); }
0
3bf91c382b9fac2d8bfa1b5b1b60695b
1dac1e1602fae609eaa90e8a459204bd
Initializes a new instance of the FileStream class with the specified path, creation mode, read/write and sharing permission, buffer size, and synchronous or asynchronous state.
SafeFileHandle handle, FileAccess access, Int32 bufferSize, Boolean isAsync) => new FileStream(handle, access, bufferSize, isAsync);
0
1edd6a6dba1b8b9e3d8f1fd7264012f2
fb445642473f5c895059605857436425
Установить новое значение для описания поста
{ if($description === null) { $this->description = null; } else { $this->description = strval($description); } $this->save(); }
1
88d3f792d5726929c45c7297389d3e2d
b90b549ef96d13333585f73f3ba71812
Mètode per actualitzar la quantitat que queda d'stcok del producte comprat
{ $product_user = DB::table('product_user') ->where('product_id', '=', $id) ->where('status', '=', 'approved') ->get(); $taken = count($product_user); $product = Product::find($id); $product->available = $product...
1
4850175c95d54c245afcdee6ac924f9d
0e810153433eb40d07ca1d8067a5d3fd
Clears 'helpers' list
class Ano_Controller_Action_Helper_ViewRendererTest extends PHPUnit_Framework_TestCase protected function tearDown() { Zend_Controller_Action_HelperBroker::resetHelpers(); }
1
1564aaa603678c28a071c96cfb9a1a30
a7c73f24ef3b8e29c5ab533577b59f02
Sjá hvort það sé búið að skrásetja follow
this.userServe.getFollowers(this.selectedUser.userID).subscribe((data) => { let found = data.find( (element) => element.userID === this.currentUser.userID ); if (found) this.isFollowing = true; else this.isFollowing = false; }); }
1
aa53e5409e9b9ab39aa46b47be6e0df3
2d790aa420201976c2f6be5134016c98
POST: api/AnswerTable
namespace AngularReduxDemo.Controllers [EnableCors(origins: "*", headers: "*", methods: "*")] [RoutePrefix("api/Tables")] public class TablesController : ApiController [HttpPost, Route("")] public HttpResponseMessage PostTable([FromBody] TableDomainModel table) { using (var conte...
0
f6770c260ed255836b438f6bf27c449b
ddc2a607ffb2373a4f189153a50fa0a5
Paste a sibling before selection.
if len(self.selection) != 1: return self._saveUndoInfo() obj = self.selection[0] index = self.contents.index(obj) if index == 0: return del self.contents[index] self.contents.insert(index-1, obj) self.drawPanel.Refresh() self._adjustMenus()
1
7a0e1e10b661d74861327a22f2024d8c
3467d9e95254dae249d4e2d39b04d409
Получает и выводит в буффер поддерживаемые способы доставки клиенту
{ if( $this->cmsSettings['type'] == '3' ){ $settings = json_decode($this->cmsSettings['settings'], true); if( in_array($_GET['dostavka_metod'], $settings['self_way']) ){ return array( \DDelivery\Sdk\DDeliverySDK::TYPE_SELF ); ...
1
54a86ba73af88241cf9a8e4c2eff0161
5242e462224043cf6d81eac029db622f
SupportNone returns true if the file descriptor cannot support colors.
impl TerminalOutput<()> for VgaWriter fn color_supported(&self, _color: Color) -> bool { true }
0
de6a471e04f5cd463c1defe042cba807
1c942dcfbf41261449765fea0db4cd27
根据用户账号得到角色ID
String getRoleId(String userid);
1
8dadf9d4b40a407f727dd8df972cc2de
823222c14043a069f3a318ba68bf501d
Remove business location
{ Location::where('id',$location->id)->first()->delete(); return response()->json([ 'message' => 'Deleted successfully' ]); }
1
74b262299acaa6ffba373b27a5c9b153
992eda2b7d77050dae4b030efbdff3af
获取自己负责的课
public class ClassController extends Controller @Before(NeedLogin.class) public void myClass(){ User user = (User) getSession().getAttribute("user"); if (true){ List<Course> courses = Course.dao.find("SELECT * FROM t_course "); setAttr("courses",courses); } r...
0
2a7367d2926380ec9f506d2cb2a9b930
a796bfdad8b45eb543294c0edf58f5ea
rotates 90 deg clockwise
rotate90CCW() { let x=this.x; let y=this.y; this.x=-1*y; this.y= x; }
0
b5364ab08d325ed860e2cfa6e711f202
854bebe542b299de36576b2a959d9c07
when redraw RadioGroup, must reset current scenario, so that onRadioButtonClick goes into correct case branch
namespace PartyCalculator public sealed partial class MainPage : Page private void ScenarioControl_SelectionChanged(object sender, SelectionChangedEventArgs e) { NotifyUser(String.Empty, NotifyType.StatusMessage); ListView scenarioListBox = sender as ListView; Scenario s ...
0
360caaa90287cbe93d98bfff65230088
9443f0c97dcba94e71f75ca32911a626
사운드 동적 지연 실행 코루틴.
public class Audio : MonoBehaviour void PlayDelayAudio(bool _isLoop, float _volume,float time) { if (this.GetComponent<AudioSource>() == null) { asource = this.gameObject.AddComponent<AudioSource>(); } asource.clip = mclip; mIsLoop = _isLoop; asource.loop...
0
2b26cbf4875ff37ae067b424421daa20
dfcb7628cf187f7b793e1e83ca2dc9e5
Gerar para uma dada pessoa o seu álbum HTML.
{ $owner = IPSMember::buildProfilePhoto( IPSMember::load( $memberId ) ); if ( ! $owner['member_id'] ) { $this->registry->getClass('output')->showError( $this->lang->words['user_album_no_member'], 'albums_user_show_1', null, null, 404 ); } $data = array( 'album_name' => sprintf( $this->lang->words['...
1
ff1550bf11bec1c64f6c754c8470d004
c6bf9b1fb50e98c157e1cb1e1661ab81
=============== CG_CalcViewValues Sets cg.refdef view values ===============
void R_ViewChanged (vrect_t *pvrect, int lineadj, float aspect) { int i; float res_scale; r_viewchanged = true; R_SetVrect (pvrect, &r_refdef.vrect, lineadj); r_refdef.horizontalFieldOfView = 2.0f * Q_tan (r_refdef.fov_x/ static_cast<float>(360.0f*M_PI)); r_refdef.fvrectx = (float)r_refdef.vrect.x; r_refdef.fvr...
0
0b8a7225cb6e5a309ee6283bd6607e03
94199ff515a7e65026a91a4c56b6504f
Factory function to create appropriate handler. Supported types: message, event
namespace AzureNetQ.Consumer dynamic GetHandler(Type messageType);
1
c9c7c6e26119b91a0f20c29e532c5ea0
0fa68eea176c2e15a1c69538ed17e476
创建一条水平关联数据
this._id = new Date().getTime(); this._name = "One to one"; this.fieldName; this.targetEntity; this.type = 1; this.cascade = []; this.inversedBy; this.mappedBy; this.joinColumns = []; for (var prop in data) { this[prop] = data[prop]; } }
0
ea4472786cdddfa4363c4399d16af951
97369fcd64bbb4fb798d9732f1d66ad4
项目全景,不仅仅包含项目信息,还包含其他表的联查数据
@PermissionName(value = "项目总览", show = false) void view(ModelMap modelMap, @Check Long projectId) { modelMap.put("project", projectService.get(projectId)); modelMap.put("listForA", contractService.getAllByProject(projectId, Constant.Contract_Type_Flag.A)); modelMap.put("listForB", contra...
1
ec9c43ce4084824425d1e77d650a1877
4faebc17a323eac6bd621cc4e6aff0f6
Разворачивает массив целых чисел
public class Turn public int[] turn(int[] array) { int index = array.length - 1; int tmp; for (int i = 0; i < index; ++i) { tmp = array[i]; array[i] = array[index]; array[index] = tmp; index--; } return array; }
1
3122bda02f9349cb7f4f4a86546edea8
d9e5ad3390662c01f2d9ff3e04001ae8
Marker requisition action event listener.
if (!dataWorkspace) { dataWorkspace = new lightSwitchApplication.DataWorkspace(); } $Screen.call(this, dataWorkspace, "BrowseRequisitions", parameters); }
0
e0a1cab3df0076bfbe16d17d6c4ccafa
0538c0377947a18f20df3b3b49ac4167
A function to toggle off related checkboxes (apart from the one clicked)
{ int selectedCourseIndex = Utils.indexOfCourse((string)btn.Content); if(CourseList[selectedCourseIndex].relatedButtons == null) return; else { isRefCall = true; for (int i = 0; i < CourseList[selectedCours...
1
ebf4e42e851727a236df04ab7d9777a1
636c80d07307472c02077f0a653bb232
所有Activity应该具有的窗体样式、全局设置、字体、软键盘等应该在这里设置,如果有不一样的窗体样式,则覆盖这个方法 这里给出一个常用的白色状态栏模式
public class ProjectMoreInfoActivity extends BaseActivity @Override protected void statusBarConfig() { setWhiteStatueBar(); }
1
57947f39ecd6ddf5d99a7cde18fd527d
3da9c35dd0da6731857136f302daa828
Set whether or not serialized data should include fields that are null.
public class RecordMapping extends AbstractModel{ public void setAllowNull(Boolean AllowNull) { this.AllowNull = AllowNull; }
1
875d80862a087716c8fd624570cee656
cb54f384e270c5e4a55e4ea04f4e455f
Turns matrix from number of instances to percentages
mat = rl for i in range(len(rl)): rl[i].append(round(rl[i][1]/len(vl) * 100 ,0)) return rl
1
a8cc26af4f31f74045913150955a902d
6b3620193a327ecec52ad91570cd2c76
如果查找键不存在则返回设置的失败返回值,该值可空
namespace HITUOISR.Toolkit.Settings bool TryGet(string key, out object? value);
1
ee1499cbdeb540120d8867f016f46b91
11e05306dd01c24f7bcfde7f92aaa877
\brief Send the row address to the NAND Flash chip.
STATIC VOID SetAddressRegs ( INTN Column, INTN PageAddr ) { IFC_REGS* IfcRegs; IfcRegs = (IFC_REGS*) PcdGet64 (PcdIfcBaseAddr); IfcWrite ((UINTN)&IfcRegs->IfcNand.Row0, PageAddr); IfcWrite ((UINTN)&IfcRegs->IfcNand.Col0, Column); }
1
13f06fbc183ddc53e7366e412d688b29
5991d4d245c5a707e16c5d8d0238ab48
GET: /PayFee/
namespace MvcDemo.Controllers public class FeeController : Controller public ActionResult Index() { return View(); }
0
6a25cf681e8c240b78347430eee09833
0d6516c302a1e54e427922232d88d90d
<p>Returns true if the systemId attribute has been set.</p>
class MailData extends \DrSlump\Protobuf\Message public function hasSysid(){ return $this->_has(2); }
1
63c2de2017dfefec3ba03a4c286d7566
5c5b23bd5758924afcff4d4d1c60b44c
Deletes an existing item variation from an item. --- - __Deprecation date__: 2019-11-20 - [__Retirement date__](https://developer.squareup.com/docs/build-basics/api-lifecycle#deprecated): 2020-11-18 - [Migration guide](https://developer.squareup.com/docs/migrate-from-v1/guides/v1-items) --- __DeleteVariation__ returns ...
namespace Square.Connect.Api public partial class V1ItemsApi : IV1ItemsApi public async System.Threading.Tasks.Task<ApiResponse<V1Variation>> DeleteVariationAsyncWithHttpInfo (string locationId, string itemId, string variationId) { if (locationId == null) throw new ApiException(4...
1
9c157fc8f06f98e1d208aa8ccb46f68b
bf14604cdb7783323855763d47a0cbae
With the C{savestats} option specified, L{app.ProfileRunner.run} should save the raw stats object instead of a summary output.
self.path = pstats_file with open(stat_file, 'rb') as _f: self.raw_stats = _f.read() with open(stat_file, 'r') as _f: self.stats_dict = marshal.load(_f) self.stats = cProfileFuncStat.from_dict(self.stats_dict)
0
d0689bdcfd8fb04ca5a9e286408b27a6
46155781b76ef06a702598288a190cbd
Retourne la liste des représentations attribués à un groupe donné
$lesGroupes = array(); $requete = "SELECT * FROM Groupe WHERE ID IN ( SELECT DISTINCT ID FROM Groupe g INNER JOIN Attribution a ON a.IDGROUPE = g.ID WHERE IDETAB=:id )"; $stmt =...
0
f65480a227c18154e11abbe0e542cf38
8af04f6801406c20bf4961e1a5e21d63
Create een nieuwe sectie waar de elementen van het bedrijf staat.
class Page extends AbstractElement function makeSection() { $section = new Section(); $this->addSection($section); return $section; }
1
e06060ae2d25863f57800969a34ace71
5d79b3757cf9e167d8334ecb6f918b4a
Writer of lyrics
{ fout << artist << " "; fout << album << " "; fout << genre << " "; fout << lyric << " "; return 1; }
0
2e0bb61719e95e2d3fe13b98429e692b
2879c784e37ccdbe9c07c64b03bcf44c
管理用関数のラッパー関数を生成する
namespace detail2 void create_function (int slot, float value) { Function2 func = [value](Local<String>, const AccessorInfo&) -> Handle<Value> { return _marshal( value ); }; if ((int)generated.size() <= slot) generated.resize(slot + 1); generated[slo...
1
fa0f3182fdff3cca9320287adcfe6563
dbfb7da291d33ca28ead0766713aa2b0
Appends value to 'events' list
class Seq: def append(self, ev): self.events.append(ev)
1
b0bd713afa7eb27d022c72701d0d31b9
8eee8be48e948560a6afa3f9af359521
Globally initializes cURL given a bitwise set of the different features to initialize.
{ int result = curl_global_init(CURL_GLOBAL_ALL); return result == 0; }
1
591044f304d181132e990ea7c5d3d8d3
c14a8bd3471695bf5849b3a87e2a3b4e
True if has "officeholders" element
class Member extends \DrSlump\Protobuf\Message public function hasOcc(){ return $this->_has(7); }
0
34a8c5ffc66f8ca2ef3559edd966ed66
6dd049f2a9668ac9e178744ab6669f3e
Gets the X and Y coordinates of the top left point of the Farmhouse in Vector2 Form. Allows offsetting the coordinates.
{ return ((Width / 2 + X * PIXELS_PER_INCH), (Height / 2 - Y * PIXELS_PER_INCH)); }
0
59630954843824cbec94bb5af43a0eb8
fa95ffe5b4e9431d9672c4e3d8925ebe
发送网络延时检测消息
class webSocketAdapter checkNetWork() { this.clientPingTimer = setTimeout(() => { let curTime = this.getTime(); if (this.totlaPingNum >= 2) { this.stopCheckNetWork(false, 'stopNitify'); return false; } ++this.totlaPingNum; ...
1
36fe7187683463c9b1cde1073cd51217
3716eec96c4808cd95520d75406e8555
Mode extension. Valid only for Joint Stereo mode
void vvCanvas::setStereoMode(StereoType newMode) { vvDebugMsg::msg(1, "vvCanvas::setStereoMode()", newMode); _stereoMode = newMode; }
0
4a99dbb4a85a2cc90cff9b463c4a5fce
396671ce32a32f5a856893d2eca4fad3
Metoda koja na klik gumba poziva metodu za brisanje povratne informacije
namespace IzdavanjeRacuna public partial class OdabraniRacunForm : Form private void izadiButton_Click(object sender, EventArgs e) { Close(); }
0
6f66b8b787ee0b6459870d33eb82614d
7d8804626b52ba6565409219a1c6c003
在这里不会结束for循环,而是当等于3的时候,不会往下执行循环里面的内容,所以打印结果中没有数字3
func for1() { a := 1 for { fmt.Println(a) a++ if a > 3 { break } } }
0
3413e0d53f299985fe94c07836682e09
d206aa250ea59b3eb34a5f6a0d2a9b1b
Dispatch default events for the asynchronous payment notifications.
id = request.POST.get('m_payment_id', None) order = get_object_or_404(PayFastOrder, pk=id) form = NotifyForm(request, request.POST, instance=order) if not form.is_valid(): errors = form.plain_errors()[:255] order.request_ip = form.ip order.debug_info = errors order.truste...
1
acf5358af235b97755dc9c0db1e3d2f4
5398e769699bdacc6149fba7c59f0db9
编写代码,移除未排序链表中的重复节点。保留最开始出现的节点。 示例1: 输入:[1, 2, 3, 3, 2, 1] 输出:[1, 2, 3] 示例2: 输入:[1, 1, 1, 1, 2] 输出:[1, 2] 提示: 链表长度在[0, 20000]范围内。 链表元素在[0, 20000]范围内。
int main(int argc, const char * argv[]) { ListNode * node1 = new ListNode(1); ListNode * node2 = new ListNode(2); ListNode * node3 = new ListNode(2); ListNode * node4 = new ListNode(3); node1->next = node2; node2->next = node3; node3->next = node4; ListNode * res = deleteDuplicates(node1...
0
f324e3175171db754a1fe25fb4fcad35
dd8a4510284da1f57fc5834e53b9abc4
判断日志类是否初始化成功。
class AwesomeLog get initialized() { return this[$CONFIG]!==null; }
1
87809e4cc74910f30e068825bc2c18d3
116571e25e7e873a448dc2accdd84a66
Returns the credential id hash as qrexec argument.
public Long getCredentialId() { if (delegate.getCredential() == null) return null; return delegate.getCredential().getId(); }
0