query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
a89cb0ad988b9dfe76c6dfb55bcc8176 | 2983c56ff46d3b0b79a05485326024fc | 将BASE64编码的字符转换为原6bit的数据
字符 | char _dr_getBase64Char(char c){
return base64_charset[c];
} | 0 |
2229cc829cf37bc1d26a228aa1419179 | d6f5cae9824057dbeb842b828f2cad86 | Создание DocumentFragment из массива HTML-нод "Маг" | function createFragment() {
return document.createDocumentFragment();
} | 0 |
e7eb7ac5f0c74cd91085de74790e8f2a | 62a4ff67386e5efbb1bd1269e87b61fb | Determines whether specified operation is allowed for the specified number of arguments. | {
error = $"Can not run an OP_{OpValue.ToString()} operation.";
return false;
} | 0 |
a1a6e925d0ea3fbaa070a25f7ca60592 | 8ac1841a3a5627f5e6e11624a6c2d9cf | Initialize processor environment for SMM profile. | VOID
InitSmmProfileInternal (
VOID
)
{
EFI_STATUS Status;
EFI_PHYSICAL_ADDRESS Base;
VOID *Registration;
UINTN Index;
UINTN MsrDsAreaSizePerCpu;
UINTN TotalSize;
mPFEntryCount = (UINTN *)Allocate... | 1 |
73c5f172958a73df18dbdfdc1fd34604 | 288d501551a71440454b4254f536a377 | Adds an option field | option = Option.new(
short_name: short.to_s,
long_name: long.to_s,
value_string: "",
description: description.to_s
)
addopt(option)
end | 1 |
a5cf89607934f7f1a15c6f6a3a81cf7e | cee3ba25da6937e9b9b3ac47b5b8f5a4 | 执行事物操作 | namespace JQ.DataAccess.Uow
bool ExecuteTran(Func<bool> action); | 1 |
b37588564baae32e854692791aff6376 | c4335a2739a10d5caeca36592fda3443 | Gets the value of originalAllowEditAccounts | global $current_screen, $psts;
$return_original = array(
'settings-network',
);
if( !empty( $current_screen ) && in_array( $current_screen->base, $return_original ) ) {
return $value;
}
$allow_new_blog = ProSites_Helper_ProSite::allow_new_blog();
if( $allow_new_blog ) {
return $value;
}else{
... | 0 |
11a3bc43b6dc8e91fb7053cc098126e3 | 66ce85893cd282dfa0ebdce9151f9889 | - Bring you into an existing game of uno. | game = Game(player_o=player_o,
player_x=player_x,
next_move=player_x)
game.board = ['' for _ in range(9)]
game.board_history = []
game.put()
return game | 0 |
e695b22487af8608aea3a34e23aa9994 | d95bbdad78cdb4bd857311dda1f3ad70 | Updates a media file. Retrieves the updated `MediaFile` object | [Route(@"api/{customerId:regex(^[1-9]\d*)}/medias/{mediaId:guid}")]
[InvalidateCacheOutput(nameof(GetMedias), typeof(MediasController), "customerId")]
[InvalidateCacheOutput(nameof(GetMedia), typeof(MediasController), "customerId", "mediaId")]
public async Task<IHttpActionResult> UpdateM... | 0 |
b042138962d04f59aead867e6b0fe7d4 | d678db12532ba1f2fcc94915d27ef242 | 清除地图框选框的左上角和右下角经纬度 | resetLalModal(state) {
return { ...state, LatitudeLongitude: {}, selectedAddr: '' }
} | 1 |
77c8301f636b2652ddcaa13673aeddb9 | 1519d7e76fddf6b2788b40b55426dea7 | 根据审核当前业务Guid和审核人Guid获得一条记录 | {
StringBuilder strSql = new StringBuilder();
strSql.Append("select T.P_Business_flow_id,T.P_Business_flow_code,T.P_Fk_code,T.P_Flow_code,T.P_Business_flow_level,T.P_Flow_parent,T.P_Business_flow_name,T.P_Business_flow_auditType,T.P_Business_flow_require,T.P_Business_order,T.P_Business_r... | 1 |
821f045adcbdfb5b8186d13411c97bb2 | 407d5c71df7e257d095742745edec870 | Personel tipine göre arama | {
$keyword = $request->get('search');
$perPage = 25;
if (!empty($keyword)) {
$personals = Personal::where('name_uz', 'LIKE', "%$keyword%")
->orWhere('profession_uz', 'LIKE', "%$keyword%")
->orWhere('about_uz', 'LIKE', "%$keyword%")
... | 0 |
6a36102a5fdacf0c7533f51df1c913fb | 6b3a95e4fe7aff1b9a05cc344f4eafb5 | adds one yellow card to Team A's current # of yellow cards | public class MainActivity extends AppCompatActivity
public void addYellowCardTeamA(View v) {
yellowCardTeamA++;
diplayYellowCardsForTeamA(yellowCardTeamA);
} | 1 |
7a514f8b6093198fba714d8e8c4b7e5a | 81f7c3af9e72d44760bcc7bf508bf89c | Gets a borrower Id. | public class XinyanReqLog implements Serializable
public Long getBorrowId(){
return borrowId;
} | 1 |
2df7896f80c6d9feba0da8e7e28644fc | 9cb421f60129c168f24c91d61f8eba28 | 将映射关系添加到xml文件 | class GFeed
public function addMappingXml($name, $value) {
$this->mappingXmlExt[$name] = $value;
} | 0 |
f2bdf3454506877d41f4bf1042762392 | 5e9d2de7caaac107e8552a0348d32be8 | When the corresponding button is clicked, get and display the logged in gamer's referral code. | class CMTooltipGlossaryFrontend
public static function cmtt_getReferralSnippet() {
ob_start();
?>
<span class="glossary_referral_link">
<a target="_blank" href="https://www.cminds.com/store/tooltipglossary/?af=<?php echo get_option('cmtt_glossaryAffiliateCode') ?>">
<... | 0 |
bbd5ea21d6f7bb3e46de424362534d94 | 44ad62e1ab5508315ecc5f0ded286979 | Get all the transcripts associated with the gene. | public class ProcessTmap
public ArrayList getAllTranscripts() throws FileNotFoundException, IOException{
BufferedReader in = null;
ArrayList all_transcr = new ArrayList();
String line = "";
in = new BufferedReader(new FileReader("/target/gpfs2/gcc/home/dasha/GeneticalGenomicsDatasets/hap... | 1 |
53617a3ab5789d53406a02efa59e20a5 | c8d43689e513d1bb8233f6526bb01a2d | Handler for when review requests are closed.
Posts an entry to any configured I Done This teams when a review
request is closed. | class MonsterInsights_Review
public function review_request() {
if ( ! is_super_admin() ) {
return;
}
if ( ! monsterinsights_is_pro_version() ) {
return;
}
if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) {
return;
}
$... | 0 |
64196baf045ecdef8e04c364bdbc00df | 19fd98aca7d1da4aedb6131a76e0a24d | 1.绑定成功之后,进行聊天会话的创建 | @RestController
@Slf4j
@RequestMapping("/socket")
public class SocketController
@RequestMapping("/create.do")
public String createChat(HttpSession session){
User user = (User) session.getAttribute("user");
Set<User> users = new HashSet<>();
users.add(user);
chats.put(user.getName(),u... | 1 |
5c79fdabcf86bd552313d233f550be25 | 91f9c269cafe2dd29cc39adcb6a19ec7 | 实际上传方法 | class FileController extends Controller
public function upload(Request $request){
$realname = $request->file('source')->getClientOriginalName();
$upfile = $request->file('source');
if($upfile->isValid()){
$path = $upfile->getRealPath();
$reapath = "/strong/app/public/".$r... | 1 |
b9e16633ef013df1b67c058b5e93a5a5 | 7d8caae141edede6cce24e2bd72e3afa | 失去生命值最高的单位 | namespace StormBattle
public class BattleTeam
public IBattleMemMediator GetHpRateMost ()
{
IBattleMemMediator TheMem = null;
foreach( var Item in TeamList )
{
... | 0 |
f388ccaca7df0ba088e42492bba39da3 | 8842f5b8eb00927194cae17642913648 | Returns a new object of class '<em>Trg Global Error Response</em>'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | TrgLabel createTrgLabel(); | 0 |
baf7ff43315d834b0eb9efa82257e3d0 | 97cff9e8229c91201676a48089e9ca4b | Copies a dictionary and returns the copy | def new_duplicate_dict(d):
d1 = {}
for p in d.keys():
d1[p] = d[p]
return d1 | 1 |
c9b3386379bb104afdeb846774d3442b | e59333d5fbd5cdf5bd4bb8087e716593 | 動態產生第一區btn | {
int s = 0;
for (int i = 0; i <= count2; i++)
{
for (int j = 0; j <= count; j += 1)
{
s += 1;
if (s < 9)
{
Button dbutton = new Button();
... | 1 |
a702493df17114bbaf6c87dc90bcf0f8 | 0dbf701347e11a9d2e7c9a6a3bd53fe0 | 是否是中国电信4G网络 | public class NetWorkUtil
public static boolean isChinaTelecom2G(Context context) {
return isCDMABySubtype(context);
} | 0 |
de1a79716cc64dadfdc874c2cafac91b | 9ba10e715dcee727e86c7f01525e8808 | Process an individual sample through the filter and return the modified
value
Value to process | if not lib.ProcessingFilter.ProcessingFilter.execute(self, inputs):
return None
image = self.getInput(1)
self.vtkfilter.SetInput(image)
if update:
self.vtkfilter.Update()
return self.vtkfilter.GetOutput() | 1 |
99e2306e9362c7c36b9b45d6d57cc378 | c44c4cfd78d4b775e8c197c46a399ef6 | 根据起运港编号取得对象 | public List<YcaiTp> getByShip(String ship); | 1 |
4cb2218ccf674fb2bd41c7f515cfb6de | 4809ca7d57b2d33404f0a4200b939c67 | 扑克初始化 | class player extends user1
public function init_sp(){
global $pz_copy;
$other = new others();
$pz_copy= $other->shuffle_assoc($other->pz());
global $paizhuo;
$paizhuo = array();
global $wj_sp,$dn1_sp,$dn2_sp,$dn3_sp,$wj,$dn1,$dn2,$dn3,$wj_mp,$dn1_mp,$dn2_mp,$dn3_mp;
... | 1 |
0cca4b354494849b05aac5c87f9a0535 | b1a9cdb0ce5e28e46508e7f29e7b952a | 获取用户上次提醒的时间 | public class TimePref
public String getOrgActMsgTime() {
return mPref.getString(KEY_ORG_ACT_MSG_TIME + "_" + UserPref.getInstance().getUserInfo().getUid(), "");
} | 1 |
5805f19b00e20d80591a8c4f4b816270 | aef11bbdfd22f9a166637633f4cefa89 | WithDescribeCommandName creates an Option that sets the name to use for the command. | func Name(name string) Option {
return func(o *Options) {
o.Name = name
}
} | 1 |
3fb73657e84162ffb7cc4a5ccd981cce | 9f3f32465336aa9fd817287a76449ad9 | Attempt to convert the dispatch cell to a metadata token to a more efficient vtable dispatch or interface/slot dispatch.
Failure to convert is not a correctness issue. We also support performing a dispatch based on metadata token alone. | {
var resolvedCode = new byte[code.Length];
Array.Copy(code, resolvedCode, code.Length);
foreach (int offset in m_fields.Keys)
{
int newMetadataToken = dynamicInfo.GetTokenFor(m_fields[offset]);
OverwriteInt32(resolvedCode, offset, ... | 1 |
a7a9a22b63dcdb07b4f4188c448666c4 | 3c9ae9a401504478ae6d6965cdb0b52b | Returns a MaxHeap representation of the array, where the array elements
should be comparable, i.e. should implement the means to have a logical
comparison done | {
MaxHeap tempHeap = new MaxHeap(input);
int[] output = new int[tempHeap.Size()];
for (int i = 0; i < output.Length; i++)
{
output[i] = tempHeap.pluck();
}
return output;
} | 0 |
9fb78fb345001209eeadab905b175842 | c828bf6477c2bfb5b9c183d4a11572ab | Selects Deficiency records by DeficiencyIDPermitKeyTOCID
</summary> | namespace ePermitDAL.Service
public class DeficiencyService: IDeficiencyService
public DeficiencyDO[] GetByDeficiencyPermitKeySectionSubSection(Int32 PermitKey,
String Section,
String SubSection)
{
SqlParameter _PermitKey = new SqlParameter("PermitKey", SqlDbType.Int);
SqlParameter... | 0 |
b851e44239413ab8065c092d57db6f5b | aeb71d4d45d198b1cfaa9f15e0e660db | This is the action that's used in the features to test localization. | class DefaultControllerTest extends WebTestCase
public function testEnglischShowAction()
{
$client = static::createClient();
$crawler = $client->request('GET', '/en/ashura/optional_locale_test_route');
$this->assertTrue($client->getResponse()->isSuccessful());
$this->assertTrue($cra... | 1 |
aa403fb7d21db71d59284ae7aef3739f | 6c9c20bd1f6bb264e606703bd1c26147 | Represents an outgoing acknowledgement for a message ID | class Nack (PaxosMessage):
def __init__(self, from_uid, proposer_uid, proposal_id, promised_proposal_id):
self.from_uid = from_uid
self.proposal_id = proposal_id
self.proposer_uid = proposer_uid
self.promised_proposal_id = promised_proposal_id | 0 |
869872c1c1418dd0a96df168a455a091 | eeb88b02bd2c9b2ddb7ed5d36ba1ee44 | 定时获取debug状态 | if (_debug_has_checked) {
return _debug_has_enabled;
}
_debug_has_checked = true;
String debugStr = AssetsLoader.loadFileString("debug.dat");
debugStr = debugStr.trim();
String md5Debug = Md5.md5(debugStr.getBytes());
if (null != md5Debug) {
_debug_has_enabled = md5Debug.equals("162d5be4d8b8b6318abc... | 0 |
0f8b33b77b8155b295249c8826d00e21 | be4a058c5faba4745bffe3186b028e2d | Returns a new gradient which is a copy of this gradient with a different gradient axis. | namespace NdArrayNet
public class NdArray<T> : IFrontend, IFrontend<T>
public static NdArray<T> DiffAxis(int axis, NdArray<T> source) => NdArrayOperator<T>.DiffAxis(axis, source); | 1 |
1ea86b1f34381e3ae7f255e4a79ccebc | 0fcbc2a99c04eb0c5f673ed5850cb6cc | Check that the moments do change when the masking changes. | e = extents.Extent.from_file(MASK_FILE)
bb = e.ioffset[100:400,100:400]
bb_t = bb.translate_localise_origin()
assert (bb.mask == bb_t.mask).all() | 0 |
2d0089b1684c9cdf2e59ffeaab970210 | 81223868ac2b4729a7db90ddd2054fd4 | 得到τ的np数组的原始数据,即未经过标准化 | def anti_normalization(Y_test):
for i in range(len(Y_test[0])):
temp = SCALE[i]
for j in range(len(Y_test)):
Y_test[j][i]*=temp
return Y_test | 1 |
65beb2d502e0b056d7810fdf1c588eb5 | 4a51c65258ef8480c3512474e992a71a | 日期时间字符串转LocalDateTime | fun string2LocalDateTime(date: String): LocalDateTime {
return LocalDateTime.parse(date, dateTimeFormatter)
} | 1 |
6ddef6a2afa70e163fdd0ac33bfca09d | a3fabd4e6d1e5114fcb56c96e874023a | Traverses the given lock statement. | public function walkUpdateStatement(Update $statement); | 0 |
e1083c87d9a3561de8d72f697f8e4f19 | 1b3970fe2ba3706bdd7e0c68586bb2bb | Change e-mail sender to sitename. | function wpm_email_from( $original_email_address ) {
return 'contact@digitalacademy.fr';
} | 1 |
8ef38c84c49a35429c32c23fc65773bd | b5fe727064e07248bcd1c07fa39dcb54 | Toggle using subtitles | class OmxPlayer extends EventEmitter
toggleSubtitles(cb) {
return this._invokeDBus('Action', DBUS_INTERFACE_PLAYER, 'i', [12], cb);
} | 1 |
1b7351f8704713303f9a1de3fc96d6f9 | ee972b796bdc01560ec7a0fe65d6d2a8 | Returns whether the current movie has been recently watched.
Returns: True - Is has been recently watched.
False - Is has NOT been recently watched. | def watching(user, tvdbid):
try:
return Watching.objects.get(user=user, series__tvdbid=tvdbid)
except Watching.DoesNotExist:
return None | 0 |
0b0cdafc42ec3c91c0bac009174093f5 | 234e891ea9de6a2faeac1817f5c3f220 | geometric mean for each variable | def MPT(mpts):
return np.log(stats.gmean(mpts,axis=1)) | 1 |
6cc9a0684c7056c09c34c40087e0e109 | 1972f559ab4442ed541810ec4f851cb8 | Submit a payment for settlement using the Braintree PHP SDK | {
$payment = new BluePay();
$payment->setCustomerInformation([
'firstName' => $request->input('first_name'),
'lastName' => $request->input('last_name'),
'email' => $request->input('email')
]);
$payment->setCCInformation([
'cardNumber' =... | 0 |
ba9d7d90a03425a366724fed0e7ce776 | 83c98e7b63a53865cc8dd5dfb4c1716f | deserialize the saved data and apply it to the achievements on this object | class AppController(tk.Tk):
def init_leveled_achievements(self):
file = APP_PATH + "src\\\\leveled_achievements.json"
with open(file, 'r') as json_file:
self.leveled_data = json.load(json_file)
for achievement in self.leveled_data['leveled_achievements']:
category... | 1 |
5d4319b3b3d8ed7ff70005e8f8ef8678 | 282c69804022b7f653b163fc91ebdcd2 | Delete the LeagueTeam's data. | class LeagueController extends Controller
public function destroy($id)
{
League::find($id)->delete();
return response()->json(['success'=>'League deleted successfully.']);
} | 0 |
7d891e844130985cc55f2c79aa29085b | 2843f933c8b5178e7842af65025b8756 | 申請責任者(かな)名を設定し、自オブジェクトを返します。 | public class JuchuJuchuAddOnlyRecord extends KitRecord
public void setSyuhantenNm(String syuhantenNm) {
put("SYUHANTEN_NM", syuhantenNm);
} | 0 |
798ad13d0a46fda682895f2ef83a5508 | dcc62f0c444ced4617c7000ac92944a5 | 得到train_examples和dev_examples中的所有字符集合 | def load_chars(examples):
def _add_chars(text):
for char_list in map(lambda word: list(word), text):
for char in char_list:
char = normalize(char)
chars.add(char)
chars = set()
for example in examples:
_add_chars(example['qtext'])
_add_char... | 1 |
f31aa1cdc3f6d478efb7c9ae98f44c53 | 2bbecae22cf8f43101d439483a745246 | Test Extended Euclidean Algorithm. | {
if(a == alg::INT("0"))
{
x = 0_mpz;
y = 1_mpz;
return n;
}
alg::INT xStored("0");
alg::INT yStored("0");
alg::INT g = extendedEuclid(n % a, a, xStored, yStored);
x = yStored - ((n / a) * xStored);
y = xStored;
return g;
} | 1 |
7c91c7ce4a50ae473e41115886e190ea | d5bb36ff459cd3fc261c4d419b35e6bf | Returns a filtered list of Recordings, each representing a recording generated during the course of a phone call.
The list includes paging information.
Makes a GET request to the Recordings List resource. | MediaRecordingResource.OrderEnum order = null,
MediaRecordingResource.StatusEnum status = null,
string processorSid = null,
... | 1 |
0f69a61b614b4672e3c10ba7f20092e8 | 763d99b255606e9279a08000002c4b9d | Gets unit_name | public class RDInventorySummaryRptDto extends DTO
public String getUnitName() {
return unitName;
} | 1 |
aa58eca965cc38ca4cf6d6ffe88d1d4a | c46dc838b9a63851bf82349b46211b71 | 将同一个路径下的所有pdf文件合并成一个pdf | try {
List<InputStream> pdfs = new ArrayList<InputStream>();
pdfs.add(new FileInputStream(pdf));
pdfs.add(new FileInputStream(s));
OutputStream output = new FileOutputStream(combinepath);
concatPDFs(pdfs, output, true);
} catch (Exception e) {
... | 0 |
e9f1c59843d6ed35a174cb05e3a39544 | cd4f272b4bf1c0890a592e9b07286779 | 해당 요소의 텍스트를 글자 하나하나로 쪼개서 배열로 만든 후 그것을 targetStringArr라는 변수에 저장합니다. | function textToArr(element) {
return element.value.split(/[\n\r\t\s,,、;;]+/g);
} | 0 |
d157208aced13952513e21fdf5ca9948 | 6eb51391a1ef9230f32db2fdce6b0965 | filters out future polls | function getExpiredPolls() {
var pollsRef = admin.firestore().collection('polls');
const expiredPolls = pollsRef.where('keep_open', '==', 'true').where('length.end_time', '<', Date.now());
return expiredPolls;
} | 0 |
57e76ac51208ed10cd426f0ced965e38 | 47d75c48623acbc0b7bb46114d397ff4 | 发送给当前频道在线玩家喇叭的封包 | function LXEngine.sendHallPacket()
local stream = Packet.new("CSHallLobbyy", _LAIXIA_PACKET_CS_HallLobbyID)
stream:setValue("Code", laixiaddz.LocalPlayercfg.LaixiaHttpCode)
stream:setValue("GameID", laixia.config.GameAppID)
laixia.net.sendHttpPacketAndWaiting(stream)
end | 0 |
386c0ce6c00b23837dadca75e2aa58f4 | d390ec1723005bb2d986c0d4f33c623d | Check to see if AlgorithmImage property is set | namespace Amazon.Personalize.Model
public partial class Algorithm
internal bool IsSetAlgorithmImage()
{
return this._algorithmImage != null;
} | 1 |
a753997101939ab18774c7ca3166c307 | 78d7e8e637c8d4662a67bc4a4c123b3c | 减少购物车内某一商品数量 | void reduceCount (Integer id, Integer uid)throws CartNotFoundException, AccessDeniedException,UpdateException; | 1 |
766325329a4c0c3fa9185c2179f085ba | dfeb36248aa0182f797f9f98de25a2bf | 通知监听器 | public abstract class RecyclerViewBaseAdapter<T, VH extends RecyclerViewBaseViewHolder> extends
RecyclerView.Adapter<VH> implements RVObservable
@Override
public final void notifyListenerAttached() {
if (observer != null && listener != null) {
observer.update(listener);
}
} | 1 |
8d1bd507938d11245518c6feabc1347f | b7cf3b6d8c124b465e1102c8b379da1e | Marks this filter as invalid. | namespace U3D_Render
public partial class EntityView
public void SetInvalid()
{
m_isValid = false;
} | 1 |
84ff2873f16268fb29f866ed07ef6032 | 32ac497fa78a4126746ee5c9ad80d604 | 请求提升印记效果 | local function requestDoStrengthen()
globaldata.onEquipStrengthenSucessHandler = onStrengthenSuccess
local packet = NetSystem.mNetManager:GetSPacket()
local equipLevel = equipObj:getKeyValue("level")
packet:SetType(PacketTyper._PTYPE_CS_REQUEST_EQUIP_STRENGTHEN_)
packet:PushInt(heroId)
packet:PushC... | 0 |
dc6361c8ac26c3d38d6b5e149cc9e8b6 | 76f8bb6738837b2094724546614bf4cf | 获取直播间骰子游戏记录 | getgamerecordlist() {
return axios({
url: '/Jingcai/getgamerecordlistjingcai/',
method: 'get',
})
} | 1 |
d1c161127522741867a82843989350f9 | e0b76e73b9608a6dbe7380b87f250e4a | Extract $cashtag references from Tweet text. | {
if (string.IsNullOrWhiteSpace(text))
{
return new List<Entity>();
}
if (text.IndexOf('$') == -1)
{
return new List<Entity>();
}
List<Entity> extracted = new List<Entity>();
MatchColl... | 1 |
618e9f93e00d81fc8fde55f390ed2286 | bc34879d2e80b42fe6a552a7c3b1e6ce | Učitavanje asteroida u listu i vracanje popunjene liste | AsteroidListItem* AsteroidList::begin() {
return (this->head).getNext();
} | 0 |
5a25aab83c5c4af833ea8be8097345d1 | bb2da99bc29b045a720ade4566411081 | update profile of admin | {
$admin_id = $this->session->userdata('ADMINID');
$updateData = array('vFirstName' =>$this->input->post('vFirstName'),
'vLastName' =>$this->input->post('vLastName'),
'vEmail' =>$this->input->post('vEmail')
);
$query = $this->db->update($this->table,$updateData, array('iA... | 1 |
552e625c5d85c455e7ef4c6f5a886180 | 77b2083a64cb0e24c97f595a340cb7b5 | Calculates the hebrew year text representation. | {
var start = CurrentDate.AddYears(0 - CurrentDate.Year % 20).Year;
return string.Format(YearPeriodText, start, start + 19);
} | 0 |
4b7bd61f57e63efcb733a9a4d782278b | 6c6ea3a5e28bb532edce6a6a54159a1e | Check that the tabs appear in the correct order | public async Task TabsExistTest()
{
TabController controller = new(new TabDataAccess(base.Configuration));
int albumCode = 14;
int sortOrder = 0;
List<Tab> results = await controller.GetTabs(albumCode, sortOrder);
Assert.IsTrue(results != nul... | 0 |
c9e6a4134e888955c044410d02863a25 | 150f47a8b2e7ebcf2554cd5ff366b483 | Creates a modification that performs a scaling about a given point | {
Transform2D temp;
Vector2 factor = new Vector2(scaleFactor);
CreateScaling(ref factor, out temp);
return temp;
} | 0 |
462ec582d8cf5e7f8517b40b89b597f7 | a390f9e50a4a1774a1e979eaf427d962 | Return whether the specifics preclude using copy_image. | namespace Pal
namespace Gfx9
bool Gfx10RsrcProcMgr::ScaledCopyImageUseGraphics(
GfxCmdBuffer* pCmdBuffer,
const ScaledCopyInfo& copyInfo
) const
{
bool useGraphicsCopy = Pm4::RsrcProcMgr::ScaledCopyImageUseGraphics(pCmdBuffer, copyInfo);
#if PAL_BUILD_GFX11
const auto pDstImage = static_cast... | 1 |
a33309bfb4592b3df4e5bb6fda630952 | d45b8d3ce3d633d0f371a64846545e36 | 设置助威次数 | function BattleActivityProxy:setInspireData(id)
self.allInspireData[id][self.typeId] = self.allInspireData[id][self.typeId] + 1
end | 1 |
8aa5e8a8c5106b49e4d84cc9ca43b25b | ef9c9e658d0f492bf9ddcf296cac3c5c | Pretty printing of catch parameter declaration. | public void writeToStdOut(PrettyPrinter p) {
p.printf("<Catch line=\"%d\">\n", line());
p.indentRight();
p.printf("<Throwables name=\"%s\">", name);
p.indentRight();
for (Type type : exceptions) {
p.printf("<Throwable type=\"%s\"/>\n", type);
}
p.indentLeft();
p.println("</Throwables>");
p.println... | 1 |
e5bd403a17cbabdf4e3443205bbed929 | 214c65db6f5428d63b6eee324e1bf34d | Deletes either a PromoItem or MenuItem from the ArrayList | public class Menu
public void deleteItem() {
Scanner sc = new Scanner(System.in).useDelimiter("\\n");
System.out.println("Please select type of item to delete:");
System.out.println("1. Promotional Item");
System.out.println("2. Menu Item");
int choice = sc.nextInt();
boolean found = false;
switch(choice)... | 1 |
9aa88a5664f1e6181b2edbfa785dea42 | a00ef0da31e212ba87aef357b5bbb863 | \brief Get the channel offset of the current schedule tsch entry. | tmbslHCDP_GetIFOffset(
tmUnitSelect_t tUnit,
Int32 *plIFOffset
)
{
#ifndef TMBSL_TDA10025_NO_64BITS
unsigned long long ulTemp = 0;
#else
UInt32 ulTemp = 0;
UInt32 ulPrecision = 0x100;
#endif
UInt16 uLow = 0;
UInt16 uHigh = 0;
pHCDPObject_t pObj = Null;
tmErrorCode_t err = TM_OK... | 0 |
d682a080b15af54277cb1af3fe2a162f | ae0b4b1d314cfd5a03c719d969eb5304 | User's avatar modifier | class User(UserMixin, db.Model):
# __tablename__ = 'custom_table_name'
def avatar(self, size):
digest = md5(self.email.lower().encode('utf-8')).hexdigest()
return f'https://www.gravatar.com/avatar/{digest}?d=identicon&s={size}' | 1 |
c489c7de76aba3c92931d22699ffe819 | d2c92d704ea9b7cfb32983579f2e630a | The IP address that the flow will be listening on for incoming content. | class FlowSource(pulumi.CustomResource):
def source_listener_address(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "source_listener_address") | 1 |
447936afa503700161687fd45454aa19 | 8a96e593c05c22460b4655f242041254 | Event handler for entree selection | {
switch (listBoxNewMealType.SelectedIndex)
{
case 0:
switchToBurger();
break;
case 1:
switchToPasta();
break;
case 2:
switchToPizza();
... | 0 |
72a360262e0df9b211575bdb41723c15 | 802adfd3ff02c4ca454da921eb25b431 | Calculate matrix exponential for rotation matrix
using Rodrigues’ formula. | def Rodrigues(_x):
theta = Vector3D.norm(_x)
s = math.sin(theta)
c = math.cos(theta)
c1 = 1.0 - c
if theta == 0:
itheta = 0
else:
itheta = 1 / theta
_x = _x * itheta
ax = Vector3D.toArray(_x)
rrt = array([[ax[0] * ax[0], ax[0] * ax[1], ax[0] * ax[2]],
... | 1 |
04f5886719aa47b10b1e51ee0db7d311 | c54f947506b7e4f30bec446ec6ed368a | Computes the simplex noise value for a corner in a tetrahedron | export class Perlin
simplex3(xin, yin, zin) {
let F3 = 1 / 3;
let G3 = 1 / 6;
let n0, n1, n2, n3;
let s = (xin + yin + zin) * F3;
let i = Math.floor(xin + s);
let j = Math.floor(yin + s);
let k = Math.floor(zin + s);
let t = (i + j + k) * G3;
let... | 1 |
3ffa8519e73abcfaaf9524826171791e | c4a38c756d1587e609e0e125746ae767 | implementation of DE/rand/1/bin for tuning a feedforward network | rand.Seed(time.Now().UnixNano())
network := glowtuna.NewNetwork(
layer.NewFullyConnected([]int{2}, layer.Methods{}),
layer.NewFullyConnected([]int{4}, layer.Methods{
Activation: activation.Identity{},
Propagation: new(propagation.WinnerTakeAll),
Optimization: optimization.NewWinnerTakeAll(0.3),
}),
... | 0 |
1254769e29da10eeb4ff0119c9e699c1 | ebc516c832ac95c65ed09358aaef286d | 初始条件:顺序栈已存在
操作条件:将L置为空表 | SeqList Converts(SeqList *L) {
} | 0 |
71e62a02b5e7f45bc1ab63ba65f4cb4d | ee493d210d7df67b4fabd310bd1037c8 | 转换为百分比格式 | public class CommonUtils
public static String ConvertToPercentage(double num)
{
return num!=0.0D ? (double)Math.round(num*10000D)/100D+"%" :"0%";
} | 1 |
5ecef29852ae3c9c9b702659342e9b8b | a213ea3068d04dd961e59e3340680303 | returns the value of $stCount | int CppStash::count(){
return next;
} | 0 |
efbc1090a0a544b7f3a394ffa11b4147 | 68797fc6065de42cf6806e3f0f78a548 | Clears all batches and adds them to a pool so they can be reused later. | class Client extends EventEmitter
batchClear() {
delete this.batchRequests;
} | 0 |
3acb446e1e4a09d57d2001f7297fb87e | de9d5b442649fc0b260e1574e983a147 | Create scope, collection and obtain collection id | class Parser
private function createCollectionIdFromJoin($object, $configuration) {
$collectionId = null;
if (count ( $this->errors ) == 0) {
if (isset ( $object->configuration )) {
$subConfiguration = $object->configuration;
} else {
$subConfiguration = null;
}
if (isset... | 1 |
703383495f402450a14121aa4d484605 | 48161d36325819697a57c005ecd54382 | Get Transaction details by invoice number | $transactionID = urlencode('example_transaction_id');
$nvpStr = "&TRANSACTIONID=$transactionID";
$httpParsedResponseAr = $this->postHTTPRequest('GetTransactionDetails', $nvpStr);
if("SUCCESS" == strtoupper($httpParsedResponseAr["ACK"]) || "SUCCESSWITHWARNING" == strtoupper($httpParsedResponseAr["ACK"])) {
ex... | 0 |
a2fcb7a4c898bc0ee885263d72b4fc0d | 99bb833d3af6b28919e34c7b454afff4 | Tests child subnets are excluded from overlapping validation | self.Run("""
compute networks subnets update subnet-1
--region us-central2
""")
self.CheckRequests([]) | 0 |
f260b48a287d1418fffb3d2b850a38a2 | fe327482c8c11e6d6d24b7ddd59cd44f | Returns the near plane value | class Camera
get nearClipPlane() {} | 1 |
ff92a82a8c5b7d31cc903520b921b4bf | 4dd2775e5b27e7abfa86881ffe6e89ee | Read the previous utterance ID but don't read the data.
Returns:
The utterance ID of the utterance that was read. | class AbstractBufferedDataStorage(object):
def tell_read(self):
pass | 0 |
bdaaf74099f229708d654553d3c4127b | 79a0e7338b9d0c8038529f69f52ae41d | Returns the meta object for the attribute '{@link assignment1.Course#getRole <em>Role</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EClass getTeam_Role(); | 0 |
b5d0f68019e71905e97f2cf9c2c00744 | ac98c7a27795521775e85d17c098b298 | 屏蔽SIGPIPE信号 | func init() {
C.signal(C.SIGPIPE, C.SIG_IGN)
} | 1 |
a87ca81f58ca83147f4b49a079f905e3 | 1b497687f639b01782d40a8fc663e4a4 | Initializes the Bucket class | self.bucket = 1000
self.bucketItems = 1000
self.hashset = [None for _ in range(self.bucket)] | 1 |
6d4affa4e39a4e14c8714bd229517710 | 5c08dc73fcc477e354f7cc94a7b07351 | This method performs an asynchronous rendition and calls back the result to the
provided callback object. It uses the provided latch to coordinate the JUnit and
the asynchronous action thread and uses the provided MutableString to send back
any error messages for JUnit reporting.
<P/>
This method blocks until the actio... | OnRequestCompletedListener callback){
AsyncPerformer performer = new AsyncPerformer(actionToPerform, callback);
performer.execute();
asyncQueue.addTask(performer);
} | 0 |
c187ef8633b22ca4daf2d82aaed46b3d | 2592560b58f8ccac60f7b54e5fa799a0 | 发送TIM通知 | require_once(DOCUMENT_ROOT . '/system/tim/TimApi.php');
$api = createTimAPI();
$api -> openim_send_msg($user_id,$to_user_id,$msg);
} | 1 |
e249ba08b31d8812b6a2d065f87a5e99 | 88367204893488e5a5745c0b0a48362a | Returns the file extension used for persistent XML files | namespace CubeX
namespace Core
public abstract class RepositoryFile : CModel, ICubeXRepositoryFile
public virtual String GetFileExtension()
{
return (mOrganizationType == TRepositoryOrganization.Object ? XFileExtension.XML : XFileExtension.TXT);
} | 1 |
9091942d1f1ce16e73986f60352cd44c | c6da60a870d8746850cf6dbccfaa21c0 | Convert 6-digit hex string to a colour | if(str.length() != 8 || !str.toLowerCase().startsWith("0x")) return null;
return colorCodeToColor(str.substring(2));
} | 0 |
6205bfc5d8362443b31d940119221e97 | a679f4505b87ceb018b95e0609d89f7e | Sets the gui line for the specified parameter | class TkParameterized(TkParameterizedBase):
def gui_set_param(self,param_name,val):
self._tkvar_set(param_name,val)
self._handle_gui_set(param_name,force=True) | 1 |
eebc4838c9ef29c3f5b598eab6b0c4a6 | c52c5e090236001c714f08fb3f7e8e7b | Sets label based on the radio buttons selected | ButtonGroup bg=new ButtonGroup();
bg.add(permRadioButton);
bg.add(nPermRadioButton);
if(permRadioButton.isSelected()){
rLabel.setText("Permanent");
rLabel.setVisible(false);
}
else if(nPermRadioButton.isSelected()) {
rLabel.setText("Not... | 1 |
1438cec9defb1320e975708dc77b885f | 3f633c61384bd357280f23f0c6d54b40 | 30以下の奇数を返すイテレータ | i = 1
while i <= 30:
yield i
i += 2 | 1 |
9abc08a7e3fc0bf424db0998cf71be11 | 0182ece705fa1dbdfbee3c7fd1e843a8 | 计算month月day日是当年的第几天 | msp = [31,28,31,30,31,30,31,31,30,31,30,31]
msr = [31,29,31,30,31,30,31,31,30,31,30,31]
if year%400==0 or (year%100!=0 and year %4==0):
ms=msr
else:
ms=msp
d=0
for i in range(month-1):
d+=ms[i]
d+=day
return d | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.