query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
c6967fa7a9fbd6b6057530028222975d | 096a12dcc07d1fe824d214d008d36ca2 | Checks whether an action is ap-deterministic (as defined in class), in
the context of a given {@link TransitionSystem}. | if self.A[arg] != IncAF.DEFINITE_ARGUMENT:
return False
def condition(af):
return af.is_skeptically_acceptable(arg, semantics)
return self.necessarily_satisfied(condition) | 0 |
8eeffc0599f6a8922695f20c7a7806b6 | b632f3bd87c671fa94db5ab90648c6a5 | Get list of optional models to duplicate | @NonNull
Set<String> listModels(); | 0 |
5cb2454fe8a0d1df2e0aa21ab2d8ea23 | 13af6a761ebcc8d9973fb401ac60a01b | 将openCV图像转换为PIL包对应的图像 | def main():
def cv2pil(image):
new_image = image.copy()
if new_image.ndim == 2:
pass
elif new_image.shape[2] == 3:
new_image = cv2.cvtColor(new_image, cv2.COLOR_BGR2RGB)
elif new_image.shape[2] == 4:
new_image = cv2.cv... | 1 |
34ee31caffc55ed110f6c477594dbc96 | e3ea1fdf9db3dfd367e04dc2d5f76300 | nth permutation | int main(int argc, char* argv[])
{
char str[] = "1234567";
int n = strlen(str);
permute(str, 0, n-1);
return 0;
} | 0 |
9c8f64d7068fee2259c9b601739a510a | a3d0e2ae7d5e1b855e66dfc586c15723 | Identify the message currently being processed. | class Process(multiprocessing.Process, common.State):
def start_message_processing(self):
self._message_connection_id = self._connection_id | 0 |
b50814d584e1878c1ec248769ec6e3a9 | 2e7f95a7ef8af83567cb1f97a2f19c43 | Read side put procedure for IPv6 module. | static inline tuint neu_tx_process_IPV6(neuInst_t *inst, tuint pkt_len_b, tuint plen_bytes)
{
return (neu_tx_process_IPV6_base (inst->tx_ip_offset_words,
inst->tx_sys_assembly_buf,
pkt_len_b,
plen_bytes... | 0 |
a5da422d2e109f44207f2871517488d3 | c09e84f8c01ab2c5a3f3b40a95ca4d03 | Unsets the value of the '{@link org.bimserver.models.ifc2x3.IfcMechanicalMaterialProperties#getDynamicViscosity <em>Dynamic Viscosity</em>}' attribute.
<!-- begin-user-doc -->
<!-- end-user-doc --> | boolean isSetDynamicViscosityAsString(); | 0 |
e4b33d644d6d8119057ed3d5603a9c5a | 4c95e9969922302ca69b15610707b48e | hides all other parent elements on screen and performs actions to show/load the passed in element group | var hideElements = new HashSet<UIElement>();
foreach (var element in UIElement.Instances) {
if (element.Group == group) {
hideElements.Add(element);
}
}
foreach (var element in hideElements) {
element.Hide();
}
} | 0 |
34215fafea1d5b0343ec6b3b48d84e5b | 4544cbf807ba4392b666567786e391a0 | Get constraints to be added to the given edge that comes out of\
this vertex | edges = []
for n1 in self.edges.keys():
for n2 in self.edges[n1].keys():
edge = self.edges[n1][n2]
if n1 != n2 and edge.constraint:
edges.append(edge)
return edges | 0 |
e1dac4175950b18e477bd174d5a8612e | aac271cf94a891ed7ac9d19fb3633797 | 将map根据value值进行排序
true为降序,false为升序 | @Service
public class DataCollationImpl
private static Map<String, Integer> sortMapByValue(Map<String, Integer> oriMap) {
if (oriMap.isEmpty()) {
return oriMap;
}
Map<String, Integer> sortedMap = new LinkedHashMap<>();
List<Map.Entry<String, Integer>> entryList = new ArrayList<>(
oriMap.entrySet());
Co... | 0 |
b03b5e440c5f6ce4de3ffc6045f312cc | b58ac0ae935c3e43f766815d8ce16b03 | Gets the rules applicable for the flight search criteria. | List<BiplaneCommissionRuleI> getRules(); | 1 |
04e31cdc9925f29bbd14a784be399eda | 3616572b241292741c9f9368b1cd8dad | 拼接权限编号字符串 | List<String> permissionNames = new ArrayList<>(permissions.size());
for (String permission : permissions) {
String curPer = permission2String(permission);
if (!permissionNames.contains(curPer)) {
permissionNames.add(curPer);
}
}
return ... | 1 |
cf8cb7e8f017bf66e15e026a64060495 | 6c23b3b45325d40f156d1b98b8efd27e | Call workerFinsished on all BusyWorkerListeners | {
var succeedEventListeners = this.WorkSucceeded;
if (succeedEventListeners != null)
{
this.WorkSucceeded(this, e);
}
} | 0 |
83e4457853183f6fa349ea877e33c15d | a7c193df0db3a2fd44b9f366271fcd2c | This method returns the angle needed to reach next position. | GLfloat determineAngle() {
switch (nextDirection) {
case UP:
if (currentDirection == DOWN)
return 180.0f;
if (currentDirection == RIGHT)
return 90.0f;
if (currentDirection == LEFT)
return -90.0f;
else
return 0.0f;
case DOWN:
if (currentDirection == UP)
return 180.0f;
if (currentDirection =... | 1 |
91c01822fa54ed79f918cce84231ac03 | 36a433f6a9d4b8de6a936475b740ca1a | Return the relation tokens for a property | var relationSet = OntologyPropertyRelationsRegistry.ontologyQueries[String(ontologyAcronym)];
var escapedPropertyId = Utils.escapeIdentifierForId(propertyId);
return relationSet.relations[escapedPropertyId];
} | 1 |
d7e4e06b4d5e041cb269946cddd70a8d | 1eaffcc02cd7a8c1c79c42f1179447d9 | Отрендерить контрол в картинку | {
var previousVisibility = Visibility;
Visibility = Visibility.Visible;
var bmp = new RenderTargetBitmap((int)ActualWidth, (int)ActualHeight, 96, 96, PixelFormats.Pbgra32);
var drawingVisual = new DrawingVisual();
using (var dc = drawingVisual.RenderOp... | 1 |
56cdea0fc75b9a43b8d13d11cad17a94 | 4fe0802f34519956bc29cc46bc64c78f | 英語の市町村名を取得 | $prefecture_list = static::GetPrefectures();
return isset($prefecture_list[$pref_cd]) ? $prefecture_list[$pref_cd] : '';
} | 0 |
0131d940ca26ac91d77f08025a92cf17 | f2aa8a6249bb81763c4929c66725a2ee | Function to verfiy estimated homography | pts_est = transform_pts_Rt(pts, R_est, t_est)
pts_gt = transform_pts_Rt(pts, R_gt, t_gt)
pixels_est = K.dot(pts_est.T)
pixels_est = pixels_est.T
pixels_gt = K.dot(pts_gt.T)
pixels_gt = pixels_gt.T
n = pts.shape[0]
est = np.zeros((n, 2), dtype=np.float32);
est[:, 0] = np.divide(pixels... | 0 |
502aa1f96116d235753deb01f8ac526e | d40604b0c5e3900ff7cedb58e1fb7183 | Cancel the current line of input, along with undo info for that line. | {
TextPtr myTextPtr = MyGetTextPtr (pmTextDisplayWindow);
int myStatus = EdText_SelectLine1 (myTextPtr, pmLine);
if (myStatus == HIDE_SELECTION)
{
MyCaretDisplay (pmTextDisplayWindow);
MyCaretMove (pmTextDisplayWindow);
}
else if (myStatus == CREATE_SELECTION)
{
MyCaretHide (pmTextDispla... | 0 |
d5c70144f694b425866442c92234ebb5 | 3841ed5bf66142c5e768f39a4b3ebef6 | Intercept template requests, and return a raw dictionary if json. | def request_view():
request_data = {
"method": request.method,
"url": request.url,
"path": request.path,
"data": request.get_data(as_text=True),
"json": request.get_json(),
"cookies": {key: value for key, value in request.cookies.items()},
"params": {key: valu... | 1 |
2778d350aa3b08ed98c0f2f622981f61 | 17fb67b88b7bf70bc0a065ddcbc34ef1 | 削除対象の在庫Hのデータを取得 | class DAO
public function delete_holding_info($holding_id)
{
try {
$this->db_connect();
$stmt = $this->pdo->prepare("DELETE FROM holding_info WHERE holding_id = :h_id");
$stmt->bindValue(':h_id', $holding_id, PDO::PARAM_INT);
$stmt->execute();
echo... | 0 |
494c6db3ed3c3638569f9143b4e236e8 | 1f14064beac4ee0f62458469c9b40e73 | Returns whether the specified path is the same as the internal EASy default value. | class LatexOutputPath(private val variant: String, var contentRoot: VirtualFile?, var mainFile: VirtualFile?, private val project: Project)
fun isDefault() = getDefaultOutputPath() == virtualFile | 1 |
0d3735a816d08550dccf00162c92e0e1 | 6066a21818afc3f25214412e9166e032 | Blocks signals used by the product-queue for the current thread. | int bloq_signals() {
sigset_t sigset;
sigfillset(&sigset);
if ((sigprocmask(SIG_BLOCK, &sigset, NULL) == -1)) {
exit(EXIT_FAILURE);
}
return EXIT_SUCCESS;
} | 1 |
e0b5d3846b5fb7142d534eb65ad52d59 | f6ee326b0aa4b09d28376d7d1f6badbc | 设置直播封面url | @Table(name = "baoji_celebrity")
public class BaoJiCelebrity
public void setCover(String cover) {
this.cover = cover == null ? null : cover.trim();
} | 1 |
0cc69abd6d206845173d50b2631c189b | bdff1e7e180351258bb78de1b9e5896e | Simple round data getter. | def _round(ctx, num):
raise NotImplementedError
yield num | 0 |
0dd7e0cecf9bff25d551dc3c5a667f55 | 21629f5a99a22fa7248889d19bf79c5d | edit phone number using contactID | class AircallContacts
public function updatePhoneNumber(int $contactId, int $phoneNumberId, array $options = [])
{
$path = $this->contactPath($contactId);
return $this->client->post($path.'/phone_details/'.$phoneNumberId, $options);
} | 1 |
749cbdb6d131d026d7b929a631728d0c | 28c37ded61c098393d8e67ec341cff15 | 根据组织Id获取,相应组织下的消防中队列表 | public Response queryFireBrigadeByOrganization(@RequestBody Map map) throws Exception{
SysUser user = null;
List<Map> queryResult = iFireBrigadeService.query(map,user);
return new Response(queryResult);
} | 1 |
e4ebef625069d71766b5f7b239fb342b | 07845e4d942c2fc3b467cf54113806c8 | 监听类型下拉 | this.advService.typeSelect().subscribe(response => {
if(response != null && JSON.stringify(response) != "{}"){
if(response.code == "200"){
this.typeSelect = response.data;
}
}
});
} | 1 |
0c5bba250427bd60f3cca4f714a7086e | 8cdcb09f37b74e951946307e1c8504ef | <summary>
First response in the group
</summary> | class TagGroupQuestion extends Question
firstMessages(context: ConversationContext, data: DataStore): Promise<void> {
const usage = this.dialect.tagGroupFirstMessage(this.tagGroup.name)
+ "\n"
+ this.method.show();
context.currentRequest.meshinatorMessages.push(usage);
re... | 1 |
d738021a417b94ba5831efe64945ca29 | 786f277087d0926c1ccceaa160024bac | Indicates the message for failed to load settings. | namespace Baku.VMagicMirrorConfig
class MessageIndication
public static MessageIndication ConfirmSettingFileLoad() => Load("ConfirmSettingFileLoad"); | 0 |
1cc2f9d1ab0c1cba7e546e6d733e6080 | d19a0e027856d358893b4643c3190afa | returns the data member initialisation code (not always neccessary in java but
still we do it) | public class RReferenceInfo extends RClassComponentInfo{
protected Object[] getInitialDatas() {
switch(rClassID){
case 1:
return new Object[]{new Byte(initialData)};
case 2:
return new Object[]{new Boolean(initialData)};
case 3:
return new Object[]{new Short(initialData)};
case 4:
return new Objec... | 1 |
0b1a71ab30efc6f2fbfcc067d6da9914 | d679df5a0b3518d88930795ea0e1b1a2 | Setter for the 'isOk' attribute | public class TLTIf
public void setIfOk(TLTNode ifOk) {
logger.trace("setIfOk");
this.ifOk = ifOk;
} | 0 |
9573ec67c0e2c34140700106f91d0334 | 4e11bfcc5daa83c048020f03f87a7222 | The background used for selected cells. | String selectionBackground(); | 1 |
e0c0369d0d6068b0755fcfd225921452 | e85b31b14dae13e138c69b6997e4b520 | Zwiększa licznik konkretnego sufixu. | public function incCount(): int; | 0 |
13bb190368d148e37ff14aada78877bb | f2dfb842dc4af21e069770e7158d4eaa | 获取积分任务配置 | namespace GX_OA.Controllers
public class NewsController : ApiBaseController
[HttpPost]
public ApiResult<Dictionary<string, object>, DBNull> GetScoreConfig()
{
return bll.GetScoreConfig();
} | 1 |
00c2df08defce816f779df64cf145c4f | 10ed22c32911aa7421ed59321bb116e8 | Method to read the spray points out of the input file and into WGS84 coordinates | def ReadData( left, right, no_sprinklers, length, width ):
distance = 0
radius = 0
iterator = 0
while iterator < no_sprinklers:
distance = float(cin.readline())
radius = float(cin.readline())
if radius >= width:
x_point = FoundPointX(width,radius)
round(x... | 0 |
3cecfcea0724e626b710c421ecafc73c | 5e85ffcdd03410453bb1cd7fe83ecb3a | draw a random number that has not already been selected | function pickRandNum() {
currentNum = randomInt(1, 50);
while (checkArray(currentNum, pickedNums)) {
currentNum = randomInt(1, 50);
console.log(currentNum);
}
pickedNums.push(currentNum);
number.innerHTML = currentNum;
} | 1 |
349df6275f354d2270a2ceb5d5549e58 | a7d4da9cb22d1e44124423bfc74e2fd0 | Unset expiration date. | abstract class CLIENT_STORAGE extends RAISABLE
public function expire_when_session_ends ()
{
$this->expire_date->clear ();
} | 1 |
69e12495c845f0be5453286a9e14a905 | 378af51a59aa57d77bdf5ab3d11d4ebc | 查询某个权限的父级 | class AuthRule extends Model{
public function getParentId($ruleId){
$ruleres = $this->select();
return $this->_getParentId($ruleres,$ruleId,true);
} | 1 |
cb4c4604358a23281918f9771fff7791 | 18a0d7d39e83bffa9ff54deb70befe2c | 根据文章id检查文章是否存在,如果存在就返回该对象 | o_id = self.data.get('o_id')
obj = models.article.objects.filter(id=o_id)
if obj:
return o_id, obj
else:
self.add_error('o_id', '亲, 数据丢了~') | 1 |
60dcd2a1052a6f8f9d74a7f0370dff18 | 459a734e6f2f76f7eebed54f26b27be3 | Animate whole cube on X | public class CubeMotion : MonoBehaviour
void Update () {
this.transform.Translate (1, 0, 0);
} | 1 |
ac74be8308826195a7434db562e28edc | 65156c4dc83a4bfa2527426e1e57214e | Случайный объект списка с определенной вероятностью | $sum = -1;
$lot = array();
foreach ($list as $key => $val) {
for ($i = 0; $i < $val[$this->probField]; $i++) {
$lot[] = $key;
$sum++;
}
}
mt_srand();
$hit = mt_rand(0, $sum);
$data = $list[$lot[$hit]];
... | 1 |
90b77e0d067f2a316da71fc04b6c79c7 | 83b55295ad1effa648c77de5c9e1ab5f | Method invoked by drop down filter selection
@param object sender
@param EventArgs e | public partial class Admin_Components_EBayInternationalShippingDrop : AdminAdvancedBaseUserControl
protected void uxEBayInternationalShippingDrop_SelectedIndexChanged( object sender, EventArgs e )
{
OnBubbleEvent( e );
} | 1 |
b98e29bbdad7af8eb9aaf02e40f5f394 | 0dd4fc83826c83afcec1b1af30efe9ce | 带有乐观锁的 updateByPrimaryKeySelective 方法 | @SpringBootTest
class Mpdemo1010ApplicationTests
@Test
public void testOptimisticLocker(){
User user = userMapper.selectById(1250573370756440066L);
user.setAge(200);
userMapper.updateById(user);
} | 0 |
a1841146da9d4da086312720419b2e20 | a22de36ac58c54b77362373afae0c0d5 | 如果随机选择的代理有账户密码验证,则使用base64验证 | return __awaiter(this, void 0, void 0, function* () {
const protocol = this._getProtocol(conn);
if (protocol == null) {
const token = yield CacheFactory_class_1.CacheFactory.instance().getCache().get(AgentManager_1.CACHE_REGISTER_TOKEN + agent.req.socket.remoteAddress);
... | 0 |
0cf59f8d0876977f1da71bfcad735cd5 | 53f7258dd625f54c8e44d4615e93cd7b | 画像をpictureBoxにセットする。 | {
try
{
Bitmap bmp;
bmp = new Bitmap(pb.Width, pb.Height);
float PictureBoxSizeRatio = (float)pb.Width / pb.Height;
float ImageSizeRatio = (float)img.Width / img.Height;
if (ImageSizeRatio > PictureBoxSizeRat... | 1 |
bbe11a5c7b5e8138a8d8ac5b3f62c628 | 85f14ec38457d531fdcda06c32ca4e19 | Изменение владельца книги при обмене | var elem = $(this);
var orderId = elem.attr('data-orderId');
var authorId = elem.attr('data-authorId');
var url = baseUrl + "/Order/changeAuthor";
var data = {orderId: orderId, authorId: authorId};
$.ajax({
url: url,
data: data,
success: function (resp) {
if (resp.error == null || resp.err... | 1 |
c5db9e3843fd8dfb8624d66c95c1545c | f7b5092bfe32600cb7e791cce94e3035 | 获取某个复习备考进度 | PProgress getProgressById(String progressid); | 1 |
d280b6f5cbd91069fdac80378c52b47c | 305f255d5b6b6c0dfaca32be7ff0c315 | 判断你是否是标准版. | deploymentMode := beego.AppConfig.String("deployment_mode")
if deploymentMode == StandardDeploymentMode {
return true
}
return false
} | 1 |
055c619bd3ad363e69b9eb8c0d0c95bd | 247640affb8ef879de90da497e48bab8 | Lookup person from trogdir-api | resp = await self.request(PERSON_URL + str(target_id))
if resp is None:
raise PersonNotFound("Person with the given ID was not found")
result = Person(target_id, resp, state=self)
return result | 1 |
3f3ab4d9c7691595ea9173abdd898171 | c9004ef85ed0bd0d944bd87765ef7aad | 两值差的平方除2 | static double sq_diff(double x, double y){ return (x-y)*(x-y); } | 0 |
d66c6406be4c50d8cffaf87458df2895 | 1a27b97fd626f4359357731e37aaf9f3 | Текущий год. | def current_year():
return timezone.now().year | 1 |
72c57b0fec2562cee5d7bb53c754c0d9 | e5eae3c06322f890909a7d4cb0efe375 | 为table操作列加上图标 | let data = tableMap[d.uid];
if (d.type == 'dataset') {
d3.select(`g[data-uid="${d.uid}"]`)
.append('use')
.attr('bind-uid', d.uid)
.attr('x', d.x + (UI.RECT.WIDTH - UI.ICON.WIDTH) / 2)
.attr('y', d.y + (UI.RECT.HEIGHT - UI.ICON.HEIGHT) / 2)
.a... | 1 |
1670dac2f7c8a8536fc3248832568447 | f094d49fe8e3174418a77575d6ff2637 | Convert a capitalized character to its alphabetical index (0 to 25) | int ctoi(char c) {
return c - 65;
} | 1 |
ed5db2ee065358e34a64a6f475be3b7a | 4e8c4815855433fc0fb277dd545fb8ae | Tests whether a file object contains an ICO (Windows icon) image. | if ( ! is_file( $filename ) ) {
return false;
}
if ( false !== strpos( $filename, '../' ) ) {
return false;
}
$file_contents = file_get_contents( $filename );
$color_type = ord( substr( $file_contents, 25, 1 ) );
if ( ! imsanity_gd_support() && ( 4 === $color_type || 6 === $color_type ) ) {
return true;
}... | 0 |
50b70a9b906a2e7fed7100bafa0b2823 | e78709c13e0378aa7f4e96776f2f4c47 | This method could not be decompiled.
Original Bytecode:
Try Handler
Start End Start End Type
0 5 240 246 Any
11 33 240 246 Any
33 49 246 257 Any
58 69 240 246 Any
72 84 240 246 Any
84 151 182 190 Any
151 179 182... | public class C7114o extends C7085c
public int mo24602F(int r8, int r9, int r10) {
throw new UnsupportedOperationException("Method not decompiled: p298d.p299a.p300a.p301a.p303y0.p389g.C7114o.mo24602F(int, int, int):int");
} | 1 |
ac60df33f03e906d40bf3a390b1545bc | 9c8ce0f4d28a7d41d7e154ab335552e3 | 显示设置坑位数量的窗口 | function BeginCookWidget:OnSetNum()
local onUpdateChange = function(num)
self:SetNum(num)
end
local numTable = {
["inputNum"] = 1,
["minNum"] = 1,
["maxNum"] = self.m_MaxNum,
["bLimitExchange"] = 0
}
local otherInfoTable = {
["inputTransform"] = self.Controls.m_ButtonNum.transform,
["bDefault... | 1 |
734a7bc8b046c65f8ad45ee8163063de | 038ac1fed1ae0c5f7c6626bfeb3c6652 | Flushes downloading or uploading data for the given path. | return this._tasks.handle(() => {
if (this.isSftp) {
return this._sftpClient.unlink(path);
}
return this._ftpClient.remove(path);
});
} | 0 |
a13f79d701c2459ee427918e62017a66 | 9b6affe5054232fdcfcc7c4128941638 | This object is meant to store a batch of embedded graph data | class Batch:
def __init__(self):
self.encoderSeqs = []
self.encoder_lens = []
self.label = []
self.decoderSeqs = []
self.targetSeqs = []
self.decoder_lens = []
self.contextSeqs = []
self.context_lens = []
self.questionSeqs = []
self.questio... | 0 |
d03a928b2cbe38dab77d12da9188f4ba | ca165b46d01cd387de2360a808d94a76 | Getter method for the canceled_at attribute.
When the gift card was canceled. | class BTPurchaseInfo(object):
def canceled_at(self, canceled_at):
self._canceled_at = canceled_at | 0 |
ed4fea49ffc94df38aa254c48f910570 | 299808b580656185763bfc20008b9bd4 | Set up the ratio bounds for the this panel. | var ratioIdeal = parseFloat(document.getElementById('ratioIdeal').value) || 0
var ratioTolLow = parseFloat(document.getElementById('ratioTolLow').value) || 0.05
var ratioTolUp = parseFloat(document.getElementById('ratioTolUp').value) || 0.05
var ratioMin = ratioIdeal - ratioTolLow
var ratioMax = ratioIde... | 1 |
a22e791083f35866e68a3981d5860ade | 24231ea932990c8b4ae97a47bf560245 | 查找bug的版本,如果没设置则取数据库里的最大版本号 | {
if (array_key_exists("bug-version", $proAttriList))
{
return $proAttriList["bug-version"];
}
$sqlCmd = "select value from versions where product_id=? order by id desc limit 1;";
$stmtParams = new StatementParameter();
$stmtParams->addParameter('1', StatementParameterType::$STATEMENT_TYPE_INTEGER, $... | 1 |
cebebcbceb5a9dffe6a2674135abf27c | 4c101a5dfd2c62871d9115a60c02e48a | Insert into subG nodes and edges of N[S] in G. S is a set of nodes. | in_taxon = self.gu.getNode(self.properties['in_taxon'])
s = self.gu.getNode(genopart_id)
self.graph.add((s, in_taxon, self.gu.getNode(taxon_id)))
return | 0 |
eb5c6a258fd7a6f92d51940838ae7bc4 | 07b4440248fffebf43f6e9eb20a77d14 | 区分查询的表,0表示查询当天表,1表示查询 历史表 | class IndexController extends ManageBase
public function getTableName()
{
$time = strtotime('2018-12-31');
$endtime = I('endtime');
if(empty($endtime)){
$table = 'Order';
}else{
if(strtotime($endtime) > $time){
$table = 'Order';
}else{
$table = 'Order_2018';
}
}
return $table;
} | 0 |
b79994bd7cd9884ea65301ce06c76dfd | ac260059143bf9f7a9fdbd6083ab2e12 | 获取网站百度收录总数 | dateNow = datetime.datetime.now()
dateYearAgo = dateNow + datetime.timedelta(days=-365)
intNow = str(DateHelper.getDateInt(dateNow))
yearAgoNow = str(DateHelper.getDateInt(dateYearAgo))
print intNow
print yearAgoNow
stf = 'stf=' + yearAgoNow + ',' + intNow + '|stftype=1'
stf = urllib.quo... | 1 |
82b2758fc37004db85c7c9e925cb9181 | 0cdd2fe4f56a3cab87762fce0df0674b | Listen for settings change to reload the theme and trigger restart if necessary | class Bridge
constructor() {
events.on('settings.lang.edited', () => {
this.getActiveTheme().initI18n();
});
} | 0 |
599e3ec7715dc3d57d49da5f63761a7b | 020f0efd9df0612db372dc6611c5072f | It copies the fields budget to current fields. | budgetMonthValue.value = this.budgetMonth;
budgetDayValue.value = this.budgetDay;
expensesMonthValue.value = this.expensesMonth;
additionalExpensesValue.value = this.addExpenses.join(', ');
additionalIncomeValue.value = this.addIncome.join(', ');
targetMonthValue.value = ... | 1 |
ee0ce07475345ce56becd8d2c588c153 | 0bfc8e492bdd61c44d91b0c5a9c98b9e | -------------------------------------------------------------------
Generate the type body code.
@param indentSize The indentation needed for the class definition.
@return The formatted body code for the type. | namespace ImGuiControls
public class Inspector
public string GenerateCode(object forObject)
{
return GenerateCode(forObject.GetType());
} | 0 |
f40c83ad75e982ced2f3fed90dd7d407 | a561f8b315fec68984c6fec0e704b5c5 | Definición del operador <=> según el valor energético de un alimento | class Eficiencia_Energetica
def <=>(anOther)
self.huella_nutricional <=> anOther.huella_nutricional
end | 1 |
5c6b7e7fabf150fa35b39f4239ba85ca | 40c4aa613e9b34753a5e71fb4d0a1332 | Returns the value of the '<em><b>Semester</b></em>' container reference.
It is bidirectional and its opposite is '{@link ra.Semester#getSemesterCourses <em>Semester Courses</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EList<courseInSemester> getCourse(); | 0 |
c7838ccc75b12d8a5248cb11802caa75 | e39e6201e5caf4e8f8829d64863b7f4e | create second row of cards and position on canvas | {
boardSecond = new createjs.Container();
var boardBG = new createjs.Shape();
boardBG.graphics.beginFill("#FFFFFF");
boardBG.graphics.drawRect(0, 0, BOARD_SIZE, BOARD_SIZE);
boardBG.width = boardBG.height = BOARD_SIZE;
boardBG.cache(0, 0, boardBG.width, boardBG.height);
boardSecond.addChild(boardBG);
var pi... | 1 |
ebd4eb6f1e57113f135c987b8bf34e56 | cf3661e9854efcc37cd287bf526e2f76 | 获取项目通过Nuget引用的程序集 | public class CommandDiscovery
public static Assembly[] GetProjectAssemblies()
{
return AppDomain.CurrentDomain.GetAssemblies().Where((Assembly assembly) => assembly.FullName.Contains("Assembly")).ToArray();
} | 0 |
d70a6689023090f02b0d36b4eb173d7b | 09affd1c5d37b683bbaa5fd06eccf632 | commands that accept arguments but don't have completion.
Their completion must return '0' (instead of NO_PARAMETER_EXPECTED) | if (args.getAllArguments().isEmpty()) {
if (args.getRemaining().isEmpty()) {
return RequiredCompletion.COMMAND_NAME;
}
var cmd = args.getCommand();
var sv = new StringView(args.getRemaining());
var words = sv.words();
if (co... | 0 |
21939863a4292e4717acf015d81da8bb | 99746c9346a4c1d16d2749edd22258fa | Close menu when clicking off | export class MenuComponent implements OnInit
onClick(event): void {
if (!this._eref.nativeElement.contains(event.target)) {
this.opened = false;
}
} | 1 |
d005bc90ec25e8fe096a26dede067294 | cff84601d8d9b0008958fb5e666d7550 | Test that serving files does not work when not logged in. | class FileActions(ClientTestCase):
def test_unauthorized(self):
r = self.client.get(self.file_url, {})
self.assertEqual(r.status_code, 302) | 1 |
c4932624344b6573ec8379cf92b909b3 | 59b24b011a80d5a4ed2fd3bc25b8126b | DELETE /copies/:id : delete the "id" copy. | class CopCapController extends Controller
public function destroy($id)
{
} | 1 |
cddbaf4767740a9a8b33fbab0067fa37 | 4209682eb66bbaef0faa995064fd1d9b | This signal is emitted when the user has selected a path. | class FoldersTreeView(QtWidgets.QTreeView):
def _selection_changed(self):
path = self.current_folder_selection()
print 'init signal'
self.itemSelectionChanged.emit(path) | 1 |
d9ecfd5f4b4f2ddef960999603090a5c | 3bed3a5920addbf9cbf05cd257564fad | 能够输入给定的内存大小,进程的个数,每个进程所需内存空间的大小等;
选择分配 / 回收操作;
能够显示进程在内存的存储地址、大小等;
显示每次完成内存分配或回收后内存空间的使用情况; | {
char * token;
MEMORY = atoi(argv[1]);
struct memory_node start = { "Start", -1, -1, -1, NULL, NULL };
struct memory_node end = { "End", MEMORY, MEMORY, MEMORY, NULL, NULL };
start.next = malloc(sizeof(struct memory_node));
strcpy(start.next->name, "Unused");
sta... | 1 |
daa43b1b6a5b6004c770205c569d9f80 | a4203ebafdf82b58c5ee38a4e15c00ae | Returns the success message if one exists, otherwise it returns an empty
string. | class ValidatorMessages
public function getSuccessMessage()
{
return $this->successMessage;
} | 0 |
67d9a1a228cd57113941438b383656a9 | 740505a396252201988412232ba96ac1 | 从用户坐标获取Java AWT坐标的方法 | public class CanvasItemDraggedEvent extends CanvasItemEvent
public Point2D getAwtFromPosition() {
return awtFromPosition;
} | 1 |
833ceee55a56173bfe54bcc3bed75d83 | 2589ce4cced8a5d2a80e04cdf3bb2ba4 | 添加版本号信息 | public class AmountManageCommand extends BaseAjaxCommand
public void addVer(){
domain.addVer(this.getParameterSet());
} | 1 |
75495fcd0684e41bf7de0a55d37b1aa2 | e351a2eeea49a74b6b0289478f47aea6 | 初始标注TEST数据的NER | String s = nl.inl.impact.ner.utils.ConvertTxt2Bio.txt2bio(str, netag1, netag2, false, true);
ObjectBank<List<CoreLabel>> documents = makeObjectBankTest(s);
return documents;
} | 1 |
c8d656dcd8467d72f02dcd212547da08 | 4a8d58770acebbe1e4edaceaa903456d | populates first login and last access info to be written to csv | class PROJECTS_Controller extends CI_Controller
public function populate_screen($data)
{
$populate=array();
if (!empty($data) and is_array($data)) {
foreach ($data as $key => $val) {
if ($val!='') {
if (strpos($key, '_date')!==false or $key=='date') {
... | 0 |
23fd235f2d28021570fb6bfb120d72a2 | 46d8e50b2d52f13094ae9d4d4fcb3cd4 | Creates .NL files for the FCEUX debugger | dxl_file_basename = self.__get_hash(dxl_file)+"_"+os.path.basename(dxl_file)
edit_bat = self.__output_dir+"/edit_bat/%s.bat" % dxl_file_basename
with open(edit_bat,"wb") as f:
f.write("cleartool checkout -nc %s" % dxl_file)
f.write("\n")
f.write("start /min no... | 0 |
5412135c198af38a025299100f8d553f | 7d3965c1aadb2a9f947aebbd6653db64 | Change the field to not being actively set: StartDt (HQ_GROUP_MEMBERS.start_dt) | @XmlRootElement(namespace ="http://bp.comverse.com/data")
@XmlAccessorType (XmlAccessType.PROPERTY)
public class GlobalContractObjectData extends BaseExtObjectData implements Serializable
public void unsetStartDt () {
this._StartDtSet = false;
} | 1 |
a2bf3d44f52190d1f52b7c36a433bd27 | 67091024affcbdfd08954f2ad8db7ebe | Retourne la liste des domaines préchargés. | $req = "SELECT * FROM mtnr_domaine ORDER BY nom";
$rs = PdoBdd::$monPdo->query($req);
$lesDomaines = $rs->fetchAll(PDO::FETCH_ASSOC);
return $lesDomaines;
} | 1 |
7d35275c36ba44642a96ad5f240f7d49 | b82c9e54c087a006d1c12ce198416eb7 | テキストフォームに入力できる文字数超過のメソッドを追加 | $('#writeTextBox').keyup(function(){
var textNumCnt = $(this).val().length;
if(textNumCnt > 400)
$(this).val($(this).val().substring(0,400));
else
$('#textNumber').text(textNumCnt);
});
} | 1 |
1f0f52d76f6f3632bf568652dc3890ca | ac17c0f4ba24832d2e54cbbe624fb87b | 创建写多个寄存器的基本命令 | {
lock (_sync)
{
er = string.Empty;
try
{
int N = wVal.Length;
string wCmd = string.Empty;
if (regType != ERegType.D)
{
for (int i = ... | 1 |
cac56a092a6d425fb3465e9526194ac9 | e0c6eaa0be87b6d9e3d8a88b3660066e | Obtien le nombre total de textes clairs valides | class ResumeService
public static function cntAllValidTalents() {
$cond = " ok_base = 'Y' and ok_biz = 'Y' and ok_prj = 'Y' and ok_other = 'Y' and is_open = 'Y' and enabled = 'Y' ";
return BaseService::getOneByCond('resume', 'count(*)', $cond);
} | 1 |
c1db05df333ee9eb52a127c0c24b26ac | 0f6bf4be2994119e1343054d8001851b | Gets the meta nci neighborhood, starting with the root (This will usually be the 'V-SAB' concept). | @Service
@Singleton
public class Frills implements DynamicColumnUtility, IsaacCache
public static Optional<Integer> getNearestConcept(int nid)
{
return Util.getNearestConcept(nid);
} | 0 |
19cc41ab7d0b1cbf78e4d17447f66224 | d91506ff51aa364c848881f3f1dddeb5 | Method without transaction | public void saveWithoutTransaction(User user) throws Exception; | 1 |
042e87f80a41ac250a4bf36553151451 | 3ba087365edf7554d3f60df1223b3ee7 | Saving button click event hook - invoke save dialog and proceed saving if confirmed and filled correctly | namespace Mineware.Systems.Production.Bookings
public partial class frmBookingProduction : DevExpress.XtraEditors.XtraForm
private void btnSave_Click(object sender, EventArgs e)
{
SaveData();
} | 0 |
0dcf2ffb44e6a066359a5fbc05954594 | ebf18b910e6e7c341f075cc3d5c774cb | Return our current subscribers along with the magazine ids that they are subscribed to. | List<MailMagazine> getSubscribersMailMagazineList(String email); | 1 |
ac64a9e5e19874c6ceb80e3d92c3bae5 | d99a1ade3ce12bd88573423303786015 | Getter for <code>staypaldb.users.ne</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.8.0"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class BasUsersInGroupRecord extends UpdatableRecordImpl<BasUsersInGroupRecord> implements Record4<Long, Long, Long,... | 0 |
af1cd28eceefe3d9194d4d928646f485 | d46730bcf93b04867199dc4a83b24131 | 将HostList保存到文件 | {
if (File.Exists(FilePath))
{
HostList = File.ReadAllText(FilePath).FromJson<List<RdpHost>>();
}
else
{
HostList = new List<RdpHost>();
}
} | 0 |
4ce8583ef66ae0fe7459b4c1803fe0c5 | baf3b13a7b7b0e5c8ff4f44dd53556c7 | 开启支付方式 | void goPayType() {
Intent intent = new Intent(this, SelectPayActivity.class);
intent.putExtra(SelectPayActivity.PAY_TYPE, curPayType);
startActivityForResult(intent, 2);
} | 1 |
d4b66f28d5ca57da13d5317c5e63d102 | 78aa93742c7abced42094d6ce76da77a | The region that an Amazon VPC was created in. See https://docs.aws.amazon.com/general/latest/gr/rande.html for a list of up to date regions. | class ZoneAssociationArgs:
def vpc_region(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "vpc_region") | 1 |
d7f3cc6f0327eb70c2e9ab0b7fc545aa | 735caa30452d720e1344fb4b11df332d | Returns the subset of data samples where the attribute has
the given value. | def get_examples_by_value(examples, attribute_index, value):
example_subset = []
for instance in examples:
if instance[attribute_index] == value:
example_subset.append(instance)
return example_subset | 1 |
abe76b118c57d83cf5b123337ce5e889 | 290537684801e2e868116e15b5ceb876 | 获得日期dateStr是星期几,日期格式是“yyyy-MM-dd” | String week = null;
try {
week=new SimpleDateFormat("E").format(new SimpleDateFormat("yyyy-MM-dd").parse(date));
} catch (ParseException e) {
e.printStackTrace();
}
return week;
} | 1 |
b39e398087d95d865566940917e5cd9c | 050aa0bda82b258435e388ef31c517c1 | Test updating lead created_by user | self.client.credentials(HTTP_AUTHORIZATION=self.token)
data = self.driver_file_data.copy()
data["created_by"] = self.test_user.id
response = self.client.patch(self.partial_update_url, data, format='json')
self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST) | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.