query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
b864c9b270986f05bb3bf94766eccbb6 | 4ff6c40054114475e97a1bcee1410edf | creating customer accounts as a list to allow customers to have multiple accounts | cust_lst = []
for index in range(0, len(person_lst)):
cust = Customer(person_lst[index][0],person_lst[index][1],person_lst[index][2])
cust_lst.append(cust)
return cust_lst | 0 |
339b30cd3ede7383fdf4244e0dc306e4 | 0b556efd09f9e57a06b4ad29f3affc40 | 获取渠道强更配置版本号,默认为0,当不改变服务器版本号和程序版本号时,通过这个值实现单独渠道强更 lihao_yd 2015-12-08 | public class AppContext extends Application
public void saveChannelVersion(String ver){
if(!TextUtils.isEmpty(ver)){
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this.getApplicationContext());
prefs.edit().remove("channelVer").commit();
prefs.edit()... | 0 |
85c3cb5cbbfc5082a013a6d7b9aebdec | 324fcb7fd24439a449e63c921082b39e | Request to server to update UI and processing it | public class MediaPlayerService extends Service implements MediaPlayer.OnCompletionListener,
MediaPlayer.OnErrorListener, MediaPlayer.OnPreparedListener, MediaPlayer.OnInfoListener{
synchronized private void updateUI(){
L.m(LOG_TAG, "updateUI");
Intent uiIntent = new Intent(SERVICE_UPDATE_UI);
... | 0 |
c55e3acbb89410adebe9693773334082 | afe24d45f8b29dfda9dad0f3b1f96656 | Function Name: Timer_PWMAUD_Stop
Disables the Timer_PWMAUD.
None
None | void GMI_Stop( void )
{
int16 I;
if( !L1Audio_CheckFlag( gmi.aud_id ) )
return;
if( gmi.state == GMI_STATE_IDLE )
return;
GPTI_StopItem( gmi.gpt );
QTMF_CONTROL = 0;
for( I = 0; I < MAX_DPRAM_BUFFER; I++ )
QTMF_DURA(I) = 0;
AM_MelodyOff();
gmi.state = GMI_STATE_IDLE;
L1Audio... | 0 |
30ee418dc9e82318c964feb2952b4f17 | 18c8672c65521f664cbfdbc6830f7807 | Draw our hello world | void hello_world(void) {
lv_obj_t *label1 = lv_label_create(lv_scr_act(), NULL);
lv_label_set_text(label1, "Hello world!");
lv_obj_align(label1, NULL, LV_ALIGN_CENTER, 0, 0);
} | 1 |
86d7762026c0931b65cf6fc90c6f168f | a160b05c90fb082a9bb1aa3893d4fa53 | Returns ``True`` if `obj` is an lxml ``Element``. | def same_element_as(obj):
return IsSameElement(obj) | 0 |
89867858775f5962f0532c2d317f7417 | 855cf2a40c23540cde86d237e5223a18 | 编辑收藏的网站 | @Log(title = "收藏", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(UCollection uCollection)
{
return toAjax(uCollectionService.updateUCollection(uCollection));
} | 1 |
39f1ba432843c04216da0618a74a8711 | 8a988cb9f1ef541c0c86d806549d13ae | 获取群列表B | namespace Newbe.Mahua.CleverQQ.Native
public class CleverQQApi : ICleverQQApi
string ICleverQQApi.Api_GetGroupList_B([Description("机器人QQ")] string 响应QQ)
{
return NativeMethods.Api_GetGroupList_B(响应QQ);
} | 1 |
18b8193ee4c7a57c750976af7be98315 | a6b0e327425bd3df69b0c418335c1ec1 | Function invoked for drawing using OpenGL | class GLDrawList(GLObject):
def gldl_draw(self):
pass | 1 |
17183295cc3892513ee6b46c073327f9 | 77ae0c2cf7992940a48a3aecd530e5a6 | Notify listeners that the screen has changed. | public class PresenterController
void notifyScreenSharedChanged(boolean newValue)
{
for(ControlLoop.StateChangeListener listener : stateChangeListeners)
{
listener.onScreenCaptureChanged(newValue);
}
} | 1 |
5e4fc7feb311dc160ce4d769bbefa6de | 983bc1ad3817961ed39085272fdb2221 | Returns true if number of payments has to displayed. | def in_payment?
@in_payment
end | 0 |
ac13f8e86ff3ce1788e909c3a694f768 | 12a8136a4d47e9c9ded6d15297698241 | Returns annual percentage rate. | per = 1
ppmt = np.ppmt(self.interest, per, self.n, self.principal)
return abs(ppmt) | 0 |
cc738b3c837fe9718898ae7a81ac9235 | b2f55783891cc5c6407aeb32a6f04301 | Search the tunnel by the tunnel ID that is assigned by the client | namespace Jaylosy.Nps.WebApi
public class NpsUtil
public string GetTunnel(int id)
{
string url = $"{hostAddress}/index/getonetunnel";
Dictionary<string, string> dataDict = new Dictionary<string, string>();
dataDict.Add("id", id.ToString());
return Post(url, da... | 1 |
7910f055eec477c2e180ff36b751327e | 02e7fb4573a4e96ac2aca52a9f19a264 | Called by a notifications provider to notify the indexer to monitor changes to items within a specified hierarchical scope. | namespace Vanara.PInvoke
public static partial class SearchApi
[PInvokeData("searchapi.h")]
new void NumberOfItemsToIndex(out int plIncrementalCount, out int plNotificationQueue, out int plHighPriorityQueue); | 0 |
72f11b417a7fdfdc5242041783625e58 | 6f23eadf77578158c2a28941eb5b3790 | 线程查询收费信息 | List<InpatientInfoNow> InpatientInfoqueryFee(String inpatientNo) throws Exception; | 0 |
2899e5f264b765c6e380d62091a72f2b | 1103dce9c39eb0f62dc6265debe1667d | L�scht Datei und gibt bei Erfolg true zur�ck. | if(!isset($_GET['id'])) {
Template::bakeError('Daten unvollständig!');
}
$id = (int)$_GET['id'];
if(!User::$login) {
Template::bakeError('Du bist nicht eingeloggt!');
}
General::loadClass('Files');
General::loadClass('Folder');
$file = Files::get($id);
if($file) {
if(!User::$admin AND $file->... | 0 |
3c581774d1c7fb9d6b53bb20d7207657 | 561452dbd4f1d4fb05b81af87f5ae1ab | Получает массив байт из текстового паттерна | {
if(string.IsNullOrEmpty(text))
return new byte[0];
var index = 0;
var buffer = new char[2];
var result = new List<byte>();
foreach(char character in text)
{
if(char.IsWhiteSpace(character) || character == separator)
continue;
buffer[index++] = character;
if(index == buffer.Len... | 1 |
ea80fc5dcb929cd23deb9d5c4d5cce00 | ca4717f5e0655ec49d5c3c2a21ac44ba | Is the status code a cancelled status code? | class PayzenTransaction extends PayzenParamsBag
public function isCancelled(): bool
{
return in_array($this->status(), $this->get('cancelled', []));
} | 1 |
cae6b5da05e050f61c977ee1bdd08171 | 4bad919bd7fd7d3dc0fc2e38b9e68538 | 装入所有焊接项目到组合框 | {
try
{
for (int i = 0; i < item.Controls.Count; i++)
{
if (item.Controls[i].Tag.ToString().Trim() == "listboxs")
{
query.Enqueue(item.Controls[i]);
}
}
... | 0 |
cc0304c5cee0cc58461d467064f9b4cb | 3ebd1dec3e9a33da2958e0d5c8c13492 | Returns the parameters of an ellipse (sigma_x, sigma_y, theta)
which has the same ellipticity/angle of the regular shape but
encloses 68 percent of the intensity. | def fit_ellipse(x, y):
a = __fit_ellipse(x, y)
centre = ellipse_center(a)
phi = ellipse_angle_of_rotation(a)
M, m = ellipse_axis_length(a)
if m > M:
M, m = m, M
phi -= 2 * np.pi * int(phi / (2 * np.pi))
return [M, m, centre[0], centre[1], phi] | 0 |
3d677467d3ba317246eb44e88f6173b3 | 51b96c1a102f587196231d4eec48a3bc | Convert the silk file into XML | function transformXML($xml,$filename=FALSE) { $output=FALSE;
if($filename) $sxeo=simplexml_load_file($filename); else $sxeo=simplexml_load_string($xml);
if($sxeo) $output=transformSXE($sxeo); return($output);
} | 0 |
a7b2ce97ee523acddc80cbfe6b5110d6 | 7d38bd0108cdbf8101fdf00ccd67f82d | 删除选秀主题 | @Service(value="themeClassService")
public class ThemeClassServiceImpl extends BaseService implements ThemeClassService{
public void removeTheme(UppTheme uppTheme) throws Exception {
this.themeClassDao.removeTheme(uppTheme);
} | 1 |
860e0b724a3ad3a9abc75fe926418204 | 10046fb4a08edfeb31907ac3635bcd48 | 更改上限 | public class PDNameTreeNode implements COSObjectable
private void setUpperLimit( String upper )
{
COSArray arr = (COSArray)node.getDictionaryObject( "Limits" );
if( arr == null )
{
arr = new COSArray();
arr.add( null );
arr.add( null );
}
a... | 1 |
5a87bf1d35792eb5db010218a6b82a4a | 688821abe2de76abdc42761339a704cc | Return True if we can visit the object. We could do
deeper (but not time consuming) checks here, for instance
if the health checker only deals with
JavaImageEvaluatorActivityHealthChecker where
a certain configuration option is enabled. | public boolean passes(Context context); | 1 |
f52c5b330a8ee71c96849d1dfd74dadd | 5107e4913df46cdecc9dda4a800d3d8c | 該当ユーザーにTwitterのDMを送信 | {
$host = 'twitter.com';
$url = '/direct_messages/new';
$opt['screen_name'] = $screen_name;
$opt['text'] = $text;
$res = $this->_request($url, $host, $opt, 'POST');
return new Tuitter_DM($this, $res);
} | 1 |
160d7ee7402e919280778e5c8bedea59 | e9267552d25410deef8483757fd03ce0 | Get all Now Playing movies that needs admin's approval | namespace MovieLibrary.Service
Task<IEnumerable<MovieShortItem>> SearchNowPlaying(); | 0 |
fb831d6eb137421203610d730a35d2f9 | 0ff693265dcd9c89a32080fe7b32bd5a | Copy the elements of this matrix to a rectangular array. | namespace CloudMath
public float[] ToArray()
{
return ToArray(MatrixElementOrder.ColumnMajor);
} | 1 |
919de08a6f557cbd7e187410356c24e0 | 2dafb5cd334913c7f8328d671b551b6c | Called when user stops interacting with song timeline.
Allows timeline to continue ticking forward with music and setting new song location. | {
Paused = false;
_pauseOffset += _pauseStart - AudioSettings.dspTime;
} | 0 |
aeafe1d12811d3ce2ff6656e3ffab1d7 | 2049179a7596c951609bf8b1c3a1b8a9 | Test the get config parameters websocket command. | na = NetworkAddress()
cnc_url = "http://%s:%s/current_command" % (na.host, na.port)
response = requests.post(cnc_url, data={'command': 'joinParams',
'kwargs': json.dumps({'hallo': 'welt', 'hello': 'world'})})
self.assertEquals("OK", respons... | 0 |
8cd935282f7ae902fd7b75b20e402f5c | 927f3bd5f6b8d8dde8244de6d6c2ea40 | Принимает произвольно целое число и возвращает сумму всех его цифр | def sum_number (integer_number):
sum = 0
while integer_number > 0:
sum += integer_number%10
integer_number = integer_number//10
return sum | 1 |
a4ef4b325094675ce8704c939e272bdc | 8395915558ccb36891f1c23af5c6de71 | Obtiene los empleados por el país de la oficina a la que están asociados | $empleados = \DB::table('local')
->select(
'local.codigo as codLocal', 'local.nombre as local', 'empleado.tipo',
'persona.nombres', 'persona.codigo as codPersona', 'persona.apellidopaterno',
'persona.apellidomaterno', 'pers... | 0 |
fc6ee4f75f10e4c6be4fcf7069b883e5 | 660aa2e5e8fc0252399bd5ea1c87c4bb | Return list of graph names. | namespace COLID.RegistrationService.Repositories.Interface
public IEnumerable<string> GetGraphs(); | 1 |
921287af2f72ed6628fb5898428e5a1a | 75643184923b679023648b53c83e5c87 | puts all of the text file lines into a LinkedList | if(!myfstream.is_open()){
return FAILED_TO_OPEN_FILE;
}
std::string myString;
while(std::getline(myfstream, myString)) {
processLine(myString);
}
closeFile(myfstream);
return SUCCESS;
} | 0 |
c046137e4922a5fbf257cfad1c4403a0 | fb2f78bccd96f22d68a7a6fc43e08833 | Funkcja zwracająca cenę minimalną | class Products
public static function getMinPrice($catIds = null)
{
if($catIds){
$catIds = implode(',', $catIds);
$sql = 'SELECT products.price FROM products
LEFT JOIN categories ON products.category_id = categories.id
WHERE categories.id IN ('.$catIds.')
AND products.status = "1"
ORDER BY produ... | 1 |
0f6b0cde7e23b78ef1c15338c8c5074e | f37ba64ea51beb8cccd61d53055d0d34 | @brief Método para recargar los argumentos del componente.
@param args Argumentos que tendrá el componente. | {
$args = (array) BEAR::loadValues($args);
$this->_args = array_merge($this->_args, $args);
} | 1 |
539561b1ffbf5d141a9413b21143fe08 | 93b0ed4e9a61ee0a6bddfbf6af9b6c85 | Performs invoice line specific validations for the transaction. | {
var localBalanceServiceRequest = new GetCustomerBalanceServiceRequest(
customer.AccountNumber,
customer.InvoiceAccount,
SearchLocation.All);
CustomerBalances pendingAccountBalances = context.Execute<GetCustomerBala... | 1 |
91b4252fbe12a4f8ebc3da38433ca203 | 24d9f23405def4ea7ec1b8120e26c18b | 按教材ID查询发放信息 | @Service
@Import({
Gas_marketpcDataSourceConfig.class
})
public class Gas_marketpcTestBase extends AutoTestBase{
public List<ReissueGiveDO> findReissueGiveByReissueNo(String reissueNo) {
ReissueGiveDOExample exam = new ReissueGiveDOExample();
exam.createCriteria().andReissueNoEqualTo(reissueNo);
return re... | 0 |
e7d63a7f160f22771ca34b37d5642491 | 6ca83452a1fcbad9c11626c5e3d7f298 | Generate random parameter logs. | val randomLogs: MutableList<LogModel> = ArrayList()
val r = Random()
var today = startDate
for (i in 0 until x) {
val purpose = if (r.nextBoolean()) "Lorem ipsum dolor sit amet" else ""
randomLogs.add(LogModel(today, purpose, r.nextDouble() * 1000.00, r.nextInt(5)... | 1 |
69c2844663f671698154a8bbf6048e3b | 2dfc52e96a63d10dee6b6b0dcb69368c | returns the current brightness based on the actual value of the first strip | uint8_t VnRGB::getBrightness(void)
{
return (brightness - 1);
} | 0 |
2dd99a72c72745d38fb1daac8da9f5c0 | 10997538d9ff81944789589990456dc9 | Gets a value indicating whether <see cref="PathNode"/>s are loaded for the region specified. | {
PIMPath path = PIMPathBuilder.BuildPIMPath(node);
List<PSMPath> psmNavigations
= FindNavigationsForPIMNavigation(path);
return psmNavigations.Count > 0;
} | 0 |
5ed96b231af20ea8adaa79bb04579dc6 | aa65b5fa3ff96d0ea6ac0f39f7d5be5c | function that display goals that scored for team b | public class MainActivity extends AppCompatActivity
public void displayGoalEffForTeamB(double score) {
TextView effView = (TextView) findViewById(R.id.team_b_efficiency);
effView.setText(String.valueOf(score) + "%");
} | 0 |
92341adbeed6c7b30b3f9dde5c31d827 | 24f9ce36e9ff6ed80484662f4321ef08 | Choose random variable from constraint. | class Sat:
def random_variable_selection(self, preposition):
counter = self.literal_counter(preposition)
return random.choice(list(counter.keys())) | 1 |
3fbb36f2153a58041d602786c773639c | 6041f1d452fd685b29700675add80dc2 | 跳转到添加电影管理 | @Controller
@RequestMapping("admin")
public class IndexAdminController
@GetMapping("/movieManage")
public String movieManage() {
return "admin/movieManage";
} | 1 |
64f905fd58e82de7710cfe19cd8d7ee7 | 4c69a24baa781b0766d05c4196fa915c | Sends notification email upon denial of a license request. | class Logic:
def rejection_email(cls, feedback):
send_email(cls.supervisors(), [], cls._rejection_subject(feedback[0]),
cls._rejection_body(feedback)) | 1 |
9b9cd6cef3c065c52e78ff941db5bf48 | e2b6dc803b71595c02684ffdc5ac8201 | calculate what needs to happen to correct for disturbance on each axis | double LBP, double RBP,
double RFP, int duration) {
ErAngle = 0;
Double LFPP = 0.0, LBPP = 0.0, RFPP = 0.0, RBPP = 0.0;
if (opModeIsActive()) {
runtime.reset();
while (runtime.seconds() < duration) {
if (... | 1 |
71e06c4ea6ed9b68cb7c76c465e75a61 | 4b31279d6e78386d0bb31ac18a54009e | Refresh the list of asteroids stored in the offline cache. | {
readOfflineMessages();
for (int i = 0; i < oldMessagesToSend.size(); i++)
{
MessageToSend.add(oldMessagesToSend.get(i));
}
} | 0 |
57799d622e7c2b878db627e29b488d36 | 62299da6245aa59d665d345c8b022331 | Calculates the offset and the size of gems to fit the screen properly | {
float height = 2f * mainCamera.orthographicSize;
float width = height * mainCamera.aspect;
gemSize = Mathf.Min(
screenBound.x * width / (gridSize.x + (gridSize.x - 1) * gemOffsetParam),
screenBound.y * height / (gridSize.y + (gridSize.y - 1) * gemOffsetParam)
... | 1 |
dc981e1c530925d59043aa364689638c | b702bc258f04a8f67ebad630eb8a5ede | Returns the value of the '<em><b>Max Battery Capacity</b></em>' attribute.
<!-- begin-user-doc -->
<p>
If the meaning of the '<em>Max Battery Capacity</em>' attribute isn't clear,
there really should be more of a description here...
</p>
<!-- end-user-doc --> | public long getBatteryCapacityInJoules(); | 0 |
051f00ea64453f4d7bead5ccd41cdf5b | 0631bc49abbe6c83c176a9b18bf9cbee | 获取怪物的金钱(前后缀加成后) | int CMonster::getGOLD() const
{
int val = this->GOLD;
if (!this->pCurrentGame || !val)
return val;
const float fMult = int(this->pCurrentGame->pPlayer->st.monsterGRmult) / 100.0f;
val = intBounds(val * fMult);
if (!val)
{
if (fMult < 0.0f)
return -1;
if (fMult > 0.0f)
return 1;
}
return val;
} | 1 |
b2fd6881ec09bd5d78eb39cd60b78553 | f277e9ef0303f62085865e8e91fa1742 | 读dmc2210的输入IO | namespace SuperDeviceFactory.CHDDoorAPI
public static class CHDIOCtrl
[DllImport("DLL\\CHDDoorDLL\\CHDComm.dll", EntryPoint = "IoReadInputLevel", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
public static extern int IoReadInputLevel(uint nPortIndex, uint nNetID, ref byte pnInputLe... | 1 |
f8c9531efb77d77968d214c3c0c1d80c | c5c1fd224ba5b3d8794f571e7b3a8c9b | 查询城市主图片 | List<String> findCityMainPicture(String crity); | 1 |
efd61893a203a39778fe0cac03b75978 | cc4eff156a66b4e67347cd809e851034 | Creates a new api client instance | export default class ItemApi
constructor(apiClient) {
this.apiClient = apiClient || ApiClient.instance;
} | 0 |
8567718e4c0115c99e0e341ea55f2a73 | b3c807aa690f3ba76f77faa1be18b9a1 | Returns the URL to the Zendesk user profile given the user ID. | class WBUrl
public static function profileUrl($id)
{
$user = User::find($id);
if ($user) {
return url('profile/' . urlTitle($user->username));
}
return null;
} | 0 |
e786993fb30e9e18f025ce14877a0b8e | a97ae626d4ea1d2b1811139f3eb46e8f | Return a list of community objects given list of uuids | class Dispersy(Singleton):
def get_communities(self):
return self._communities.values() | 0 |
2ff7c718306e49a849ddeb206b01da12 | 7083690b4592e3594bfc3c756dccfc77 | Gets the popup height. | open class SearchSpinner<T> : LinearLayout, View.OnClickListener
protected open fun getPopupSearchHeight(list: MutableList<T>): Float {
val height: Float
val maxHeight = getPopupMaxHeight(list)
if (isTop) {
if (maxHeight < y - statusBarHeight) {
height = maxHeight
... | 1 |
dd1289d5c07c9dea82b393e236fd3e7a | bc6e2437e1380b1a8fc29a8e02885649 | Obtem o valor de uma variavel temporaria, removendo-a em seguida | class FtpSession extends Object
public function removeTempVar($name) {
unset($this->tempVar[$name]);
} | 0 |
a578f0991fe20066121df1fefe3caf88 | 5336f9c5981c2f230cb133c6557a5f14 | Set the backlight colour of all the buttons.
The colour is set as an RGB model, with each component having a range from 0 to 255 | class ASUSLighting(object): #pylint: disable-msg=C0103
def set_rgb(self, reds, greens, blues):
rgb_color = (blues & 255) + \
((greens & 255) * 0x100) + \
((reds & 255) * 0x10000)
self.set_color(rgb_color) | 1 |
ccc6df0bf332bedca3b01be80437462b | e22ebab5ce47cf80251188c9b4ea21e7 | @brief This API is used to set the bandwidth of gyro from
the register 0x42 bit 4 to 5 | sl_status_t sl_icm20689_gyro_set_bandwidth(sl_gyro_bandwidth_t gyro_bandwidth)
{
uint8_t f_choice, dlpf_config;
f_choice = (gyro_bandwidth >> GYRO_BANDWITDH_ENUM_FCHOICE_SHIFT) & ICM20689_GYRO_CONFIG_MASK_FCHOICE_B;
dlpf_config = gyro_bandwidth & ICM20689_CONFIG_MASK_DLPF_CFG;
sl_icm20689_masked_write(ICM20689_... | 1 |
7a842338d5d3ba87ce80c56fc87c7b03 | 7cb8550563fc6444a063e296e2f88b5f | Преподаватели в классе. | class SchClass(object):
def class_teachers_str(self):
return ", ".join(map(str, self._teachers)) | 1 |
97a9af8463f87f226804cfe726476ba4 | 2c00eba9ab3d04e4096c551029aaa6a4 | JNITCMSCNT을 수정한다. | void updateJnitcmstpl(JnitcmstplVO vo) throws Exception; | 0 |
db0be89459e8d8eed26a9088e146cd93 | 0d598f7f5065ab38695e73bd0f905f4f | Wyrzucenie najgorszego osobnika z populacji | maxFit1 = 0
maxFit2 = 0
for i in range(0, self.popSize):
if self.individuals[i].fitness > self.individuals[maxFit1].fitness:
maxFit2 = maxFit1
maxFit1 = i
elif self.individuals[i].fitness > self.individuals[maxFit2].fitness:
... | 0 |
709cfb621b7c5abf0958126a58720f63 | 87d06b884be8aab7915ccdc88a2fca8d | Apaga la recepcion RF y modulos asociados | {
LORA_PWR_OFF;
LoRa_Serial.end();
pinMode(PA2, OUTPUT);
pinMode(PA3, OUTPUT);
digitalWrite(PA2, LOW);
digitalWrite(PA3, LOW);
digitalWrite(RESET_PIN, LOW);
} | 1 |
cf5a9faa7c60029417d22cf63afc83a3 | d249e46424bfcf430aed0f1e60becea3 | Apply the organizations accesses to all users. | Collection<Org> allOrganizations = organizationsStorage.getOrganizations();
return allOrganizations.stream()
.map(org -> new OrgPermission(org, true, true))
.collect(toList());
} | 0 |
adbe32fefa3def18837af65bed5466e0 | 32c83fbc323c0fcad65bfe93564fda99 | FUNCIÓN QUE INVOCA A TODAS LAS ANTERIORES | function run(){
$funciones=array();
$funciones=obtenerFunciones();
renderizar("funciones",array("funciones"=>$funciones));
} | 0 |
784fe7712f129cc0c31d4f39a66d806d | 3936d261cdfe6a36377251305b473d6e | Setzt das Property process auf den übergebenen Wert <code>process</code>. | public class AeInboundReceiveJournalEntry extends AeAbstractJournalEntry implements IAeImplStateNames
public void setProcess(IAeBusinessProcess aProcess)
{
mProcess = aProcess;
} | 1 |
0fcd4459e441ed18721c70d7095680e2 | 3423fc3fa88d2abc75bcd52f522932e6 | Test a parallel optimization: All inputs are a list of the same length. | expected = {'loop_vectorize': True,
'slp_vectorize': False,
'opt': 3,
'cost': 'cheap'}
self.check(expected, 3, 'max') | 0 |
4e4efb2dc386cac5a6a0abc2a3a28232 | ec3db1dfa60283bc829762cab78129c7 | Calculate stress tensor component xx | s11 = stresses[:, 0]
s22 = stresses[:, 1]
s12 = stresses[:, 2]
s33 = nu * (s11 + s22)
return np.sqrt(0.5 * ((s11 - s22) ** 2 + (s22 - s33) ** 2 + (s33 - s11) ** 2) + 3 * s12**2) | 0 |
b07be79d1655bf16343ae24c24882af5 | ae228f9e9b62960ea93892cb2732a176 | Swap controls by fading out the original and fading in the new control.. | {
float originalVolumeThis = thisSource.volume;
float originalVolumeOther = otherSource.volume;
LeanTween.value(thisSource.gameObject, (float f) => { thisSource.volume = f; }, originalVolumeThis, 0f, fadingTime)
.setEase(LeanTweenType.easeInOutQuad)
.setOnCo... | 1 |
da194583d43e7c11379fbcd76ec844fd | c0fd481161b825f7eb4dd19b970494cb | Weight placed on the gradient for maximizing the traversibility of the body path
plan. | export class SoftBodySettings
public get push(): number {
return PythonInterop.getFloat(this.interop, `${this.accessor}.push`)
} | 0 |
052577691c98086a3d62876d86ac7223 | 8c7c7c36aa324b06ab9ee192d8ae5b1b | usuniecie elementu o danym indeksie | {
if (index == 0)
frontdel();
else
if (index == counter())
backdel();
else
{
DoublyLinkedList* ptr = front;
DoublyLinkedList* temp;
int i = 0;
while (ptr->next_adress != NULL && i < index - 1) {
ptr = ptr->next_adress;
i++;
}
temp = ptr->next_adress;
ptr->... | 1 |
3a2ca1362d0a644ca72880d352e9a734 | a062f088f73eed615cb7cd8a15ee3655 | This ensures that we are translating from the correct "parent" page.
This happens when a user creates a page and then copies that "parent"
page to a "child" page. When the user tries to copy the "child"
page to a "grandchild" page. We want the "grandchild" to be a
"child" instead of a "grandchild".
This keeps page nest... | class PageAdmin(ContentTypedAdmin, DisplayableAdmin):
def response_change(self, request, obj):
response = super(PageAdmin, self).response_change(request, obj)
return self._maintain_parent(request, response) | 1 |
fe0e9b1e91ec8d2712dc4bb92e241ce6 | e40c0c59fa0611e58b8a4147b8139f3e | Checking for duplicate account name | List<Account> listOfAccounts = accountRepository.findAll();
for(Account account : listOfAccounts) {
if(account.equals(newAccount)) return true;
}
return false;
} | 0 |
4f58bc42ba98f7052caaf6ddfe094316 | b41a8c1d2a9fffdb1285a8b5fb7314ea | Поменять местами элементы двух строк двумерного массива | {
int[] tmpRow = GetRow(matrix, row1);
for (int i = 0; i < matrix.GetLength(1); i++)
{
matrix[row1, i] = matrix[row2, i];
}
for (int i = 0; i < matrix.GetLength(1); i++)
{
matrix[row2, i] = tmpRow[i];
... | 1 |
d67c2d03e63bec00416d949206ba48c6 | 487762dfc878bb432fc712d5b3899919 | method to add 'topping' element to array property | class Hamburger
addTopping(topping) {
if (topping === 'mineosis') {
this.price += 10;
this.calory += 20;
this.toppings.push(topping);
}
if (topping === 'seasoning') {
this.price += 20;
this.calory += 5;
this.toppings.push(t... | 1 |
a81dd8ee9db9f97674c18919c009010d | e87a95cf0df50f937150676331986f82 | 恢复所有可见的广告 | {
for (int i = 0; i < gad.Count; i++) {
gad [i].RequestBanner ();
gad [i].BannerHide ();
}
} | 0 |
07a873435be4954484261e947a74c2c6 | da008e985425b0fab5c5c505a522f557 | Return a new dataset with each array indexed along the specified
dimension(s).
This method selects values from each array using its `__getitem__`
method, except this method does not require knowing the order of
each array's dimensions. | class Function(Element):
def select(self, *dims):
return select(self, *dims) | 1 |
a165c91ea347247e0e9a1b499b9cc9ab | 7e19e569b16bec782d4cbc143a99d16f | Returns the meta object for class '{@link org.eclipselabs.mscript.language.ast.ReturnStatement <em>Return Statement</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | public class Java8ParserBaseListener implements Java8ParserListener
@Override public void enterReturnStatement(Java8ParserParser.ReturnStatementContext ctx) { } | 0 |
14987370d0dca8c591f911a202f7e255 | cf6271df705f1a25189322118dc2231b | If the type of the criteria query is CriteriaQuery<Object>
or if the criteria query was created without specifying a
type, and the list passed to the multiselect method contains
only a single element, an instance of type Object will be
returned for each row. | List<T> list = list(criteria);
return list.size() > 0 ? list.get(0) : null;
} | 0 |
12b62fa00c5267acf42318f232d78c33 | 434b4a2a799881f38c28da416bd55174 | Set Issue-tracker configuration.
When no explicit configuration for the issue-tracker is set
the repository information is reused (when possible). | public void checkConfiguration(Issues issues); | 0 |
2dba363ac825631563251b7d194250a2 | 712f5a36784ba521100e25ee34f14a33 | Autocomplétion pour les métiers, les formations et les établissements avec un
paramètre supplémentaire (secteur, niveau d'étude ou type d'établissement) | class MetiersController extends Controller
public function autocomplete(Request $request)
{
$query = $request->get('term', '');
$secteur = $request->get('param', '');
$metiers = app('MetiersRepository')->findForAutocomplete($query, $secteur);
$appellations = app('AppellationsReposito... | 1 |
69a134ba807e12b3fcc1fd3711c1cc5c | fb62cd3ce824da18385ca658072e63b4 | Creates a thumbnail image from a local video | namespace OKHOSTING.UI.Xamarin.Android.Media
public class Thumbnail: UI.Media.IThumbnail
public Stream CreateVideoThumbnail(string localFilePath)
{
var thumb = global::Android.Media.ThumbnailUtils.CreateVideoThumbnail(localFilePath, global::Android.Provider.ThumbnailKind.FullScreenKind);
var stream = new Memor... | 1 |
6483259a7b4fe0e57610d64225c0b424 | 140c474e113b2a4ac3fa11bff97a1115 | 按照假条编号ID查询假条 | public List<BsBlrk> selectBsBlrkById(Long id); | 1 |
2e014d9541d9c19f02baa0ced894ff0b | a9975ae44ba55eb3006ae3c8ba89b840 | Returns the meta object for the containment reference '{@link net.opengis.ows10.DocumentRoot#getMetadata <em>Metadata</em>}'.
<!-- begin-user-doc -->
<!-- end-user-doc --> | EReference getDocumentRoot_Container(); | 0 |
d57a48f16d132c613a637ed339d9c037 | f09942ad0a50dee0d1e60294c84ed2fb | Checks a closing generic bracket for spacing. | if (c == ']') { return true; }
if (c == '}') { return true; }
if (c == ')') { return true; }
return false;
} | 0 |
1e3ba7bb185a9a9f81fabbad8a3ae408 | 3faeba68315c3d1d01bb3ab7386ee632 | 更改字符串的后缀 | void suffix_change(char *name, char *suffix)
{
int j = strlen(name)-1;
while ( j && name[j-1] != '.' )
j--;
if ( j)
name[j-1]='\0';
strcat(name,suffix);
} | 1 |
4a52677b825974aadd0291fcdd4f3ed0 | aed4693bd3d101f4b5e7f765710bf8e3 | Prints the combined result of multiple games in a readable format. | QString Match::gamesToString( ) const
{
QString ret;
for ( int i = 0; i < _results.count(); i ++ ) {
if ( i > 0 )
ret += "\n";
Game game = _results.at( i );
ret += QString::number( game.aBalls );
ret += " : ";
ret += QString::number( game.bBalls );
}
return ret;
} | 1 |
64a685556d70758eeb697ff2c3932c37 | 25cb1ffebf676ce53ff9bf2263a16d95 | 兩點間棋子數目 | int Chess::JudgeBetween(short targetX, short targetY)
{
int num = 0;
if (x == targetX)
{
if (y > targetY)
{
for (int i = targetY + 1; i < y; i++)
{
if (ChessTable[x][i] != 0) num++;
}
}
else
{
for (int i = y + 1; i < targetY; i++)
{
if (ChessTable[x][i] != 0) num++;
}
}
}
else... | 1 |
65d39f9c5bdefb6ac5eb8d1528d52862 | 453b190459a25f58c5909f686c1d89e2 | 获取所有已经匹配的pid | def get_pid(pstring):
pList = pstring.split('\n')
rList = []
pidList = []
for p in pList:
if p and type(p) is str:
if not 'grep' in p:
rList.append(p)
for r in rList:
if r and type(r) is str:
pid = r.split(' ')
idList = []
... | 1 |
7325dfccf4c7bf4a34ce8837fbf40b38 | 1d39f75a219ed1724ce99566239c78f7 | udanax-top.st:53107:BoxProjectionStepper methodsFor: 'operations'!
{BooleanVar} hasValue
^myBoxIndex < myBoxLimit! | public class AttributeValueView extends Composite
implements I_Draggable, HasMouseOverHandlers, HasMouseOutHandlers, HasMouseDownHandlers
public boolean hasValue() {
return m_hasValue;
} | 0 |
998536b04fd17191fec55fe1339cd281 | 1ea84784e6ebe17af86ddd61b9127697 | This kicks off a task to periodically update the mood. As currently
designed, this should only be used by the AI. | {
_timer = new Timer(DoWork, null, TimeSpan.Zero, TimeSpan.FromMinutes(1));
return Task.CompletedTask;
} | 1 |
a439b89969a580d3cd1793a9eeb44a58 | 10ba13ac9baf949a314a138274b9f36a | 向个体发送自定义消息 | sendCustomMsg(data) {
const chatroom = window.chatroom;
const that = this;
return new Promise((resolve, reject) => {
chatroom.sendCustomMsg({
content: JSON.stringify({
type: data.type,
data: data.data,
id: data.id,
url: data.url,
signName: data... | 1 |
516baee3bde8eae357fd2d6ec63077ee | 89465c5bbe56ff6c3d501a81228f7c92 | Either `true` to make this repo available as a template repository or `false` to prevent it. | class ManifestProject(MetaProject):
def archive(self):
return self.config.GetBoolean("repo.archive") | 1 |
a434b6e33acd607c099541594abf8771 | 3d483f31e6290fa15474eaec5e1816aa | \brief Sets the magnitude of the torque that the motor is applying to body A. (scaled units).
\author David Cofer
\date 4/25/2014 | public class GearBoxSystem : MonoBase, IGearBox
public void SetTorque(float val)
{
m_torqueInput = val;
} | 1 |
5bb474decb0e335ce924a6d39026362a | 7f1683e89e766cd3249bf03436678bc5 | This function creates a rectangle that is automatically drawn to the screen | def rect(x, y, width, height):
global _canvas
global _penColor
_makeSureWindowCreated()
_canvas.create_rectangle(x, y, x+width-1, y+height-1,
outline = _penColor, width=1)
_doUpdate() | 1 |
90d5f074eb50203eb448b093646e315e | 8739616ec26953cd6cf85d6b4ddba09e | Returns true if this collector has early terminated. | boolean isTerminated(); | 1 |
baaa32683803c0f0b948d42655316141 | 9dcad513d53e19b79e8760dca499986b | @brief Get the NSBundle version | TPtrC CTestSuiteImageFrame::GetVersion()
{
_LIT(KTxtVersion, "1.0");
return KTxtVersion();
} | 0 |
aa9d3e51a6e5135635253af12dbce7be | 266dbf0f4506291ad3e8a58fe00b984b | Given the stats for `strength`, `dexterity` and `item discovery` yields a string representation
of the formula that's used to calculate the number of souls for the High Wall of Lothric. | str_earned = f"(-1)*{Str}"
dex_earned = f"5*{Dex}/2"
high_items = f"(3*({Item_discovery})/2)"
mid_items = f"(1*({Item_discovery})/2)"
total_items= f"{high_items} + {mid_items}"
return f"({str_earned} + {dex_earned} + {total_items}) + 300" | 1 |
c54dc4af1e81d248a3a5c0b42956d8b5 | 72427f3f2e5e10c15f7879cb285acfc1 | Loads the frozen value details. | public function load_data($frozenType); | 1 |
17ba294bf2037297b9701cebdcbcff1d | 8a6956393cf4f1fc68a31a071e3e7199 | Returns a list of constellation. | class Constellation:
def list_icons(self, editable=False):
return self.call_service('list_icons', args={'editable':editable}).json() | 0 |
ccedba81ac95103fe370c59b9b73a9e1 | 2d7ea4a23d38cf74046fcf6c5938d814 | 设置画布大小为400*400,背景为白色 | function setup() {
createCanvas(400, 400);
background(220);
} | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.