query_id
string
corpus_id
string
query
string
code
string
label
int64
0481ecc30fcba144f8bb5bc1ec25d130
d5834f4630c404d0bf84595281e70018
Test case for policytemplates_get Get a specific Policy Template # noqa: E501
class TestPoliciesApi(unittest.TestCase): def test_policyresults_get(self): pass
0
aa14f316b6afd6f0561e41e7c3c44eac
d1345c0b55b6bfda5c5ec9ff3641556f
display degree symbol
public class DisplayRegression{ public final synchronized void printsc(){ display(";"); }
0
fb6f8228dd4ca5031ac0d7b7a8d34a08
58e72fd490fe6e06f0f490d95a4a452e
移除包含关键字的tag
function removetag($item,$tagid) { global $DB, $db_prefix; $item = addslashes($item); $tag = $DB->fetch_first("SELECT aids FROM ".DB_PREFIX."tags WHERE tag='$item'"); if ($tag) { $query = $DB->query("SELECT articleid, keywords FROM ".DB_PREFIX."articles WHERE articleid IN (".$tag['aids'].")"); while ($article ...
1
fe0ac7d78b440ddfa0c0f579d44610df
6336265f0b34ddc4c704b3f6efb83c83
Returns the html for the explorer tree.<p>
public class SafraTree implements NBA2DAState public String toHTML() { if (getRootNode() == null) { return "<TABLE><TR><TD>[empty]</TD></TR></TABLE>"; } else { return getRootNode().toHTMLString(); } }
1
f78f7282dacbc006c45fcc28a1b22188
5d3ee580273709964b59ea861838b6c0
Send the state that will trigger each extra timer.
namespace FooBar.StateMachine void EmitStatus();
0
aff9286f32d147e4fdfbd7155bd7f32c
b9bab179603547f6498c3d7756b432ca
更新患者病历资料 (注意:如果传入病历列表为空,认为是要清空病历)
var request = Object.assign({}, getCommonRequest()); request.patientMedHistory = medHistory; var url = '/pdms/modPatientMedHistory'; return encapsulatePromise(url, request); }
1
efb50465a515a553593eb9cb9cbce39d
340dc040fc9a648373daad58ec5950af
Determines if the resultDatetime has been modified.
public class SampleitemreseachBean // extends+ // extends- public boolean isNresultModified() { return nresult_is_modified; }
0
220a66b39a38d79e16777dbfa3534c96
02868e7f4bbaae583d8c6d3b1788b601
EP Bulk Out reset handler
static void USB_Acm_BulkOut_Reset(UART_PORT port) { kal_uint32 usb_port = USB_PORT[port]; if((USB_IS_LOGGING_PORT[port] == KAL_TRUE) ||((g_UsbACM_Comm.acm_owner == USB_ACM_OWNER_FT)&&(USBDL_Mode_Type()== USBDL_MODE_NONE))) { return; } g_UsbACM[usb_port].rxpipe = &g_UsbACM[usb_port].data_ep_out_info->ep_status....
1
4fe435c4c9e9e735c4bad542792995ea
ca169e7009c9600da2c42dee9c0e570c
根据参数城市名,得到一串景点地名
List<Scenery> findCityByName(String name);
1
937de13ea2eec082e63c7bd22f687510
84051f465112945b0f8f6b8d4e9f8b95
метод запроса всех медиапродуктов из всех каталогов
{ $db = Db::getConnection(); $newsList = array(); $result = $db->query('SELECT * FROM catalog'); $i = 0; while ($row = $result->fetch()){ $newsList[$i]['id'] = $row['id']; $newsList[$i]['img'] = $row['img']; $newsList[$i]['title'] = $row['t...
0
e00e1310e678ddeed1f82ea57406b4a7
5e105e80a623ad57c83067ba9b54a3c8
Method that prepares the trail assets.
export default class TrailSystem constructor () { this.m_aTrailEmitters = new Array(); this.m_aTrailParticles = new Array(); this.m_Image = null; this.m_ImageData = null; this.m_iParticleCount = 0; }
0
a900d1b6aa8d8a089e4a960856ef9db6
7642dfc262ff1496cba04e4adfe61459
List all Creds,
public function listCredentials();
1
8f24c80a03b8d156e58e8808454919e5
8188160a12ffd73dba6c0d949e31ee65
Evaluates the current gamestate and assigns a score between 0 and 1 with 1 being you are about to win and 0 being you will lose.
current_player = state.default_player if(state.is_winning(current_player)): return inf-1 elif(state.is_winning(-current_player)): return -inf+1 else: return state.evaluate_score(current_player)
0
8dcced046574fcd509767c4a146fe843
65cdf54cfac5c5e1ac0104819a288f81
Removes all subitems for all children in the current connector.
namespace SolutionLib.Interfaces void RemoveAllChild();
1
f653386c042f67dcbd9f686c42ed5e9e
48d46f650188aa26ea72db9c64dd4913
Decreases the <see cref="IndentLevel"/>. Appends indented `}` and two linebreaks.
{ _indent |= 1 << 31; _indent--; if (_prettyPrint) { WriteEndUtf8Pretty(JsonConstants.CloseBracket); } else { _bufferWriter.Ensure(1); Span<byte> byteBuffer = _bufferWriter.Buffer;...
0
6d74953f4737450a64b354e3444ce47f
2af9e7e48ab1b2cfac0f27bb42c89a60
打印出货标签Html
{ $paper = $this->getParam('paper', 'A4'); $lodop = $this->getParam('lodop', ''); $productArr = $this->_request->getParam('product', ''); $productArr = explode(',', $productArr); $this->view->paper = $paper; $this->view->title = Ec::Lang('de_QC_document_printing').'-'...
1
f8a0b7207d9fe07c499e0e7cc7a39e26
1ae1d4c141470d31c84c066db1372dc9
This function returns the number of topics in a folder.
class View(grok.View): def TopicQuestionNum(self, topicid): catalog = getToolByName(self.context, 'portal_catalog') topic = catalog({'object_provides':Itopic.__identifier__, 'id': topicid }) intids = getUtility(IIntIds) intid = intids.get...
0
78d74bb77dbd81f822713850d1c5b13a
24b6d411825395c9e333806f1130568d
Book a Room if it is available.
if(checkIfFull()){ System.out.println("Sorry, we're completely booked! Please try at another time."); quit(); } int newNumber = 0; do{ newNumber = r.changeRoomNumber(roomType); }while((reserveRooms[newNumber-1]==true)); r.setNewRoomNumber(newNumber); reserveRooms[newNumber-1] = true; return new...
1
671a2e8a0ebe6d2916ee4fafd9215a4f
ffd67900f777d1f8c24f726f3e3f6b09
Convert integer numpy matrix to a Pytorch tensor for indexing operations
out = Variable(LongTensor(numpy_matrix.astype(np.int64)), volatile=volatile) if cuda: out = out.cuda() return out
1
708eb34971fbacf5aacefafe15e42cef
28dc4a2623fc6fd7978ebbd686344897
Sets the labels on note.
{ for (int i = 0; i < col.Length; i++) { int noteColumn = _fx.Cols[col[i]].Index; CellRange rgp = _fx.GetCellRange(row, noteColumn); if (req) { rgp.UserData = (object)"notes"; } ...
0
39f8125982bfd567c0f3a5aef5e52a65
2a8f9b162ae23588b271060f6ce2a69e
Shows an ad and waits for the ad to disappear before continuing with the game
public class Cube : MonoBehaviour IEnumerator FinishAnimation(float waitTime) { yield return new WaitForSeconds(waitTime); int sceneNumber = SceneManager.GetActiveScene().buildIndex; ShowAd(); SceneManager.LoadScene(sceneNumber + 1); }
0
453a5a1a7c92d8fe2066ad753f73fa71
9dcbe3f7c46451282d18fa53cf41e54c
修改账户等级控制合约地址
respG := &utils.Gin{C:c} var resp *utils.Resp resp.Errno = utils.RECODE_OK defer respG.ResponseData(http.StatusOK, resp) erc200contraAddr := c.PostForm("erc200contra") password := c.PostForm("password") instance, cli, err := bcos.GetControlInstance() if err != nil { resp.Errno = utils.RECODE_BCOSERR return ...
1
4a6622543793ff1205d90ff552f375d8
a015b3acf5db898e5f5aaff94ff03c78
solve for X2
impl Point fn solve_x2(y: &Field) -> Field { (y * y - &f1 as &Field) / (&d as &Field * y * y - &f1 as &Field) }
1
4dba0f2e2d342942e92b1b8f603eccb1
a8b6389e76ab05eca019a6843f86f7f7
全てのファイルから全ての項目を取得(重複は削除)
namespace AMing.Logger.Helper public partial class LogsHelperBase<T_List, T_Model> protected virtual IList<T_Model> GetAllItem(IList<T_List> allList) { var result = allList.SelectMany(x => x.List).Distinct(x => x.Id); return result.ToList(); }
1
86081e70a7f2ef7d71697c56da4affa4
877e9cecda656af510bee91dddbf37ef
Whether RDBMS supports native schemas for table layout.
public class SQLMXDatabaseMetaData extends SQLMXHandle implements java.sql.DatabaseMetaData public boolean supportsSchemasInTableDefinitions() throws SQLException { if (JdbcDebugCfg.entryActive) debug[methodId_supportsSchemasInTableDefinitions].methodEntry(); try { return true; } finally { if (JdbcDebu...
1
fbd6183f10d7dcb022f10bcaad1c54a8
04263fb42b466c7690a1328986e1e9ac
Saves the file to a new directory according to the annotation using the new filename Input: annotation: Annotation of the disease i.e. diabetic retinopathy new_filename: New File name of the file original_path: Original File Path of the file Output:
out_name = self.get_out_name(input_file[0], output_format) ext = [] for e in sppas.src.anndata.aio.extensions_in: if e not in ('.txt', '.hz', '.PitchTier', '.IntensityTier'): ext.append(e) exist_out_name = sppasBaseAnnotation._get_filename(input_file[0], ext) ...
0
1b2fed7f0db794c4c403a0c4c9317863
338d18dd7d2e6befc27e9e37a2941322
finds the smallest ID in the SQL instead of auto increment
$query = "SELECT id FROM " . $this->table_name . " ORDER BY id DESC LIMIT 1;"; $stmt = $this->conn->prepare( $query ); $stmt->execute(); $row = $stmt->fetch(PDO::FETCH_ASSOC); return $row['id']; }
0
a9460682c7e5efa99818a81154f1902c
b273ec017828aa52cbd769b5745e0dad
試合数を数える
class Webservice_model extends CI_Model function all_team_count_contest($request) { $this->db->select('my_team_id'); $this->db->from('my_match'); $this->db->where('contest_id',$request['contest_id']); return $this->db->get()->num_rows(); }
0
ee864c84ebb4f2ba62dcbb8266f420c2
d1c8fb009db7f20cd8aa2b8b261e052d
Visit a parse tree produced by ReqBlockParser#header_rule.
public class GrammerParserBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements GrammerParserVisitor<T> @Override public T visitHeader(GrammerParserParser.HeaderContext ctx) { return visitChildren(ctx); }
1
dbc980a4b1e96d1887677bb3328985b9
50362bf09d33c1826aaa28f244a4bae0
Registers dependencies required to use fake builders.
export class GitCommitActionDefinition implements ActionActivationDefinition public registerDependencies(actionActivationContext: ActionActivationContext): void { actionActivationContext.containerizedKernel .bind('gitCommitReversionService') .to(BuildInGitCommit...
0
42307cde7fc70b9b526e9aeddad6b465
5cea4de7d56edfa35c263d5bf24dc1d2
删除所有关键字为obj的结点
public class TestDemo19 public void removeAllKey(int key){ ListNode cur = this.head; while (cur != null) { if (cur.val == key) { if (cur == this.head) { this.head = this.head.next; this.head.prev = null; } else { ...
1
4c0a3cb00d6ae3d9125cb46eccd7fba4
8495d5c49bf6ce86050bc058e921bf11
Strips off leading and trailing spaces
class Clean: def leadtrail(self): return self.text.strip()
1
954525ab1ea9fae70e9a2e269eb176c3
1521c7c7a3884ebb381cd99a7b9c18b6
Clear the PirAccession data member; override in proxy if lazily loaded, otherwise this method does nothing.
public abstract class AbstractSpeciesVariant extends AbstractDto implements ISpeciesVariant public void clearAccession() { }
1
048e94615db888ce84e7ffb3da147301
a1989f8b032a357f1e2dac6cd056bc2e
Returns the total number of products in cart based on the products added and their quantities
{ $total_items = 0; $items = $this->_session->offsetGet('products'); if ($this->_isCartArray($items) === TRUE) { foreach ($items as $key) { $total_items =+ ($total_items + $key['qty']); } return $total_items; } ...
1
dd36d3961b4a3044cc6749161fe96682
27527185704ef7b19a03acb8dd4e93fd
Display the values only if the local storage is not empty
function initializeLocalStroge() { localStorage.getItem("favItems") === null ? localStorage.setItem("favItems", JSON.stringify(favRestaurents)) : ""; }
0
dbc2394aa26719c97932b3c929570525
f15cd80f586bf0802ce92aa6bbaa50c4
Helps find object associated with given ID. If object isn't found - creates new one.
class BaseRepository public function findOrNew($id) { return $this->model::findOrNew($id); }
1
ccdbc1fefcb68652d4d63c63926b7ad2
24c7fec3969fd374b07ebf7abd0e53f5
leetcode149: 直线上最多的点数
int max = 0; for(int i=0; i<points.length; i++){ int same = 1; HashMap<String, Integer> slopeCount = new HashMap<>(); int x1 = points[i].x; int y1 = points[i].y; for(int j=i+1; j<points.length; j++){ ...
1
422a86529ffcf4f94292461d73933f97
1719991ac9659b382e7a687cc9b375bd
Constructor for declaration statements.
this->declaration_list = declaration_list; this->statement_list = statement_list; this->returnstatement = returnstatement; }
0
3ec0ff0e99f7b162944eb172f16edf9b
cccda9e47cb51fc77b3c0de123426ed8
checks if all lots are full
bool check = true; for (size_t i = 0; i < count; i++) { if (!items[i]->filled) check = false; } return check; }
1
15d6bea75c555fab68f8dc5fce76abc0
0c36e3391eac5786841a06f2c7f07606
形成树形结构,自动判断没有字的为叶子节点
this.mtree = [] this.toc.forEach(item => { if(item.level == 1){ this.mtree.push(item) } if(item.level == 2) { let ml = this.mtree.length this.mtree[ml-1].child.push(item) } if(item.level == 3) { let ml = this.mtree.length let cl = this.mtree[ml-1].child.length this.mtree[ml-1].child...
0
4029f1adc25f37470636b9dd9cf85f34
c38acbb4b539208550f597146d7becec
entfernt das letzte Element aus der Liste
{ if(!(sizeOfList--)) { sizeOfList=0; return 0; } int tmpNumber = this -> lastElement -> number; MyListElement *originMyListElement = this -> lastElement; this -> lastElement = this -> lastElement -> previousElement; delete originMyListElement; return tmpNumber; }
1
3d2efccc28164a66f4bc955bd1494197
89c8934f173757a5afee3dfa6ca20706
设置销售产品优惠券列表.
public class GoCartAction extends ActionSupport implements SessionAware{ public void setCouponList(TreeMap<Integer, String> couponList) { this.couponList = couponList; }
1
472e532a18b6e0c690b721de6b69b344
2a2a269c71d9bdf2ef82885ba1f2c146
Wordpress, 'Rewrite Rules' ayarlarını, pagination (sayfalama) için değiştiren fonksiyon. Bu fonksiyon, add_action() hook ile çalıştırılmalıdır (functions.php).
$fronts = self::get_rewrite_fronts(); $paged_regex = self::$paged_regex_base; $flpaged_rules = array( $fronts['category'] . '/(.+?)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.php?category_name=$matches[1]&flpaged=$matches[2]', $fronts['tag'] . '/([^/]+)/' . $paged_regex . '/?([0-9]{1,})/?$' => 'index.p...
1
765203920d1e6a0aee74444254d57f72
2c1d6e9badee27cc1cfdad07d450f8cd
Gets the FSA Authority name. Name of the FSA Authority.
public class EppXriName extends EppObject public String getAuthorityId() { return this.authId; }
0
7929876e6a4cfd6784d525d9509afdfc
b71466b76a029fbced99472e1588c5e1
获取商品最小起拍量
class SalePromotionKit public function getQuantityMin() { return $this->quantityMin; }
1
4e950e1dd045393cb957863abf815e6d
e12b99e68b9f8fcf4cdc8aff1946ac25
Lists the shares in the Storage account that pass the options filter. <p>Set starts with name filter using {@link ListSharesOptions#prefix(String) prefix} to filter shares that are listed.</p> <p>Pass true to {@link ListSharesOptions#includeMetadata(boolean) includeMetadata} to have metadata returned for the shares.</p...
if (vaultBaseUrl == null) { throw new IllegalArgumentException("Parameter vaultBaseUrl is required and cannot be null."); } if (this.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.apiVersion() is required and cannot be null."); } ...
0
111370ef88f83f10dee2e2d1522bb18a
b06817ac7c4d8bdf49e5216ace37ec01
display cars registered with the selected customer
class CarCustomerController extends Controller public function index(Request $request) { $all_customer_cars = $this->customerCar->getAllCustomersCars($request); return view('admin.carCustomer.index', compact('all_customer_cars')); }
0
70ed558b463c072003fafac7d915fa4c
db4551e5583d7efa775deeebfe9c4da4
获取章节总数量
Chapters(){ fetch.get(`/titles/${this.data.bookId}`).then(res => { this.setData({ Chapters: res.data.length }) }) }
1
141254b3b049ad6a1c5b838963563c17
0c6980cd9b851c7cb5e4a9d4f6abfe09
GET: AttribteValueType
class AtributovalorController extends Controller public function actionIndex() { $dataProvider=new CActiveDataProvider('Atributovalor'); $this->render('index',array( 'dataProvider'=>$dataProvider, )); }
0
c463de8567efb950359c3c45e2756030
56a3da789b4c0f8959aa8956fba58fef
Forget the remembered user from a previous :meth:`login` call.
def restore_user() -> _model.AbstractUser: return switch_user(get_previous_user())
0
9a22659528a4f85d9d21a5d4bd3786fc
7b77e128c79e1e476efbfb01063456d5
Returns the y_pred vector as a numpy array using 0<k<1 as the prediction threshold.
class KITData(object): def getY(self, asarray=False): if asarray: return np.asarray(self.__y) else: return self.__y
0
eed03b0b03171332dff0047e118f2096
f5aa601819cad584f99ff63523b6d1dc
Evaluates the acquisition function on a point.
class AcquisitionMPI_MCMC(AcquisitionMPI): def _compute_acq(self,x): means, stds = self.model.predict(x) fmins = self.model.get_fmin() f_acqu = 0 for m,s,fmin in zip(means, stds, fmins): _, Phi, _ = get_quantiles(self.jitter, fmin, m, s) f_acqu += Phi retu...
1
3d806c03aae963f1c52d28532f76e3ca
7554e36a505b363b877b25270c006ac9
Opens png files, and returns the pixel matrix.
def open_and_process(string): image = Image.open(string) data = list(image.getdata()) image_matrix = [] for i in range(image.size[1]): image_matrix.append(data[image.size[0] * i : image.size[0] * (i + 1)]) return (image, image_matrix)
1
a1f53adad56f9305b3b89b9e4fe0bff7
48241c94af16465ffffbcf198e33a933
获取方法的参数类型 优先获取方法的GenericParameterTypes,如果获取不到,则获取ParameterTypes
public class ClassHelper extends ClassUtils public static Class<?> getParameterGenericType(Method method, int paramIndex) { Type[] paramTypes = method.getGenericParameterTypes(); Assert.notNull(paramTypes, "方法必须包含泛型参数"); Assert.isTrue(paramIndex < paramTypes.length, "参数索引不能大于参数总数"); Type genericType = paramType...
0
7881405e98c3fcaca011e1371da7c946
99d07430cb2b09c86c75d4d5285c5fd9
Create an empty list fixture.
class TestFixtures(unittest.TestCase): def setUpClass(cls): cls.example_lst = list()
1
08d0795064f484899b6a00551e8ba0e6
b862a340675f7d9d3b661a600e895b23
Attaches this plugin to the <see cref="SensoricManager"/>. Usually by attaching one or more methods to the events <see cref="PlayTactile"/>, <see cref="PlayThermal"/> or <see cref="PlayOlfactory"/>
{ switch (sensorType) { case SensorType.Accelerometer: AccelerometerActive = true; motionManager.AccelerometerUpdateInterval = 0.05; motionManager.StartAccelerometerUpdates(NSOperationQueue.MainQueue, (data, error) => { EmitAccelerometer(new MotionVect...
0
da8e2498459aa851f4e258de9c237697
82960c63a87fb548509173cba56f16c4
获取指定实例的参数模板。 Please refer to HUAWEI cloud API Explorer for details.
class DdmClient(Client): def show_instance_param(self, request): return self._show_instance_param_with_http_info(request)
1
80ec7e5170cc8cb01fe0ad7f9b640f67
de5d2070eae483cf92f259ddecd5b428
GET: Filme
{ var film = serviceFilm.GetAll(); List<Film> fVM = new List<Film>(); foreach (var item in film) { fVM.Add( new Film { Id = item.Id, Description = item.Descript...
1
323eee8b7e3bffd8f7f89a549c0d8cee
a118f77eafb0ee7860ff139e01bf5381
ページトップスクロール用
function ScrollFunc() { window.scrollTo(0, 800) }
0
8fe75b648048efc6430e678f1c5a164b
e567b96bb28bea076117c5dbd9a90acf
Function that is responsible for deleting an administrator user
if($this->Login_Model->is_logged_in_admin()) { if ($this->Administrators_Model->get_administrator($admin_id)) { if ($this->Administrators_Model->delete_admin($admin_id)) { $this->notify('Administrator deleted successfully!'); redirect('admin/administrators'); } else { $this->notify('Administ...
1
e8b24d5a26d89777a41d0d93d0cc91b7
ac3c8be1bbb46063479d86c86dbb53fb
Transfer all materials and gems from inventory to stash.
void autodepositMaterials(gamedataPtr gdata) { vector<itemPtr> toRemove; for (auto it : gdata->_carriedItems) { if (it->_category == ITEM_MATERIAL || it->_category == ITEM_GEM) { addToStash(gdata, it); toRemove.push_back(it); } } for (auto it : toRemove) removeFromInventory(gdata, it); }
1
e4137cecf5607fa49f71aaefef9d1048
011a0ffdd009400753284766b21ed22d
Returns whether to include the source code in the resulting files.
public class SimpleFileSource extends AbstractModuleFixture<SimpleFileSource> public SimpleFileSource reference(boolean reference) { this.reference = reference; return this; }
0
622cb53a72c219b5d38d99eeb9d9753c
7bcb1cf8a46a2450f7c512397428215f
Upload shapefile files to SB page, optionally remove all present files
BoundarySet.objects.filter(slug=slug).delete() data_sources, tmpdirs = create_data_sources(definition, definition['file'], options['clean']) if not data_sources: log.warning(_('No shapefiles found.')) try: boundary_set = BoundarySet.objects.create( ...
1
2517aecae3bbf4e26732c92c03fa097e
e474a6e1856cde977bb3d2edc7d67005
This function writes a 32 bit register.
static void writeToReg(uint8_t addr, uint32_t value) { while (bb_top_registers->tb_fmch_dp3.s.lmk04906_read.bf.busy == 1) {;} bb_top_lmk04906_write write = { .bf.addr = addr, .bf.data = value }; bb_top_registers->tb_fmch_dp3.s.lmk04906_write = write; while (bb_top_registers->tb_fmch_dp3.s.lmk04906_r...
1
60a2f190ce743c862fbff4a02dc77591
229ca12e15190b1d0314f1d9c5b5d321
获取router的名称
class RouterList(object): # 路由表类 def get_router_name(self): return self.router_name
1
9294c77a040d6c73e3be767ad9ad804e
7954d97f12edffc6e31825e9f0df3194
1小时内全国阻断网站TOP10
sql = 'select city,confirm, province from ' \ '(select city,confirm,province from details where update_time =' \ '(select update_time from details order by update_time desc limit 1)' \ 'and province not in ("湖北","北京","上海","重庆","天津")and city in ("境外输入") ' \ 'union all select p...
0
e17f7be84fcf8b47275fc56a25cb8a87
3286c95de86eb85ede82d3b207f4b124
数组转字符串 换行
class Arr static function to_str($arr ,$suffix = "\n", $rest = false){ if(false === $rest) static::$to_str = null; if(!is_array($arr)) return $arr; foreach($arr as $v){ if(!is_array($v)) static::$to_str .= $v . $suffix; if(is_array($v) && static::deep($v)==1){ static::$to_str .= implode($suffi...
1
b96de814368e5df851cf19229a056155
f705a4cb416ed811586430d7c060ef5f
Compacta os arquivos gerados.
return src(files.htmlAppPath) .pipe(htmlmin({ collapseWhitespace: true, removeComments: true })) .pipe(dest(files.buildPath)) }
1
838df310ffb44c9735c66659f52e9e32
12cef9e5cddbff2c400edefa709be767
Test case for proxyHEADNamespacedPodWithPath .
class TestCoreV1Api(unittest.TestCase): def test_connect_core_v1_head_namespaced_pod_proxy_with_path(self): pass
1
a8b6e5737f010d8821a0897db59c4768
163ecaf797bc98abc5c59918ab7b2cb7
查询所有待确认的放款(实时支付)支付记录
public ModelAndView findAllConfirm(@RequestParam(name = "page",required = true,defaultValue = "1")int page, @RequestParam(name = "size",required = true,defaultValue = "5") int size) throws Exception { ModelAndView mv=new ModelAndView(); List<Payment> paymentLis...
0
cbdc9c48b2e70f1c454eafd133b7f954
dcf4958edc956db9db0c169656e8d752
Returns Prefix for a given prefix string. eg: pubmed
if product in PRODUCT_NAME_TO_PREFIX: return PRODUCT_NAME_TO_PREFIX[product] else: return product.replace(' ', '')
0
a461499ee29d4e18f5c56ee1e546f2a8
d58ea2cf24f408e0722b6af169621045
查询我的关注列表(带分页)
namespace Qiuxun.C8.Api.Service.Data public class PersonalService public List<MyFollowResDto> GetMyFollow(int pageSize, long userId, int lastId) { string strsql = string.Format(@"SELECT Top {0} a.* , ISNULL(b.Name, '') AS NickName , ...
1
595f3f736ed474358f161705cb4051ef
a62fe29b1035c247e8d9535d3aed13ed
Displays an message if registration unsuccessful
void showRegisterFailed(String errorMessage);
1
1dc03814e864e35202b9694f4f92c1b7
0500b7f898de73fbc767c37726dda07f
接收投递的简历
class Positionlist extends Common public function delivery() { if(!$this->user_id){ $this->data = ['code'=>'40043','msg'=>'请登录'];exit; } $recruitment_id = (int)$this->input['id']; $data = Db::name('recruitment')->where(['recruitment_id'=>$recruitment_id])->find(); if(!$data){ $this->data = ['code'=>'40...
0
dc7a9a05e15296fe7d25c2d1e34f7460
ef2297f0097bde901010cd46b72cfb7e
! Prints the command line arguments.
{ if (argc == 1) { std::cout << "Usage: \n" << "\t--datadir <dirname> REQUIRED [place to store db shards]\n" << "\t--nodestate <filename> REQUIRED [current node state]\n" << "\t--clustermembers <filename> REQUIRED [list of cluster members]\n" << "\t--ownershipmap <filename> REQUIRED [li...
0
062f234ce84ce2d91a9dbaaf121d7bd2
cf4cc88ce7605c675fb1d6fea9114a6e
Coroutine used to display blackhole script
public class BlackHoleController : MonoBehaviour void Start() { }
0
7de037b1ce9949af98ab5ecd841c4ff4
4cc9e254ca1cbbd9d3111fa38f1e808d
GET Uređivanje predbilježbe
public ResponseEntity<?> getDrziNastavuByPredaje(@PathVariable Integer id) { try { if (predajeRepository.findById(id).isPresent()) { return new ResponseEntity<List<DrziNastavuEntity>>(drziNastavudao.findDrziNastavuByPredaje(id), HttpStatus.OK); } else { return new ResponseEntity<RESTError>(new RE...
0
00e16adce336da06e5d8e9b6a6a08954
e00ffa89ee2d4580168f7737441893e2
Get or create blame.
for blame in blames: if (line < blame.end): return blame raise RuntimeError('out of range, missing blame!')
0
0830d439c2dc8a79fe2af2a40e663348
ce866f896e90d9ba53751e99b09d1416
Gets a dictionary of relevant args from a command.
def return_arg(arg=[]): return {arg[i]: arg[i + 1] for i in range(len(arg)) if arg[i][:2] == '--'}
1
b8b8ef6b5954c767d834518c6904289f
64ceb9e80693bc50c40829e4eb460502
Queries the existence of a non existent service.
class ServiceContainerTest extends PHPUnit_Framework_TestCase public function testServiceNotExists() { $configs = [ 'foo' => [ 'class' => Foo::class, ], ]; $container = new ServiceContainer($configs); $container->get('bar'); }
1
305e9aae644c5711912492514689712b
371c22945e2a50522222eed44d9c1270
Nichts sagen
namespace DataBinding class Farbkonverter : IValueConverter public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) { throw new NotImplementedException(); }
0
f3ff31586274031013dbaf7d85d7adde
5f7eb4ddff523e62a20644278d8e3537
Process raw audio and save as .wav audio file.
class AudioDatasetMaker: def save_audio_file(self, input_audio_signal, output_audio_file_path: str, sampling_rate: int, normalize: bool) -> None: librosa.output.write_wav(output_audio_file_path, input_audio_signal, sampling_rate, normalize)
1
f15a1b40d530d1fe20a0c9101081c5b3
8a20fedf04d1652cc91566c876ecb110
Retorna o formato do parâmetro para uso na url de requisição à API do BuscaPé
diaria_min=0, diaria_max=10000, limit=50, offset=0, **dados): if cidade: return { 'csat_min': csat_min, 'csat_max': csat_max, 'diaria_min':diaria_min, 'diaria_max':diaria_max, 'cidade':cidade, 'limit':limit, ...
1
52f3209b6ebf77836c2f4aa26187dc43
7b3e97d435b8638d03d9e7ffe900b6ec
Number generation after creation
{ if (!isset($this->generatedNumber)) { $this->generatedNumber = rand(0, 1000000) + microtime(); } }
1
2367adc092c65ab47758a024cb69e052
2bb4880d72163d52d3253d9d7254ec55
Paginator for ListApplications operation
{ $filter = $this->getService('filterManager')->get('Applications/PaginationQuery'); $qb = $filter->filter($params, $this->createQueryBuilder()); return $qb; }
1
4c9079fb821461eab778ea0a9f05c12e
98a9e7a047bd078fd306ec9ed6404630
Moderation handling via email and form buttons
{ if (isset($_POST['abort'])) redirect::handle(); if (isset($_POST['confirm'])) { $this->delete_older_handle(); } $this->delete_older_form(); }
0
87cc87225dd2683dfb6ef3814a8ae5d5
ab8db2e7d1ab5d85e35fbb751caf6b49
ID or full-path of the project you want to activate integration on.
class FreckleIntegration extends Integration public function setServiceProjectId($service_project_id = null) { $this->service_project_id = $service_project_id; return $this; }
1
4c570ead8f1830ec41e4967fd92ef509
9aaf1d11d85bd62d9c7b2f7dbfa26a11
Initialize the Metafile system.
{ HRESULT hr = MFStartup(MF_VERSION); if (SUCCEEDED(hr)) { m_hCloseEvent = CreateEvent(NULL, FALSE, FALSE, NULL); if (m_hCloseEvent == NULL) { hr = HRESULT_FROM_WIN32(GetLastError()); } } return hr; }
1
94b2102bf6baea065f5c88078791989c
48ce0841f3804101bc201db1b9a43f8f
use [small] [/small] conver to <small> </small>
$rpl = '('; $rpr = ')'; if (ctype_alpha($rt)){ $ctype = 'style="font-size:smaller;"'; } else { $ctype = ''; } echo '<ruby><rp>'.$rpl.'</rp>'.$ruby.'<rt '.$ctype.'>'.$rt.'</rt><rp>'.$rpr.'</rp></ruby>'; }
0
79ea069a90e97be93286d49d153ae5c5
3c170fa3dd82af0dfc3eadd47bee9ee3
一个字符串由26个小写字母组成,计算字符串中各个字符出现的次数
int[] count = new int[26]; char[] ch = chars.toCharArray(); for (int i = 0; i < ch.length; i++) { count[ch[i] - 'a'] ++; } return count; }
1
88cc00e30efe7a1298fb2530281fada7
663ad190d76aba909e1833dc42fb5b56
5.3.6休假申请提交
namespace TrainSchdule.Controllers.Apply public partial class ApplyController [HttpPost] [AllowAnonymous] [ProducesResponseType(typeof(APIResponseIdViewModel), 0)] public IActionResult Submit([FromBody] SubmitApplyViewModel model) { model.Verify.Verify(verifyService); ...
1
f33ce30506d32dca036d697fe04abb61
8d07e822886767a9ee3de986db49d4ea
Sets the value of the audienceId property.
class AudienceUpdateDetail(object): def owner(self, owner): if self.local_vars_configuration.client_side_validation and owner is None: raise ValueError("Invalid value for `owner`, must not be `None`") self._owner = owner
0
30ac0a98b3aeba79a54962a5e3b45b31
ce24b8f149ac5f5c8d71502ecd05fc30
消除10的倍数
i = 45 while i <= 670: if not i % 10: print i i += 1
0
8bed1141e545eb737d77051ab430c260
3ba69bc67512f47eda5fed2c0ce91e92
Create a new SM Flavor entry.
ephemeral=0, swap=0, rxtx_factor=1.0, is_public=True): self._create_flavor(ram, vcpus, disk, flavorid=flavorid, ephemeral=ephemeral, swap=swap, rxtx_factor=rxtx_factor, is_public=is_public)
1
33d13b281f037841fc09b5a5695d55dc
7e56b31a06380476e1623f454db43897
Checks if the output file already exists. If so it creates another one with a different name
if os.path.exists(destination): raise FileExistsError(f"File already exists at {destination}. Change the output_file_name.") else: return True
0
6e3be176cb36b857150a53c6f208bfc2
6b2f5c637ac746cf264cc59634c98591
Retrieves the border color for the video window
class CFPFlow: # default values def getBorderColor (self): return self.borderColor
1
edbd0b4ec7fe0fe13b21b0692e61d800
802918de8eacb3f76b9cdc75d7b69f9d
Right distance from surrounding text when absolutely positioned.
index = self._face.get_char_index('\u6c34') if index == 0: return 0 self._face.load_glyph(index, FreeType.FT_LOAD_NO_BITMAP) writing_mode = self._style['writing-mode'] if writing_mode in ['horizontal-tb', 'lr', 'lr-tb', 'rl', 'rl-tb']: return self._face....
0
5983163ef53cb062c8026817f5fa76dc
bbcfe268cfae0dc682ff666f2447675d
是否正在显示加载错误
function isLoadingShow() return isShow; end
0
352328a67f7244cf2537ba98e11be1c4
958ce3897470baee747f1a537e9ced96
A Mapping where every value is mapped to itself.
return new DoubleAutoMorphism() { @Override public double applyAsDouble(double t) { return t; } @Override public DoubleAutoMorphism inverse() { return this; } }; }
1
eecbb601b790eeca62f73d95e52bb187
c0fae2f8f71bc35c3be92a1aed15f445
为所有LogTask创建日志面板
var logTable = $("#logTable"); if(!logTable){ return; } logTable.empty(); logTable.append(logViews); }
0