query_id string | corpus_id string | query string | code string | label int64 |
|---|---|---|---|---|
4b43db69038f9e852906a0e23400805e | 0640808cb425304d71386eb7317241f1 | Getter for <code>ehr.composition_history.composer</code>. | @Generated(
value = {
"http://www.jooq.org",
"jOOQ version:3.7.3"
},
comments = "This class is generated by jOOQ"
)
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class CompositionRecord extends UpdatableRecordImpl<CompositionRecord> implements Record10<UUID, UUID, UUID, Boolean, Boolean, String, I... | 0 |
45b8d92dfda28be888d85d25991ba6b7 | aa4bfd1c198fb68d88b6374e5b69b08f | 폴더 이동 이벤트 추가 | {
Object source;
source = event.getSource();
if ( source == m_folderName )
{
if ( m_viewFolderUrl != null )
Window.open( m_viewFolderUrl, "ViewFolderWnd", "height=750,resizeable,scrollbars,width=750" );
}
} | 0 |
34fa2720396b19b154a700a77f1f8f17 | c78d3406f8a1bf40a89aa992de5f2a03 | 改变学生选择窗口的显隐 | export default class App
hideStudentListPanel() {
let curState = this.app.$store.state.showStudentListPanel;
if(curState){
let nextState = !curState;
this.app.$store.commit(CONSTANT.mutations.CLICK_PANEL_BTN,nextState);
}
} | 1 |
e75b635134458c2e0ff49115e0dec667 | 70951166e3eed6d1b916357a91117365 | Returns an array of all changed tags. | var result = [];
if (!labelHistory || !labelHistory.changes) {
return result;
}
var changes = labelHistory.changes;
Object.keys(changes).forEach(function (timestamp) {
var added = changes[timestamp].added,
removed = changes[timestamp].removed;
result = _.union(res... | 1 |
435728eb7d7fe1931f2e3ddc1397f1e7 | 3f22fbb76e2d2b13c397ea1cef9e845e | 获取补充协议信息 | public class Cfma_AddManualDisposableController
@Command
@NotifyChange({"copasinfo"})
public void getprinfo() {
setXl("");
copasinfo=bll.getCoofferinfo(copasm.getColi_name().toString());
} | 1 |
b3a7fa1b957063e973cca35532bbffed | 4178af615527f27077586bfb8524b064 | Get Goals Object By it id | namespace GoalBook.Infrastructure.Data.Repositories
public class GoalRepository : IRepository<Goal>, IDisposable
public async Task<Goal> GetByIdAsync(Guid id)
{
return await _context
.Goal
.FindAsync(id);
} | 1 |
272c457ca849b2ed6705c10bd6963462 | d661e99c43c135437000b10654d182ea | Determines whether this is a Nokia Test Harness (NTH) script. | {
bool nokiaTestHarnessScript = false;
if (testScript != null &&
Path.HasExtension(testScript.file) &&
(Path.GetExtension(testScript.file) == _javaApplicationDescriptorFileExtension ||
Path.GetExtension(testScript.file) == _javaArchiveFile... | 1 |
72ade72005fc90b8903508b190c1cd96 | 0937e2f4adfab33448877114ef52bb3d | Activate polar 2D data reduction | use_direct = False
if self.dirim is not None:
use_direct = True
axetasks.sex2gol(grism=self.grisim,
config=config_util.getCONF(self.config),
in_sex=config_util.getDATA(self.objcat),
use_direct=use_direct,
... | 0 |
6c784253b03c5e5a61b1c436e11e0baf | f664164a12667648bbbbba5a176921af | Returns value of 'deviceUniqueId' property | result = self._values.get("device_id")
assert result is not None, "Required property 'device_id' is missing"
return typing.cast(builtins.str, result) | 0 |
dad692c0d51ea30ce4a01f304d1a2e16 | 5f73487a53d74df4593b13ca0b6371ad | Обработчик. Каждый шаг, мы записываем рандомный элемент со старого массива в новый
и удаляем элемент выбранного массива у старого элемента | var newArray = [];
for (var i = oldArray.length; i > 0; i--) {
var randIndex = Math.floor(Math.random() * oldArray.length);
newArray.push(oldArray[randIndex]);
oldArray.splice(randIndex, 1);
}
return newArray;
} | 1 |
dc71d368e0ce5eedb5ba22e9c76854ce | d8d34092fb29ae07a767bb7a03b5d52d | <p>
This method returns whether or not this is an recursive procedure.
</p> | public class ResponseT extends Transition
public boolean isProc() {
return proc;
} | 0 |
ed7f8cae82c3b28062e9cf4a53dc02d2 | 06949a7a8306607759eaa8226611b084 | 读取股票行业排名 | def stock_industry_download():
df = ts.get_industry_classified()
df.to_csv('../file/Data/stock_industry.csv',encoding='utf-8') | 0 |
af23c7cb66ded2b0cd3f64288b8b2202 | 083b359460df2ba9ae4c94e19f2903ee | 查詢近三個交易日單一個股外資買賣超 | List<Trading> selectMonthlyBuyTopThree(String dateStr); | 0 |
a039337f852a7e94c8cc20afd6506b8d | 13feca4ab6828dc0dd99807eb845c703 | 向bindData变量增加数据 | function bindData(pStr,pData){
} | 0 |
acd65faca2b7a4fbc979ab751dad61e1 | faa24acf71ac60ee505cba316c276ab8 | 用yield from遍历迭代器 | function* gent() {
let i = 0;
for (i = 0; i < ps.length; i += 1) {
console.log('ps', i, ps);
yield ps[i];
}
}
const g = gent();
function next(data: any) {
const res = g.next(data);
if (res.done) {
callback();
return res.value;
}
res.value.then((data: any) => {... | 0 |
40259160c06ce655f991a2d4d66f1167 | 4d241fbf3682c43bcf3c08daccbc3cc3 | 复制话题 | @Service
public class TopicProxy extends BaseProxy<Topic>
public ResultInfo copyTopic(final Long topicId, final Long userId, final String userName) {
final ResultInfo result = new ResultInfo();
this.execute(result, new Callback() {
@Override
public void process() throws Exception... | 1 |
51bd5fd87ece1bcc39437d58979b1308 | 4430b97e64bc4ee290acaa7f160a7d2a | 勾勒花瓣1 | def petal(t, r, angle):
for i in range(2):
arc(t, r, angle)
t.lt(180-angle) | 1 |
d25480d39c9b020b3d3ff6513f1622ff | a3923bb9b72279a77a7c24de19c1ccab | Check that there is enough room available on the CD/DVD | userptr_t top;
size_t available;
top = initrd_top;
if ( userptr_sub ( initrd_bottom, bottom ) > 0 )
bottom = initrd_bottom;
available = userptr_sub ( top, bottom );
len += INITRD_MIN_FREE_LEN;
return ( ( len < available ) ? 0 : -ENOBUFS );
} | 0 |
1bf8d894d54c0d690c8cc27e70bd7bd7 | b1d690f2fe8799a76cf28786d71db62f | 电话号码关联姓名 | index = 0
for number in telList:
if number == tel:
return nameList[index]
index += 1
return tel | 1 |
f5f08a30e76c4ee77d3f5aae271f1760 | 0f5a9e22a90b7ffd8d8493d64b2750b7 | resolves project id, from slug by using internal mapper | {
$projectInput = $this->input->getOption('project');
if (! $projectInput) {
$projectInput = $this->io->ask('Project name or ID');
}
if (ctype_digit($projectInput)) {
return (int) $projectInput;
}
$projectInput = strtolower($projectInput);
... | 0 |
89cc6f52fa84926ef250af57b0caf015 | fe5b73a6892ae785a35908206ad0c2b7 | Special function to draw a rectangular bitmap;
intended for textured glyph rendering. Ignores
current transforms. | void DrawTexRect( int s_xx, int s_yy, int s_sx, int s_sy, DWORD color )
{
TEXINF *tex;
int Format, x, y;
int xx,yy,sx,sy;
DWORD rval,gval,bval,aval;
if ( lasttex < 0 ) return;
tex = GetTex( lasttex );
if ( tex->flag == TEXMODE_NONE ) return;
xx = s_xx;
yy = s_yy;
sx = s_sx;
sy = s_sy;
if ( xx < 0 ) { sx+=xx... | 1 |
c8db93d7c7a01891e1de4a243e093be6 | 4dc33640c441befa0231cafa19045cc6 | Verify that models may be serialized. | class ModelTest extends DbTransactionalTestCase
#[Test]
public function shouldSerializeAndUnserializeModel()
{
$product = new Product(['name' => 'Test']);
$serialized = serialize($product);
$unserialized = unserialize($serialized);
$this->assertEquals('Test', $unserialized->name)... | 1 |
4b06f59c27858663c98d8e3e38e2c1e9 | 4f3b6597cc8460ad8bbf626d98dabe75 | select weapons and set their values | class Game
def init_weapons
@weapons = []
weapons_array = IO.readlines("weapons.txt")
weapons_array.each do |item|
newitem = item.split(', ')
@weapons.push(Weapon.new(newitem[0], newitem[1], newitem[2], newitem[3], newitem[4], newitem[5],
newitem[6], newitem[7].chomp))
end
end | 1 |
749248431e314b67501c179951d6c095 | 4d9a550212d325c2934fd7b3fdbff2f8 | 判断用户是否正在匹配房间内 | if not self.tabPlayer then return false end
local app = require("app.App"):instance()
local meUid = app.session.user.uid
for k,v in pairs(self.tabPlayer) do
local uid = v:getUID()
if meUid == uid and v:getInMatch() then
return true
end
end
return false
end | 1 |
913c3cfab9b132173258f3036cb899c5 | 4da512d0f1989ada39abacfcb07ba06e | Gets the quantity of this CreateMachineRequestAllOf.
Provision multiple machines of this type # noqa: E501 | @NotNull
@JsonProperty("quantity")
public Long getQuantity(); | 1 |
616aae39d4654161de3ad038148bbef9 | 11e65d0d27e720fef038fce9eeddd934 | Get all endpoints of arcadia-api.xyz | export class RestService
public getEndpoints$(): Observable<EndpointListModel> {
return this.http.get<EndpointListModel>(environment.apiBase).pipe(
map(data => new EndpointListModel().deserialize(data))
);
} | 1 |
b7aba0b661efd3008545c271cac4195f | db683519f3199cddac0624d0c4f9b93d | Converts the given thing into a log string, and returns it. | class Logger:
def object(self, o, *args, **kwargs):
string = type_format.format_object(o, **kwargs)
self(string, *args, **kwargs) | 0 |
1b3452a28a152375e5bb3ffb91d6fe91 | bc9611f591a1b155fad91ff9641417cc | Internal helper to add a host to a cluster. | public final class Cluster
@SuppressWarnings("WeakerAccess")
public synchronized void addHost(URI uri) {
int index = this.hosts.indexOf(uri);
if (index >= 0) {
this.okList.set(index, true);
} else {
this.hosts.add(uri);
this.okList.add(true);
}
... | 1 |
7f7946349f85983ee2dbb6fa7da17ae0 | 62ec5f406158409d54d40a593ce3bba7 | Get the review (or null) of a plot | class Tv
public function getPlot() {
return $this->plot;
} | 0 |
dc6de86fd33d6141c1f4d21aa9e7030e | bd04511947461ac31f7c0b7b947732c3 | rb_ary_or | rb_ary_flatten(ary)
VALUE ary;
{
ary = rb_obj_dup(ary);
rb_ary_flatten_bang(ary);
return ary;
} | 0 |
a665db7175e52bae4fb5ff18399a1e68 | 0f2930985d9d3730edafa95e3904ed5e | Sample random words from the dictionary as an infinite generator.
Yields | model = self._model
media = Media(file_path, dtype=np.float32)
samples = media.waveform.ravel().tolist()
buffer_size = self._buffer_size
context = None
while samples:
text, context = model(samples[:buffer_size], context)
samples = samples[buffer_si... | 0 |
4e8ce4427e24be5446d996900388f6d5 | f70a4d53bb60e953e6e24bf74272d466 | The output element is not submittable. | class App_Grid_Field_Button extends App_Grid_Field_FieldDefault
public function __construct() {
$this->setSubmit( false );
} | 1 |
84837e86cbee6abdee454bf1bb28f421 | 8955c299c4d614c15be430c88a04660c | Make sure no archive has been created | if ( file_exists( $this->backup->archive_filepath() ) )
unlink( $this->backup->archive_filepath() );
} | 1 |
965c47cb7ad2372645490fdb56835049 | 943ea01845879a1ba2c3429b58f16456 | Render pacman. | global PACMAN_DIRECTION, MOUTH, MOUTH_DIRECTION
if PACMAN_DIRECTION > 0:
MOUTH_DIRECTION = PACMAN_DIRECTION
pacman = pyglet.shapes.Circle(
position_pacman[0] + 20,
position_pacman[1] + 20,
16,
color=(255, 255, 1),
batch=batch,
)
pacman.draw()
if st... | 1 |
e4fe2c2d1803345f763f39c24b4da3d1 | 0c35425ac54b2faa7c69724ca18221ed | Fuzzily match an image against one of your custom Image Lists. You can create and manage your custom image lists using <a href="/docs/services/578ff44d2703741568569ab9/operations/578ff7b12703741568569abe">this</a> API.
Returns ID and tags of matching image.<br/>
<br/> | {
var request = new RestRequest(Method.GET);
request.AddUObject(requestParams);
return Execute<CreateCustomImageResponse>(request);
} | 0 |
9f47feb590638a5a73f8e3a0ba1bbaed | 8dfc2859895dbafd6d0af0a0f820cc9f | 增加投票模板 | @Controller
@RequestMapping("/voteController")
public class VoteController extends ContentsbaseController
@RequestMapping(params = "addPageModel")
public ModelAndView addPageModel(HttpServletRequest reqeust){
String contentCatId = reqeust.getParameter("contentCatId");
String modelsId = reqeust.getParameter("models... | 1 |
4c290f9c951d3870fe78e94f78343dd6 | f64bbfa924835ae7f9394a6baf07e877 | Processes the cluster sub cluster op reply. | class InovelliNotificationClusterHandler(ClientClusterHandler):
def cluster_command(self, tsn, command_id, args): | 0 |
b98d25d2bf37c49a3862603220991e99 | 1e0a3b581647426572b0c80b9c04e3a7 | Установка FCF (Frame Control Field) | {
wiMAC_State_t *pState = wiMAC_State();
if (IsACK)
{
FrameControl->word= pState->ProtocolVersion | (0x1<<2) | (0xD<<4);
FrameControl->b8 = 0;
FrameControl->b9 = 0;
FrameControl->b10 = 0;
FrameControl->b11 = 0;
FrameControl->b12 = pState->PwrMgt;
Fra... | 1 |
eee62f19b8e42673b49a4c7e22d991df | aa0bb6972cdbd4c120b8fc996cc03133 | Advanced autonomous. Allows user to define steps without needing to recompile code. | public class Main extends IterativeRobot
public void autonomousPeriodic()
{
auto.run();
} | 0 |
795326c3e40bf0efbc74ae367ea7d3a1 | 2e7df40a79c3d27549d6349f5d935771 | Test insertion sort on empty list. | unsorted_list = []
sorted_list = insertionsort(unsorted_list)
assert sorted_list == sorted(unsorted_list) | 1 |
65739ad8a1352b84a9da880f6c3750b8 | ead7cc66112e049962a4d63b55194e7b | PCI-7230 讀取指定bit的DI | namespace ZZ.Serial
public class LDI4512Operation
[DllImport("C:\\WINDOWS\\system32\\LDI4512DLL.dll")]
public static extern int LDI4512_ReadDI(int CardAddress); | 0 |
873a61fe6057bddd0342a9771df69cdd | 55fddf89cf389470a750b44933f082b4 | Cancels a booking | def cancel_booking(update: Update, context: CallbackContext) -> str:
select_action(update, context)
return RETURNING | 0 |
abd8fb42e22742a43ecb0fe9963af184 | f64c11d88403820ca65383111d3d25ae | The highest price an asset has traded during the past 52 weeks.
It’s based on the daily closing price. | tbl = 'stockindex_app_observations'
observation = SqlConnection(tbl)
highest_price = func.max(observation.table.c.high_price).label('high_price_52_weeks')
lowest_price = func.min(observation.table.c.low_price).label('low_price_52_weeks')
stmt = select([observation.table.c.stock_i... | 1 |
3c4ec4c44cc15e3b358dc79279bf080f | 7e852a7c99ce7f58b478e2a1732a0ea2 | write/create a group and update attributes | class L01AttributesManagerTest extends ObjectsCase
public function testCreateAttributeGroup($sequence)
{
if (!Local::hasWooCommerce()) {
$this->markTestSkipped("WooCommerce Plugin is Not Active");
return;
}
$this->loadLocalTestSequence($sequence);
$code = strt... | 1 |
c1738009fc99cd2020dffc7dd7949681 | c313fb7b01b183300350259a42b2f596 | Metodo che consente di esportare tutte le visite presenti su di un file CSV. | if(lista_file_destinazione ==null || nome_file_destinazione==null || nome_file_destinazione.equals(""))
return false;
try (PrintWriter writer = new PrintWriter(new File(nome_file_destinazione))) {
StringBuilder sb = new StringBuilder();
sb.append("ipaddress,");
sb.append("nr,");
sb.append("pr,... | 1 |
aee680b6714d45a018e111bf6caad659 | 18cf37930254e9b608359f282c5bd2f4 | Check if escape key pressed, print an error message if so | {
int
ch = getch ();
if (KEY_ESC == ch) {
closegraph ();
exit (0);
}
} | 0 |
fac26a4e01db47556729b64d6da7bd82 | d3fa393ac63bde874353a24f59c2f6d1 | Lazy Degrees Minutes String representation | return nil if self.blank?
value = self.to_f
degrees = value.to_i
value = value - degrees
value = value * 60
minutes = value.to_i
value = value - minutes
value = value * 60
seconds = value.round(2)
result = "#{degrees.to_s}°"
result += " #{minutes.to_s}'"
result += " #{seconds.to_s}\""
return... | 1 |
d971993965f72df453fe366a3636e955 | 25534c9731c3a5a07350d8e320326893 | Replicates to any relevant client connected to server
Uses a condition so that this is not replicated to the client calling it
That's because the effects already play on clients | public class serverPlayer : NetworkBehaviour
public void PostImpact(Vector3 impactVector)
{
if (isServer)
serverUtils.ServerData.RpcImpact(impactVector);
else if (isClient)
CmdPostImpact(impactVector);
} | 1 |
4c66fd6754cf68decd8316deff178775 | 688bf084c5f333b2275cef8178e3652f | Compare field values and add style classes according to the result | function toggleClasses(){
$(parent).toggleClass('has-success', element.val() !== "");
$(parent).toggleClass('has-error', element.val() === "");
} | 1 |
28aa0d067976a19d7fe500794a3ada1a | df72fa7e23b0bdb5899163e3108f5328 | 设置保存在 Session 中的键名. | class Session extends Service
public function setKey($key)
{
$this->key = $key;
} | 1 |
2e14f73f5eb27a545c0f7ad850b44ffc | 8756f85bc100fbe2792d4576a7ccd2af | ===============
CG_UpdateFlamethrowerSounds
=============== | {
if (HasPlayers() && GetFuelAsPercent() > 0)
{
if (!SoundSys.IsHandleValid(sndEngine))
PlayEngineSound(true);
if (!SoundSys.IsHandleValid(sndTractionLoop))
PlayTractionLoopSound(true);
}
else
{
if (CreateParams.vehicleType != VEHICLETYPE_HELICOPTER)
{
if (SoundSys.IsHandleValid(sndEngine))
Pl... | 0 |
777033b42dd2b12caa2885800b5abc65 | 3e5ed3b905e24d4b380cb41dde73f17f | Gets the latest page for the current site and path. | namespace NetTelegraph
public class TelegraphBot
public PageResult GetPage(string path, bool returnContent = false)
{
RestRequest request = NewRestRequest(mGetPage);
request.AddParameter("path", path);
request.AddParameter("return_content", returnContent);
ret... | 1 |
975170d8890f6772468a837602cd6b19 | e83473bfc97c80dcde371271943b5435 | Start monitoring the command for CanExecute changes. | namespace Topics.Radical.ComponentModel.Windows.Input
IDelegateCommand AddMonitor( IMonitor source ); | 1 |
cb8b56b4fa044012a2cd4ddba33fdd0f | 6bbe7ba33925bb464f5a38f3bf106eca | Takes a socket descriptor and returns the socket's IP address. Local IP address | string ReceivedAdvert::get_ip_address(sockaddr_storage their_addr) {
socklen_t addr_size = sizeof their_addr;
char buffer[INET6_ADDRSTRLEN];
getnameinfo((struct sockaddr*) &their_addr, addr_size, buffer,sizeof(buffer), 0, 0, NI_NUMERICHOST);
return string(buffer);
} | 0 |
0b9ddfd72f7b75917721ce484f5c9d85 | 89465c264fb298b8ffc99397a007f413 | Check for conditions necessary to verify that the process ran
correctly. | void check_conditions() {
unsigned char isError = 0;
if (number_of_vertices < number_of_processors) {
printf("Number of vertices (%d) is smaller than number of processors (%d)\n", number_of_vertices, number_of_processors);
isError = 1;
}
if (number_of_vertices % number_of_processors != 0) {
puts("Number of ve... | 1 |
339ae7cb60f0955ea4a07fc1402a21d3 | bdfa872e1cd7eaad596839b787bcb954 | @brief Parse division expression | {
PEXPR expr;
if (tok->kind != TOKEN_NUMBER)
{
pool->error = MAKE_ERROR(WINDIVERT_ERROR_ASSERTION_FAILED, 0);
return NULL;
}
expr = (PEXPR)WinDivertAlloc(pool, sizeof(EXPR));
if (expr == NULL)
{
return NULL;
}
memset(expr, 0, sizeof(EXPR));
expr->kind = TO... | 0 |
0554a236050a86811486eccc464903e0 | 5202f973393e7c82ef52c6dcae10e2c0 | subtract one for ourselves, so if we know no other peers it displays zero | class smarterMinMaxMancalaPlayer(MinMaxMancalaPlayer):
def heuristic(self, game, state):
return state.board[self.mynumber-1][0] - state.board[game.otherplayer(self.mynumber)-1][0] | 0 |
4b69ace94254990da808dacaaea56707 | e1994c6027f3697d24eed94102d98d83 | Populates the graphSet with namedGraphs and triples. | for (String key : namedGraphs.keySet()) {
String output_filename = key.substring(key.indexOf(':') + 1).trim() + ".n3";
String output_filepath = getTrigFolder() + output_filename;
outputFileNames.add(output_filename);
BufferedWriter writer = new BufferedWriter(
new FileWriter(ou... | 0 |
c43d16b2bc14ffed10e0d9d247826448 | 8d2f1a9eeadb791c36253181b6818804 | Returns the ResNet50 + Mixer-B/16 configuration. | def get_r50_b16_config():
config = get_b16_config()
del config.patches.size
config.patches.grid = (16, 16)
config.resnet = ml_collections.ConfigDict()
config.resnet.num_layers = (3, 4, 9)
config.resnet.width_factor = 1
config.which_backbone = 'R50'
return config | 1 |
927c9e19ca4b3c2f31f98500bb8bf7db | a1e7a1cfab609ef31e00a6d872d8b4df | The policy for pulling an image. | class ImageStreamSpec(types.Object):
def lookup_policy(self) -> Optional["ImageLookupPolicy"]:
return self.__lookup_policy | 1 |
4e0a3c4d10b3411b8f1bfba85b3b4d33 | 3741eeb1c35b8e0eddc12417b3106447 | Called when a threatening entity is in sight | class CreatureHurtState(CreatureState):
def on_threat_spotted(self, threat):
self.brain.set_state(CreatureFleeState) | 1 |
d057a5e0c930b40b03590ecb57381119 | 0444acfff2e1915647f24ef03f4e6fe4 | Get a list of the current user’s saved shows. | internal class SpotifyApi : ISpotifyApi
public async Task<CursorPaging<SavedShow>> GetUserSavedShowsAsync(
Cursor cursor = null) =>
await _client.AuthLookupUserSavedShowsAsync(cursor); | 1 |
62256e24f9a5d43311b11e967c5fd2dc | f1c47562fc03588772e5803d77c1cc44 | 内部函数:获取一段时间内反对最多的评价的信息 | if not os.path.exists(dir+'/most_comments'):
os.mkdir(dir+'/most_comments')
files = os.listdir(dir)
list = []
for file in files:
if not file.endswith('.info.json'):
continue
json_data = read_comments(dir + '/' + file)
print(file)
try:
list.ap... | 0 |
a3ae840c24944bacf8ab1f7af81d65dd | 387af151b990233e11c76d2043caf80a | The recipients that the tokens are intended for. This becomes the `aud` claim in an access token. | class GoogleCloudIntegrationsV1alphaOidcTokenArgs:
def audience(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "audience") | 1 |
7fd71be9ca91b4d901a5eea767dfbdb6 | 0a4b0269c9eabaaacdc895e71960c802 | initializing timer/counter1 as counter in mode 2 | void Init_Timer1(void)
{
TMOD |= 0x10;
TH1=0x00;
TL1=0x00;
EA=1;
ET1=1;
TR1=1;
} | 0 |
aae00f511abd29b148357273cb037838 | 4c7ac2b8ccbc1b19fc12fd4ae4df2168 | 获得等额本息摊销计划月摊销额集合(按月均摊方式计算) | public class NvlCostAnalysedBillDetail
public Double getPastMonthsAmortizedAmount() {
return pastMonthsAmortizedAmount;
} | 0 |
e15bb18a10be3ca29b82df52f2c35ae9 | 5188d1e276da07edf8c9d44ebb8adeab | find duplicate chunks | def get_chunks(hex_list):
N = len(hex_list)
connection = np.eye(N)
for i in range(N):
for j in range(i):
if hex_list[i].sub(hex_list[j]).mag() <= 1:
connection[i, j] = connection[j, i] = 1
chunks = []
never_visited = set(range(N))
while never_visited:
... | 0 |
a24330e65817e73eb013fe3f4bedc193 | 989ac6a735d2404736f74744e87c953b | Get Cascading Style Sheets for field. | class DatePickerField extends Field
public function getCss()
{
return [
'vendor/crud/fields/datepicker/bootstrap-datepicker3.min.css',
];
} | 1 |
3039bed3f31a6a716d4cd2ca78ef147d | 71bb58852dec9d3b92ea9a1da0ff0374 | Return the shape of the sheet in the NumPy logic.
Returns:
Tuple[int]: Number of rows, Number of columns | class ReadData:
def get_size(self):
sheet = self.open_excel_file_sheet(self.sheet_index)
return sheet.nrows, sheet.ncols | 1 |
b217ac421450e77438790e884f66aad5 | d5fdce85d4eacd545754fd5f9ae95ac7 | Get command values from command body | void getCommands() {
if(rcHealth) {
getData();
if (converged) {
pos = map(rcValues[RC_CH1], RC_MIN, RC_MAX, ANGLE_MIN, ANGLE_MAX);
ratioSpeed = map(rcMeans[RC_CH2], RC_MIN, RC_MAX, RATIO_MIN, RATIO_MAX);
ratioR = map(rcMeans[RC_CH3], RC_MAX, RC_NEUTRAL, RATIO_MIN, RATIO_MAX);
ratioL = map(rcMeans[RC_CH... | 0 |
5b117f86cf1b051fa6b83f60f5c9bcee | 10cce9d52028381381d6de85458429b6 | Loads a collection of statements. | foreach ($stmts as $stmt) {
$this->addStmt($stmt);
}
return $this;
} | 1 |
5c17eca273a1bc0dc08c295149bd2453 | a37175d05034d323b4b1b688c3e096f3 | This method will be invoked by the framework, so that it knows how many [SweetBroadcastListener] it exposes. | interface Sweetened<AggregateClass>
fun registerBroadcastListeners(broadcastListeners: Array<SweetBroadcastListener>) | 1 |
1bfed6bf4ecb8f5751a8d59ee77ce8cb | 58f6b67f0cdf821912323eae96adf1a6 | Getter for the data model of the list of users | UserListModel getUserListModel(); | 1 |
9401c8cf368bcb15e2fda8e36f0dfc05 | 3ed972d4cd808e2fd6f1f272285c1823 | 去除富文本格式 | let reg = /[^\u4e00-\u9fa5|\u0000-\u00ff|\u3002|\uFF1F|\uFF01|\uff0c|\u3001|\uff1b|\uff1a|\u3008-\u300f|\u2018|\u2019|\u201c|\u201d|\uff08|\uff09|\u2014|\u2026|\u2013|\uff0e]/g;
let r = richText.replace(reg, '');
return r;
} | 1 |
ad3101160fbcec050d95b884886c5b8e | 88a277d253672ecee6640148d27880ec | POST /trades
POST /trades.xml | class TransactionsController
def create
respond_to do |format|
if @transaction.save
format.html { redirect_to(transactions_url, :notice => 'Transaction was successfully created.') }
format.xml { render :xml => @transaction, :status => :created, :location => @transaction }
else
f... | 1 |
caa8db46cac13f1994752734d789642e | 3c93cfe1efef3a96a95271eeb45a32e1 | Very basic test to see if we can put in valid input and subsequently get that input back out. | public class MainGameTest
@Test
public void validInput_test()
{
assertTrue(g.validInput(1,1));
} | 0 |
7ca41c7fcd677523b9540bf5f195cef3 | ebc244c96bb669622210df6558f70922 | Fills the Test Result Controls with the data in the database | {
int testID = Convert.ToInt32(resultListBox.SelectedValue);
Test temp = TestDB.GetTest(Form2.ID, testID);
Test newTest = new Test();
newTest.IDNumber = temp.IDNumber;
newTest.TestNumber = temp.TestNumber;
newTest.GetTest = testBox.Text;
... | 0 |
a6d1570163391cd341da1a66f23a63a4 | afb1e922df1622f4651c6603ace7a19b | 객체 멤버변수 값을 출력하기위한 프린트 메소드 | System.out.println("이름 : " + name);
System.out.println("전화번호 : " + phoneNum);
System.out.println(birthDay!=null?"생일 : " + birthDay:"");
} | 1 |
78ed2a27eccbc17990de6f05de447652 | a7f4e10f0873d42b64fc9d45692508de | multi-source bfs from all enemies | priority_queue<pair<int,pair<int,int>>,vector<pair<int,pair<int,int>>>,greater<pair<int,pair<int,int>>>> pq;
fill(&dist[0][0],&dist[0][0]+1005*1005,inf); dist[s.first][s.second] = maze[s.first][s.second]; pq.push(pair<int,pair<int,int>>(maze[s.first][s.second],pair<int,int>(s.first,s.second)));
while(!pq.empty()) {
... | 0 |
0a0dd193479801a839de2f734b08dac1 | 082f3107b4808a0a3680b566d49f4c9b | ID: 4
Returns list of palindrome numbers | for num in range(100000,999999):
if is_palindrome(str(num)[2:]):
if is_palindrome(str(num+1)[1:]):
if is_palindrome(str(num+2)[1:5]):
if is_palindrome(str(num+3)):
return num | 0 |
2e7d7957594b7d370af8c67098da7a94 | 66c553b4b10248a4826be34081383632 | SIZE-OF-SIMPLE-UNSIGNED-BYTE-8-ARRAY | Object size_of_cons()
{
x_note_fn_call(165,53);
return VALUES_1(FIX((SI_Long)8L));
} | 0 |
2d5f5e0974f871981064c86daba29323 | ba5825ddd1bfd63a105b63372ea0dac9 | Insert the action as an incoming action for the destination node and as
an outgoing action for the current hosting node.
the graph to use | class Report(Report):
def createActionNet(self, packet):
act = maec.ActionType(
id = "%s:act:%s" % (self.idMap["prefix"], self.getActionId()),
)
act.set_Action_Initiator(maec.Action_InitiatorType(
... | 0 |
10b83c861822c3e4403a86988b5e652d | 1c082cffdd9bad9b6f1e76eb7dbccf16 | 取得某一语言code对应的资源,不区分大小写 | {
try
{
if (!resourcesByCulture.Contains(culture))
{
string path = Path.Combine(baseDir, string.Format(ResourceName, culture));
LoadResource(path, culture);
}
var resources = resources... | 0 |
e432bd32aaa82675fa5931d220c3761c | fac2d8dcd7d07af573b5cd6b40829038 | This function filters stations to eliminate useless data.
Returns the subhourly, hourly, and daily working stations.
Input : A list of stations (of type List[station])
Output : 3 lists of stations (of type List[station]) | def filterStations(stations):
subhourlyStats = []
hourlyStats = []
dailyStats = []
for station in stations:
if ((station.lat == 0.0) & (station.lon == 0.0)):
continue
else:
if (station.reports == "subhourly"): ... | 1 |
62667c65f82bce57e959f175fe373b8d | 2e446e9bd44afa54001f70c145d5cb03 | Пробуем для каждого рейса найти самолёт.
Способ получен эксперементально. | {
$where = [
'airline_id' => $airline_id,
'flight_number' => $flight_num,
'active' => true,
];
if (filled($route_code)) {
$where['route_code'] = $route_code;
}
if (filled($route_leg)) {
$where['route_leg'] ... | 1 |
b680f96b107f4bbd3297a0b38fd4a1d4 | 2bf64896e4f34b6dd8f6b647cc56afe7 | NewCPU is CPU constructor | func New64() hash.Hash64 | 0 |
8355c6c5e0971ca4468dbd40c2ffe9c3 | 21cf0539e11e0d977fee4834fdd1f8a8 | Returns the number of blocks of the signature file for an APK file of the given size. | interface WriteNFCI: NFC
fun getBlockCount(): Int | 0 |
e5f82092d87770cf74e7be7ef3f20c8a | 2187a7980e4494dbf9be7945cef3960f | This adds a property descriptor for the Bucket Begin Time feature.
<!-- begin-user-doc -->
<!-- end-user-doc --> | itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_TimeLine_FirstBucket_feature"),
getString("_UI_PropertyDescriptor_description", "_UI_TimeLine_FirstBucket_feature", "_UI_TimeLine_t... | 1 |
fbc6bfc86495b8d42ab34b38f7f9005a | 9c22ec29617693c8da4a5bd8782ac5c0 | Provides formatted archive names. | @Override
public String format(final Archive<?> archive) throws IllegalArgumentException {
return formatter.format(archive);
} | 1 |
ca0f6f49f3f6b1c32c087ca3e87f55c4 | 5fc04db5f1dd953563bb12922169d5de | Add a connection to the pool.
This function is used by `_new_conn` as a callback to add the created
connection to the pool. | class Pool(Pool):
def release(self, conn):
return asyncio.async(self._release(conn), loop=self._loop) | 0 |
a79b33db7c0649e6d30a809fd9cf04f6 | 8e82e08bb7bd030a23c2a6943945a842 | 获取userName发布的没有通过审核的工作 | List<List<Work>> getAllNotDo(); | 0 |
dfa2baa526e95a36e9246782ad99fad9 | 00c361c0b55f85fbe501986600729c84 | Returns the processor time of a specific process | vector<long> cpuStats = LinuxParser::ProcStats(procID_);
long utime = cpuStats[0];
long stime = cpuStats[1];
long cutime = cpuStats[2];
long cstime = cpuStats[3];
long starttime = cpuStats[4];
long sysUpTimeSec = cpuStats[5];
std::string str;
long total_time = utime + stime;
to... | 1 |
6616d4af678077e12ac65ee9247f5ac4 | eeb547fdb32deca6e96eeaf661e2052f | Album để hiển thị slide show ở trang chủ | class AlbumController extends Controller
public function index(Album $albums){
$albums = Album::all();
$this->storeImage($albums);
return view('admin.uploads', compact('albums'));
} | 0 |
97ea80f31c6454aa7e3d8be9a3f2a553 | 5c5f38e919c72a383b1da098930eb08f | Prepares everything for testing (allocated meshes, etc). | class TestBDM2Mesh8(object):
def setup_method(self,method):
reload(bt)
self.transport_obj = bt.ns.modelList[0].levelModelList[0]
self.bdm2_obj = self.transport_obj.velocityPostProcessor.vpp_algorithms[0]
self._setRelativePath() | 1 |
db9e5ca5ad30e01b479be9d9d98a344d | 67d91fa80516a90d92ca6edc553991df | Loads all available mask images, returns them in a list. | return [
f for f in listdir(get_images_directory())
if isfile(join(get_images_directory(), f))
] | 0 |
c8ca47f12691fc0d3ac36bf4e7016924 | e310e322db488a559ff5a3ceec081449 | cleanup any undismissed ota dialogs so the InCallScreen UI can be shown | {
if (g_pwr_context.SOSCallFlagTOAvoidHistorySave != 1)
{
GenericExitScreen(SCR_DIAL_SOS_NUM, DialSOSNumber);
}
g_idle_context.IdleScreenDigitKeyCode = -1;
g_idle_context.IsOnSimErrorDialerScreen = 0;
#if ( (defined __MMI_WGUI_CSK_ENABLE__) && (defined __MMI_TOUCH_SCREEN__) )
ResetCe... | 0 |
0792a63daa290cd28abd7f58a4049e01 | 22b0397a13ddb94909972de7285c978c | skipToken
read & skip the specified token 'token' from the string that
starts at 's[*indx]'. '*indx' is incremented accordingly
If there is a mismatch, signal a syntax error. | if self.tok == tok:
self.next_token()
else:
self.error("bad skip...", self.tok, tok) | 1 |
eadd6ffb8fe12fbed5079cb81eef1bf4 | 74fc83a3996743ee49f09d794b58a7d0 | 機械音声再生 | os.system('amixer -c ' + str(self._p_mic_no) + ' sset "Mic" 0%')
config_1 = Decoder.default_config()
config_1.set_string('-hmm', os.path.join(self._p_model_dir, self._p_hmm))
config_1.set_string('-dict', os.path.join(self._p_model_dir, self._p_dict))
config_1.set_string('-keyphra... | 0 |
2888bdc609499cf084a808e2c461f44a | beccc5e81cded9c460bb621b0a315b16 | 按产品型号查询Bom料单 | @Component
public class ZgTBomManagerDao extends BaseIbatisDao<ZgTorderPlan,java.lang.String>{
@SuppressWarnings("unchecked")
public List<Map> findBomlListByOrderId(PageRequest<Map> pageRequest) {
String planType=pageRequest.getFilters().get("planType").toString();
return getSqlMapClientTemplate().queryForList("... | 0 |
ed41f05b2ccb8e3aa90afeb45af732eb | b9c7a2a63f518dcfe30fb45f73c87c3f | Counts number of tiles that are not walls | tileCount = 0
for row in range(10):
for column in range(15):
if uGridContents[row][column] == "Y": tileCount += 1
return tileCount | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.