query_id
string
corpus_id
string
query
string
code
string
label
int64
f9354f51d739cac3fd36820034d47220
14c899d3194a82210b432dd8d96a6b13
Returns squarred array of input but input gets changed!
new_arr = [] array.each do |e| new_arr << e * e end return new_arr end
0
0f0bb855e449fcf729487a3672ab07a1
43aa758a8fe0479845ffd85eec66e72b
Whether to not include the component name in the full names of contained variables.
public class ReflectiveToStringHelper public static class Include public Include privates(final boolean privates) { this.privates = privates; return this; }
0
ac2bf8f0fec1302d3d0d8169383d575f
b7b1a5aee669693ab66716d950e02d37
Whether the confirm button is triggered.
public class ConverterPreferenceController public boolean isConfirmed() { return this.actionResult == JPreferenceDialog.ACTION_RESULT_OK; }
1
fcd34a3609f250a450f16f067898a52f
d9040c9d043ba3f7105764e898f4fa7d
覆写该方法,设置section是否允许Header出现
abstract class BaseFragment<V : ViewModel, D : ViewDataBinding> : Fragment(), Injectable, BackPressListener open fun hasHeader(): Boolean { return true }
1
e9b7533fd7501a0cc1c14bf20b904c52
61dfd0f716cb830d722e6580085b46a1
对Redis进行路由,即对Redis提供的原生函数进行一层封装,从而实现: 1、失败重试 2、多IDC容错
function L($Id = 'default', $new_link = FALSE, $persist_link = FALSE, $options = array(), $retryTimes = 0, $retry_interval = 2) { $cfgId = $Id; static $_obj = array(); if ($persist_link) { $Id .= '|p'; } if (isset($_obj[$Id])===FALSE || $new_link) { $rdConf = C('rdhost_' . $cfgId); if (empty($rdConf) ...
1
4863f664e92d8596283b45e5de20d31a
98b4c023a2a685d5d02ee7e5d919408e
parses the binary into individual records. Returns nothing
public class DbfFile implements DbfConsts public Vector ParseRecord(StringBuffer rec) { Vector record = new Vector(numfields); String t; Integer I = new Integer(0); Double F = new Double(0.0); t = rec.toString(); for (int i = 0; i < numfields; i++) { if (...
0
b9366a6a18f9ff8002194123258585e4
b417bb5dc57c4ccebd918ea18ca670b2
Retrieves the vertex indices of the intersected primitive in the geometry.
namespace SharpGLTF.Geometry IReadOnlyList<int> GetIndices();
1
b0e6d254d7706bc652ab9dd2dca538f0
98f5a66c286a99f5312f0cf5fdf105e8
Imagine that file name format like yyyy-mm-dd-title.md
class PostManager isFileAValidPost(filePath) { const fileNamePattern = /(\d{4})\/(\d{1,2})\/(\d{1,2})\/([\S]+)\.md/ return fileNamePattern.test(filePath) }
0
8ea920f4ad5e2de25b619317af6096e2
454c23a43d606b76a6a3c5926789fc09
Return the upcharge for this item
public function getSurcharge(IsotopeProductCollection $objCollection);
1
cb62886c32b7b142e41214c449e57920
22488a193b7f5a06ec2437b3e85d511d
Adiciona os resultados da ordenação nos benchmarks.
class BDDBenchmark: def _benchmark_ordering(self, ordering): start_time = time() var_ordering = ordering.order_variables(self._fault_tree) self._results[ordering].ordering_time = time() - start_time self._results[ordering].ordering = var_ordering
1
0234798665d8d4fca382f16c1a308614
05cf0d288690e13c925fa48dec6c0185
convert binary particle files to hdf5 table
h5file = tables.openFile(config.filename, "r") try: potential[:] = h5file.getNode(config.dataset)[:] potential[:] *= config.scaling finally: h5file.close()
0
47f8cccefd0b757daecbcb76f7a2db72
dde1d03eb9dca1d5d27db100fe14129b
新增物质因子颜色关联
namespace YfCloud.App.Module.Manufacturing.Service Task<ResponseObject<bool>> PostAsync(RequestPost<TMMColorSolutionMainAddModel> requestObject, CurrentUser currentUser);
1
591d8a5d2a7e55f632b8dc915914bd49
5ada453c58c5d9b1dddddf7397fb4696
проверка невозможности удаления области
resp = requests.delete(URL + "map_layers/?filters=[['map_cod','=',10]]") data = resp.json() self.assertEqual(data["code"], 400)
1
a3ddd22c90ca022250c67969f8aa5749
2f29aab09c62161df7abd7dda25eb454
Main function of Live Variable Analysis in Branch, and can be generalized to loop
final Map<Inst, Set<Var>> incLiveVarsMap = new HashMap<Inst, Set<Var>>(); final Map<Inst, Set<Var>> outLiveVarsMap = new HashMap<Inst, Set<Var>>(); List<Inst> insts = getNodesInRPO(); for (Inst inst : insts) { incLiveVarsMap.put(inst, new HashSet<Var>()); outLiveVarsMap.put(i...
1
abb2a5d6f644b029d24de4db61b442b0
2395e1784db6167e00d9ae211c1f928f
Make a quick sanity check of the polygon coherence
bool BoostClean::checkPoly( polygon_2d* poly ) { if ( intersects( *poly ) ){ return false; } vector<ring_2d> vRing; swap( vRing, poly->inners() ); for ( U4 iIn = 0 ; iIn < vRing.size() ; iIn++ ){ for ( U4 iPos = 0 ; iPos < vRing[iIn].size() ; iPos++ ){ if ( !within( vRing[iIn][iPos], *poly ) ){ swap( vR...
1
0470412b4864309002c6f03aea11918b
3b613eee56e2b7310dd0b907ae8c2cef
Get the biggest nodule index currently present for this volume
class LabelController: def __get_nodule_id(): index = LabelController.__combo_box_nodule_id.currentIndex() if(index == 0): return LabelModel.generate_nodule_id() else: nodule_list = LabelModel.get_nodule_id_list() return nodule_list[index-1]
0
17ecaf50be0301245c34204c55090c19
61a6e48f894c82d1fedfee88dde603a9
Get the date that the lottery was run
@Table(name = "rl_potential_opportunities") public class RlPotentialOpportunities public Date getDrawed() { return drawed; }
1
b82b3599d5ff636643be0112c5e06d13
fd64e06353b745add47f6cd945a054f7
GET /config_relation_types GET /config_relation_types.xml
class IndrelEventTypesController def index per_page = 20 order = params[:sort] || "name" sort_direction = case params[:sort_direction] when "up" then "ASC" when "down" then "DESC" else "ASC" end @search_opts = {'sort' =>...
0
6777bf43069d964fc925ed6f2da332f1
ac6a00647a4fa4e88ba8b55ab7df6f45
Send one service checks. Method to override in consumers sending checks one by one.
class Reporter def check_consumer(consuming_service) end
0
d3aef797ea06c7a78bf336d23e1243bd
a23abddd649f7bab4359f168b717ae42
Reads through a dictionary of players and returns a dictionary of birth years where the birth years are keys and the values are lists of players
def Dif_Players(Mfile): dict_of_players = {k: v for k, v in Mfile.groupby('PLAYER_ID')} return dict_of_players
0
dc10431c2c6642d4f2dcece1ab27b9fe
b35202ffd9a60235b955c0f3ae624398
Returns the number of farmers that specialize in animals.
int CvCityCitizens::GetNumDefaultSpecialists() const { return m_iNumDefaultSpecialists; }
0
9bfe4b8b87042abfd4d98b728350eccf
1cc7bd5c806173c7cbcdc5d008c5f9f0
Возвращает ответ сервера в удобочитаемом виде
namespace MailRu.Cloud.WebApi public static class Helper internal static string ReadResponseAsText(WebResponse resp) { using (var stream = new MemoryStream()) { try { ReadResponseAsByte(resp, stream); return Enco...
1
ab793c185564b7c9c4e1d358a78f286d
abd8385bf800b72fc48b7a4440329020
Sets the crop id.
props = (Hashtable) props.clone(); props.put("croprect", new Rectangle(cropX, cropY, cropW, cropH)); super.setProperties(props); }
0
aa2f713052be9e194b8bfb09129da955
1d92c86f4b92480c19112ab4da7af0f0
Returns a string hash of this reaction for easy identification.
class StoredReaction(models.Model): def __str__(self): return self.ReactionString()
0
2344f46fbe58ae5d027f9fbe188eef55
e8980860b35f7ef18d15fe38aea5e1a1
sum of the indices
int index_p(int itheta,int ik,int idiag){ return Ltheta[itheta]+idiag*N[itheta]+ik; }
0
248dc287e6a293fba182852c323baaa6
44cc4cc2da00c2570b139cc7d1efe37e
生成推广图片
$biz_dir = 'business_' . $business_id; if (!file_exists(BUSINESS_PROMO_IMAGES . $biz_dir)) { mkdir(BUSINESS_PROMO_IMAGES . $biz_dir); } if (!file_exists(BUSINESS_SMALL_PROMO_IMAGES . $biz_dir)) { mkdir(BUSINESS_SMALL_PROMO_IMAGES . $biz_dir); } $im...
1
921f27ddd38d5852fa44c63965df5aed
40db3a2e4e1270eaf3f377648c1510bd
Cancel the upgrade of the silica quarry
func serveCancelSilicaQuarry(w http.ResponseWriter, r *http.Request) { serveCancelBuilding(w, r, timer.ActionUpgradeSilicaProd) }
1
90016b5c60bd05b78aa85f5fc8b96bd8
08603041aabf1d2ffbd6a194e9400839
Expect these not to panic, because they're doing nothing
func commentTest1() { return }
1
167b1588500c1e89a118c0e170149122
bf1d9a97ae24bc4e58fd4d03c04efead
Make the section align to the end of the toolbar row (default alignment is to the center).
PUBLIC void alignendofsection (const int alignment) { if (diagnostics) { gencomment0 ("alignendofsection"); } genpadding (endofsection_padlen (alignment)); }
0
f9d342f3e686ea05dad54ffff9970255
b638a160e44e20a4f1492532963cca16
Creates a new node in the heap. Requires an integer key and some data.
{ struct BTreeNode * node = (struct BTreeNode *)AllocUMem(sizeof(struct BTreeNode)); node->key = key; node->data = data; node->lesser = 0; node->greater = 0; node->isDirty = 0; node->timestamp = Ticks; return node; }
1
36a1d81000b300fdf8ae4fb14cdf4197
a9ce4051d7423388a74b3cfcf90c43f3
启动NetActivity页面
class MainActivity : BaseActivity(), View.OnClickListener fun network() { var intent = Intent() intent.setClass(this, NetworkActivity::class.java) startActivity(intent) }
1
98f2661ac307c6005c2af05cb07203f2
baff7e53f207f1abd865637f2de2f46c
Computes the quaternion that defines the optimal rotation according to Horn's alignment method.
largest = np.argmax(R.diagonal()) permutations = {0: [0, 1, 2], 1: [1, 2, 0], 2: [2, 0, 1]} u, v, w = permutations[largest] rr = 1 + R[u, u] - R[v, v] - R[w, w] assert rr >= 0 r = np.sqrt(rr) if r == 0: return quaternion_from_axis_angle(default_axis(), 0.0) else: q0 = (...
1
898713d4291e969938fb71d126f0643d
c1754fd0ed768fdc0a63f7427edab073
收益率峰度(Var_kurt)
def kurtosis(data, mean, std): sum1 = 0 for d in data: sum1 += (d - mean) ** 4 n1 = sum1 / len(data) n2 = std ** 4 if n2 == 0: return -3.0 else: return (n1 / n2) - 3.0
1
d06bdbece23dea6e9a104dda5800fa34
e56a41558e5d3050a3e7f05b9a584836
! Handle packets related to the ZCL Window Covering cluster.
handleC1_(dtvccPacket, captionCommand, pts) { if (captionCommand >= 0x80 && captionCommand <= 0x87) { const windowNum = captionCommand & 0x07; this.setCurrentWindow_(windowNum); } else if (captionCommand === 0x88) { const bitmap = dtvccPacket.readByte().value; return this.clearWindows_(b...
0
413f00bbd0e6fd5e8f89828d656fb60e
15597e321863c4b7384970c41a900b55
Return bottom fraction of image
class Image_Graph_Plotarea_Map extends Image_Graph_Plotarea function _fillBottom() { return $this->_bottom - $this->_padding; }
0
dd2e83d5800019dfc325e1449e67105d
43356e914d467769f5ea55f8721101c6
The assumption is always that the DLLs or Exe on the device is pageable, therefore this function only needs to be called to set the DLL/EXE to non-pageable. If we are running on CE6 we want to load a non-pageable variant of the WebKit and WebkitLibrary DLLs, we only want to do this on CE6 as setting this flag on CE7 wi...
{ RegistryKey dontUnloadRAMDriver = Registry.LocalMachine.OpenSubKey(@"\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management", true); dontUnloadRAMDriver.SetValue("DisablePagingExecutive", 1); dontUnloadRAMDriver.Close(); }
1
a07456fdc50846e3d9040d95a8b23c61
88abbebea87da2308455b4a9b0ef1a71
统计入网仪器年度价值
@javax.persistence.Entity(name=MESBasicEquipment.JPA_NAME) @Table(name = MESBasicEquipment.TABLE_NAME) @BAPEntity(entityCode="MESBasic_1_equipManage") @XmlRootElement @BAPModelCode(code="MESBasic_1_equipManage_Equipment") @AttributeOverrides({ @AttributeOverride(name="createStaffId", column=@Column(name = "CREATE_STA...
0
22fdc8ede14e51b9cc3666add4e1670d
3a502414fc68dc66655ebfadb8a99fb4
Calculate the centroid of the mesh vertices.
{ float_3 c = m_vertices[0]; for (int i = 1; i < 4; i++) { c += m_vertices[i]; } return c / 4; }
1
a5fbbf60a453795b7d7340b565b59c30
6d26c8e28d8b93808c9aea712b3f7742
Encodes the specified date (or date and time) value for SQL.
namespace OpenADK.Library.Tools.Queries public class SQLField public virtual string RenderDate( string fieldValue ) { return fDialect.RenderDate( fieldValue ); }
1
19c353b77246a05736cad019926933b8
a0b65cc2519b03692192b1694b5f8b31
Some examples of using regular expression substitution.
fun main() { val regex = Regex("""\w*\d+\w*""") val input = "login: Pokemon5, password: 1q2w3e4r5t" val replacementResult = regex.replace(input, replacement = "xxx") println("Initial input: '$input'") println("Anonymized input: '$replacementResult'") }
1
6c9fdbcd886610bf1ff58903fb385ce6
c86a7edf2a3aa912bed395129abd0358
Returns matrix of candidate topic-word parameters for each of n Plans
results = defaultdict(list) for dcost, alpha, beta, depth in product(self.dcosts, self.alphas, self.betas, self.depths): params = {'alpha': alpha, 'beta': beta, 'depth': depth, 'disjunction_cost': dcost} lexica = Lexica( baselexicon=self.baselexicon, ...
0
2b4cf8e91a63aa09c5dceb1be125ccd7
cd9807c7116611f87c2b74abec877676
Return the HTML representation of this Form Field
abstract class Caldera_Forms_Field_HTML public static function html( array $field, array $field_structure,array $form ){ return ''; }
1
4aa131c79377b6244c5e7150654b39f7
af5b01a3229645f09cb641a12c686ca4
returns only provider <-> symbols available for that profile
public class DBFacade public static SymbolTable getExistingSymbolsFromDB(String serviceUrl, List<String> symbols, String token) { JsonObject jsonSymbols = getJsonFromSymbolList(symbols); return createSymbolTableFromJson(makeExistingSymbolsCall(serviceUrl, jsonSymbols, token)); }
0
384629adb21321752fce64df1f622c74
bdadbb94f911fe50c2060551439ec82c
把两个字数以上的座位类型改为两位
{ List<dynamic> lstSeatTypes = new List<dynamic>(); string seatFeature = jSeatType["seat_feature"].ToString(); for (int i = 0; i < seatFeature.Length / 2; i++) { string strSeatTypeCode = seatFeature.Substring(i * 2, 1), strSeat...
0
e4f4f858e3bbfbfd0c25f279ad79650b
9890c0d31fe58178417e91119af122cb
Specifies if the given environment is specific to the deployment and will no longer exist at some point in the future.
public class GHDeployment extends GHObject @Preview(Previews.ANT_MAN) public boolean isTransientEnvironment() { return transient_environment; }
1
d5e7172e4d89d8f604f6a323e9b97a48
84cef9422b38c989ddea8f40aaa6367c
Returns an array of all guesses by the winner of the round with point value and player handle and score attached.
let result: PlayerStatRecord = {}; for (let i = 0; i < this.stat_items_umpire1.length; i++) { let item = this.stat_items_umpire1[i]; if (item.myscore == this.myScore && item.yourscore == this.yourScore) { if (!result[item.player]) { result[item.player] = new Array; } ...
0
9e2b718d2891d825d02b8fcce0bd18f8
2c6c0a78c67bcb7dda1bbb432e21081a
this service will mark all answer of a specific paper.
@RestController @RequestMapping("questions") public class QuestionController @PutMapping("/markAsBeingAnswered/{questionId}") public void markQuestionAsIsBeingAnswered(@PathVariable long questionId) { questionService.markQuestionAsIsBeingAnswered(questionId); }
0
919c2eb38ee9f43400f1690aa97c7cae
e6c6fa35ec9a546602b671fe77af1114
Write a newline to sys.stderr.
class Project(dict): def writeln(self, *texts): astyle.stderr.writeln(*texts) astyle.stderr.flush()
1
fe6f0dda2ad72c7dc3f50c2d8c7540b5
aa400b3e54f3ae4c2aeabc21f3208a27
Gets the Product Request viewmodel.
namespace ATCDatabaseApp.Controllers public class ProductRequestsController : Controller public ActionResult Create() { ViewBag.ProductID = new SelectList(db.Products, "ID", "ProductName"); ViewBag.RequesterID = new SelectList(db.Requesters, "ID", "Name"); return View(); ...
0
0b20638371c9e7a67c9564f4918a5b0b
3cac2148dde11bbe58e6c9e5b34145ae
by default module is physically active
class SnModuleInstance: def onActive(self): assert False
0
5840720153d6e34a175dc079a99e4638
289d2221cf16a337c22ee2b94537f352
Pseudo extractor that does not actually extract anything, but simply returns an empty list.
class DurationExtractor(Extractor): def __init__(self): pass
0
38b520b50a64a9ed5330c9be3e62ce81
0467f15b3cc606b8fe5e4dd5090cc7d2
Adds a route to the router that only match if the HTTP method is PATCH
def patch(path, handler, method=None): return _Route(["PATCH"], path, handler, method)
1
7dca1284a0a4dc55bb3621824a3f8305
150c4b59ae2231a5677896755d89ae16
轮询获取支付结果的接口
@ResponseBody public void listenPayResultQueryState(String token, HttpServletResponse response) { logger.info("[monitor],event:nccashier_pc_queryPayResult,token:{}", token); PayResultQueryStateListenVO data = new PayResultQueryStateListenVO(); data.setResultQueryUrl("/query/result"); try { data...
1
0c9099096d8fc2b59bb1255daa5783ef
2ab1ff9734eef46eb71984701e7396be
Print a one-row summary of values. Useful for writing progress during optimization.
percentage = self.count / self.total_count * 100 runtime = time.time() - self.start_time increases_per_second = (self.count - self.last_count) / (time.time() - self.last_time) expected_remaining_runtime = (self.total_count - self.count) / increases_per_second print(self.row_strin...
1
fd28bb48cdecce9fb4367b73cdba797d
0de80d2290e04a74e1061b8b612e5a0a
finish reading a sustained note backwards
{ if (soundQueue.empty() == false) { if (clock() >= soundQueue.front()) { tsf_note_off(soundFont, 29, playedSounds[0][counterEnd]); soun...
0
77e497c0034309d56c2a85b39b3d8786
38ed0ae6bfc52966dfc697a206d44bb9
下面一行代码做了这几件事: 1.枚举出即将要创建的类的所有属性 2.过滤掉所有的系统属性(以__开头的属性) 3.将剩余的属性名称转为大写字符 4.将前面三步生成的生成器转化为普通的dict
print('future_class_name:',future_class_name) print('future_class_parents:',future_class_parents) print('future_class_attr:',future_class_attr) newAttr = {} for name,value in future_class_attr.items(): if not name.startswith("__"): newAttr[name.upper()] = value return type(fu...
1
b65926e4ceff499b81d84f8cebe70956
10bad6f8407e3f5364a33909f931a021
Gets the features of this MidPriceResponse.
public function getFeatures ();
1
91a6c077fa607af66fc94dd6593fb6b8
50b340b36ef2c331aeb9884ed4c56acf
Turn an array into a heap.
heapInit(array, length); for (; length >= 2; --length) { SWAP(array[0], array[length - 1]); heapify(array, length - 1, 0); } }
1
60ef81c9cbb06ecbf5bb472175ad3a6e
ea761ed3ec308711107dcb26907afe21
Constructs a name for this component. Called by {@code getName()} when the name is {@code null}.
public class StoryComponentContext extends Context @Override public String getName() { return this.getNameOf(this.component); }
0
800ff839813dbde8a6ede46105cec1a6
8f3a538550f1cd2a2cbcb3c4e36c5bf3
Increments the current line numberin the state, and returns the new value
uint32_t PrinterState::increaseLastline() { mutex::scoped_lock l(mutex); return ++lastline; }
1
3182ea6933939fb2d61a83fdf146b400
5e0ef0cd850758dd67d436975b93fd91
Check to make sure larger piece is not moving on top of smaller piece
if (firstRow > goalRow) { if (! pieceToMove.canMoveUp () ) { return false; } } if (firstRow < goalRow) { if (! pieceToMove.canMoveDown () ) { return false; } } return true; }
0
8bb4d2b048f35140ba99c3c2e28af05d
a9e88003fd8031871f915ff45da1dd28
Return a SQL string that retrieves all foreign key relationships
function getDropForeignKeySQLQuery(Schema\ForeignKey $foreignKey, $table);
0
58cd127670e026ef1de053b200bc1bf5
10a96acef33449614f3100bae618fdb3
加入开机自启项
{ bool IsExt = false; try { RegistryKey R_local = Registry.LocalMachine; RegistryKey R_run = R_local.CreateSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run"); object _obj = R_run.GetValue("StartSign"); R_ru...
0
d50596d43fde9d35648a46abad163f12
2219ac15df4018070425ee531fb9e671
对外公开的方法,获取当前是否可以滑动
public class DocPopView extends RelativeLayout public boolean isSlidingEnabled() { return mEnable; }
1
8906b1813c7c2ff91cc2b8bf467b7c68
5d2faccc89ef13e3dbc00472239bceaa
this should be a wildcard - always returns yes if it gets here
static bool process_alive_request() { return true; }
1
a530b0fb0f4510f17192dbf647f5998f
f8e664c910288a1b7772326ad1fb4ed8
获得游戏激活状态
class Server{ static function get_gamestate($key){ $memo = new memo(); $room_table_info = $memo->getData("room_table_info"); foreach($room_table_info as $k=>$v){ if ($key == $v["key"]) { return $v["startgame"]; } } return 0; }
1
3e903b745d6b0ef1116367e6808d3687
2b0d00fdb183e4cee2e2dfd8a7b649d8
Get the tiles which can be worked by this city.
{ List<Card> neighboursBuildings = new List<Card>(); neighboursBuildings.AddRange(this.GameManager.GetLeftCity(currentPlayer).GetAllBuildings(cardTypes)); neighboursBuildings.AddRange(this.GameManager.GetRightCity(currentPlayer).GetAllBuildings(cardTypes)); return neighboursBuildings...
0
64c4e1082616940dcd86c5e9291500e8
4c6020cc9c521a5cdff19ade044127ce
Draw a green sphere where the updated center of mass will be.
plt.scatter(centerOfMass[0], centerOfMass[1],color='Purple', s=30) ax = plt.gca() poly = plt.Polygon(vertices, color=color, alpha=alpha) ax.add_patch(poly)
0
166bb71f37982a01cf3729f31a5f90c8
9e7dead29ebf4b7a6c3fafd9f1de004c
Get the time from task submission to completion. Returns None if task has not finished execution.
if self.job_started_at is not None: if self.job_completed_at is not None: return (self.job_completed_at - self.job_started_at).total_seconds() return None
1
e39d76c43afd7e84ae8af75476ca6630
d776620fc1e78ca26dc8bc617033debd
设置灯光组件
public static class GameObjectHelper public static void SetModelLight(GameObject obj, float lightParam) { if (null != obj) { Light light = obj.GetComponent<Light>(); if (null != light) { light.intensity = lightParam; } } }
1
ca482b011ebf8b96d1a53fdfdd20157b
6f9eb9866d29819bc2234167f2f43581
controlla se dopo la rotazione collido da qualche parte e in caso sistema la vista
Vector3 newVision = transform.rotation.eulerAngles; newVision.y = Mathf.LerpAngle (newVision.y, rotateY, Time.deltaTime); transform.rotation = Quaternion.Euler(newVision); if ((debug == 0) || (debug == 4)) { print ("HitRotate: " + hitRotate + "; RotateY: " + rotateY + "\nVettore: " + newVision.x + "/" + ...
0
13a343ab4e8c59e4e3ce02ab931f6b24
7ae0db6af1b9502869bed616c6471a36
Wake up suspended processes that are needed while operational (ie not at dock)
public void resumeProcesses() throws ServiceException;
1
c19eddd5d507bbb8dcb14de29dd44305
3af2cdc4e5186d473f960ded15d65f5c
获取过滤词汇
namespace PersonalWebsite.IService FilterWordDTO[] GetBanned();
1
5fe3c5a1c9703d39045da2f4e285abb4
03f73085fb7fcac298be7f735f43f5e3
SetupAuthenticatedRoutes : setup authenticated routes
func SetRoutes(r *mux.Router) { r.Use(generalMiddleware) r.HandleFunc("/login", core.LoginHandler).Methods(http.MethodPost) r.HandleFunc("/register", core.RegisterAccountHandler).Methods(http.MethodPost) apiV1 := r.PathPrefix("/api/v1").Subrouter() apiV1.Use(auth.APIRouteMiddleware) RouterV1(apiV1) if configurat...
1
ca47650bf887162e61eea4dfad320c9e
44babb9b46dee8722d7200a2cd5429b4
Returns the meta object for class '{@link org.archstudio.prolog.xtext.prolog.AtomExpression <em>Atom Expression</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
EClass getAtom();
0
175d78222474570f9cc2d43e11cdb2b1
6fcb6a5293a385ca817bb6b0177adc09
リソース要求の時間を変更する
class Substrate: def change_resource(self, req, instruction): req_id = req.graph['id'] node_map = self.mapped_info[req_id][0] link_map = self.mapped_info[req_id][1] factor = -1 if instruction == 'release': factor = 1 for v_id, s_id in node_map.items(): ...
0
7d8d94f2eabdc00eaea849da8cd66429
12b5e46ae0008f040c140974d70f4403
Getter for <code>calc.calculation_step.script</code>.
@Generated( value = { "http://www.jooq.org", "jOOQ version:3.6.2" }, comments = "This class is generated by jOOQ" ) @SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class CalculationStepRecord extends UpdatableRecordImpl<CalculationStepRecord> implements Record15<Integer, Integer, Integer, String, St...
0
91d3e8fe7c27c994aa70a6ec4f9b7cf9
cac0ac8a9ad588dac9826484ac708f65
获取HUD固件版本号
const char* DevInf::getHwV() { return hwV; }
0
25273dfa3393e06a5c0cc857289efbe5
b662c720ee0467c21ed9fdf50be5d206
! @brief 两矩阵相加
rf_public rf_mat rf_mat_add(rf_mat left, rf_mat right) { rf_mat result = rf_mat_identity(); result.m0 = left.m0 + right.m0; result.m1 = left.m1 + right.m1; result.m2 = left.m2 + right.m2; result.m3 = left.m3 + right.m3; result.m4 = left.m4 + right.m4; result.m5 = left.m5 + right.m5; resu...
1
88b5acd802a403c187044017075bf538
7f40e7a7666481d98c30c4ccc8f624e1
后序遍历生成NFA
func poregtonfa(pofix string) *nfa { nfastack := []*nfa{} for _, r := range pofix { switch r { case '.': frag2 := nfastack[len(nfastack)-1] nfastack = nfastack[:len(nfastack)-1] frag1 := nfastack[len(nfastack)-1] nfastack = nfastack[:len(nfastack)-1] frag1.accept.edge1 = frag2.initial nfastack =...
1
4f00d076b9e6cc282ee5bd3aba69c769
1b32f326915e4e64e323a8354aa17859
Wählt eine Serienmail aus.
{ Thread t = new Thread(new ThreadStart(_ShowMail)); t.IsBackground = true; t.SetApartmentState(ApartmentState.STA); t.Start(); _manualResetEvent.WaitOne(); _manualResetEvent.Reset(); }
0
522f9159505b4539f62b45d3d84f8c58
bea1b580bdf4a61e797b24a9363368cb
Delete all traces of challenge images based on the user.
const fileContent = getChallengeData() Object.keys(fileContent).forEach(challenge => { fileContent[challenge].challengeComplete = false fileContent[challenge].verifyList = [] }) writeData(userDataFile, fileContent) }
0
bc5a6084539ebd9a3f7d19fabbbc1b63
2fb448801349224350c48f791d183e8b
Like {} but really empty
function emptyCtx() { return {}; }
1
a5a4113199500649685a276e17e389eb
f5680b491903520797e155655efa7483
时间轮转一个槽,即时间过去了si秒。 原来cs槽的最小定时器可能超时。新的cs指向下一个槽。
double sec; ui->progressSlider->setValue(position); sec = static_cast<double>(position) / 1000; sec++; if (int (sec) - (min * 60) == 60) { min++; ui->timeLabel->setText(QString::number(static_cast<int>...
0
2e3a58457e024ddf747444b103f0d828
6ce68b0ea5203f64d63ed9e1a80fd1f1
An inplementation of the residual layer from https://arxiv.org/abs/1512.03385
def residual(sublayer_fn, x): return sublayer_fn(x) + x
1
e68e20d2e2e49a2ec13085083c06bfd4
b9eea72361bdee2f4cff62193072b1ad
Moves to parent.
{ MoveToMouse(); moving = true; Transform parent = transform.parent; transform.SetParent(null); transform.SetParent(parent, false); }
0
93f5d958286212f067d2286e2b868a8a
bea25e984f0aea1750e21ab2cb540b01
处理清空家长回复
handleClearReply() { this.data.replyInfo = { isLevelReply: false } this.initPlaceholder() }
1
06b4f599e3b30f06056e7acf71baca61
35f2ee4a74131f57d302004a2b18aa18
Set crop frame handle touch padding(touch area) in density-independent pixels. <p/> handle touch area : a circle of radius R.(R = handle size + touch padding)
public class InputHandler public synchronized native void touchSetPtr(int x, int y);
0
b557c596f52d90a8c062da222b9836fd
48db9cf6aec151adb76c93e8b45d0cd4
Create paginator of category products.
{ return $categorey->load([ 'parent', 'products' => function($query) { $query->orderBy('price', 'ASC')->where('status', 'active'); } ]); }
0
46a968b09f61043355d138d9d5b7c64d
7bc66340f03600e21186678160567166
Called for the 1st time, initialize use_masks in accordance with total number of available schedulers
void task_sched_init() { sched_lock_count = 0; task_prio_bitmap.bitmap = 0; }
0
ac0f5a9cdd2d89f93c34c138b6898337
ed665cedee16588f94c7eb123c1d1648
普通攻击敌人
function playerNormalAttack(targetMonsterSprite, remark) mIsPlayAnimation = true local function CFPlayerNormalAttack(sender) local monsterElement = getMonsterInfoBySprite(targetMonsterSprite) if monsterElement == nil then nextStep("playerNormalAttack", targetMonsterSprite, "nextRound") return end local ...
1
c5a4130921573c42cafd425285844307
642d7f934f3b6917b260649ec6136f49
Add ninja to the dojo.
class Ninja constructor(name) { this.name = name; }
0
ceff65e155f119076a25c32bb0c2ea0e
affb559449a5b8aa795cf82465b8c8d3
The modified network for part segmentation in ShapeNet.
super().__init__() self.input_nc = input_nc self.output_nc = num_joints self.norm_layer = norm_layer self.deconv_nc = deconv_nc self.n_deconv = n_deconv self.img_shape = img_shape self.net = self._make_network() self.upsample = nn.Upsample(size = i...
0
58a834ca59f8769f31053db9f69cd85c
551898d744c0bc7a17531b5d44ddae8d
Limpa valores do formulário de cpf.
function limpaFormularioCep(pais_id, uf_id, cidade_id, bairro_id, rua_id, ibge_id = null) { $("#"+rua_id).val(""); $("#"+bairro_id).val(""); $("#"+cidade_id).val(""); $("#"+uf_id).val(""); $("#"+pais_id).val(""); $("#"+ibge_id).val(""); }
0
86fea3105993911215db37f2bf500ba3
9c8dc4496db6af86edea1c6216b59ecd
Get the ElementPath of the PayloadElement associated with this node.
String getPathElement();
0
791147426fe8c9351ba89c6ee3210d98
2bccc86a74b76da5606981341a1b5154
Refresh display by re-enabling night or normal mode, regenerate customizable css strings.
modeDisplay.innerHTML = modeString; if (darkModeBtn.checked) { if (modeString=='Focus') { document.getElementsByTagName('body')[0].setAttribute('id','dark-Focus'); } else { document.getElementsByTagName('body')[0].setAttribute('id','dark-Break'); } } else { if (modeString=='Focus') { document.get...
0
ab9949115365e9c130bd4acbc1aaa5c8
7d916d7a2c444d05da940bce3d0437e2
Sobreescribe los nombre de los parametros ennviados en el query del request, para enviar acorde a la documentación de la API. Ver [https://anapioficeandfire.com/Documentation#pagination]
query_slug = params["query_slug"] if query_slug == "submissions_and_claims": query_slug = "items" return {**params, "query_slug": query_slug}
1
1a885f0a46494d84718b638ae673903f
225d873a543b43f495eb3443ba83ea66
Calls pauseRecording on the signaling server
function pauseRecording() { ui.ui.panels.master.pauseResumeB.disabled = true; sendMode(prot.mode.paused); }
0
df330cc4298e6cd6ff894abdb74139de
be88e0282d3ff9caadf0d10d7f363cf4
将缩略词转为对应表名
namespace RIPP.App.AnalCenter.Busi public class OilAPI private CutTableName convertEnum(PropertyType t) { switch (t) { case PropertyType.NIR: return CutTableName.YuanYouXingZhi; case PropertyType.ChaiYou: return ...
1
5eafd4563d3f73b011897ce8c092f140
437847b1d3a62542f3c646e5791dc6c2
input: keyword output: 검색 결과에 대한 DataFrame
assert isinstance(kw_list, list), "Keyword(s) should be a list" df_related_queries = pd.DataFrame() try: pytrend = TrendReq() pytrend.build_payload(kw_list) df_related_queries = pytrend.related_queries() print(f"Query succeeded for", *kw_list, sep='\n\t') except Exceptio...
1