seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = FloatingRateBond()
x.Init(buf, n + offset)
return x
@classmethod
def GetRootAsFloatingRateBond(cls, buf, offset=0):
"""This method is deprecated. Please switch to GetRootAs."""
return cls.GetRootAs(buf, offset)
# FloatingRateBond
def Init(self, buf, pos):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[test]
#[ignore]
fn test_no_difference_between_empty_strands() {
assert_eq!(dna::hamming_distance("", ""), 0);
}
#[test]
#[ignore]
fn test_no_difference_between_identical_strands() {
assert_eq!(dna::hamming_distance("GGACTGA", "GGACTGA"), 0);
}
#[test]
#[ignore]
fn test_complete_hamming_distance_in_small_strand() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
case "Образование и карьера":
return UIImage.Categories.education
case "Бизнес":
return UIImage.Categories.business
default:
return nil
}
}
func setAuthorImage(_ urlString: String) {
guard let url = URL(string: urlString) else { return }
authorImageView.sd_setImage(with: url, placeholderImage: UIImage.placeholder)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class Solution:
def shortestSuperstring(self, A: List[str]) -> str:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#Comparing two if n can be divided by 2
if i % 2 == 0:
buffer[i] = min2(buffer[i], buffer[i // 2] + 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @return list of all parking tickets
| ise-uiuc/Magicoder-OSS-Instruct-75K |
super(response);
this.headers = headers;
}
/**
* Gets the response headers.
* @return the response headers. Null if there isn't one.
*/
public THeader headers() {
return this.headers;
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
obj.setSignType(WalletApiConstants.SIGN_TYPE_RSA);
obj.setTimestamp(System.currentTimeMillis());
return obj;
}
public static <T> WalletApiResponse<T> error(String msg) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def async_setup_entry(hass: HomeAssistant, config_entry, async_add_entities):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
## Load image and mask
shape = image.shape
image, window, scale, padding = utils.resize_image(
image,
min_dim=config.IMAGE_MAX_DIM,
max_dim=config.IMAGE_MAX_DIM,
padding=config.IMAGE_PADDING)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
torch.save(value.state_dict(), name.format(key + '_ema'))
# ==================================================================#
# ==================================================================#
def load_pretrained_model(self):
self.PRINT('Resuming model (step: {})...'.format(
self.args.pretrained_model))
# self.name = os.path.join(
# self.args.model_save_path,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import hotlinecesena.view.hud.PlayerStatsViewImpl;
import javafx.scene.input.KeyCode;
import javafx.scene.layout.StackPane;
/**
* Controller of the {@code PlayerStatsView}.
*/
public class PlayerStatsControllerImpl implements PlayerStatsController{
private final StackPane stackPane;
private final PlayerStatsView playerStatsView;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# MONTA GRAFO
| ise-uiuc/Magicoder-OSS-Instruct-75K |
bfl::verify_arg_count "$#" 1 1 || exit 1
declare -r path="$1"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.cbhead {
margin-right: 10px !important;
display: block;
clear: both;
position: relative !important;
margin-left: 5px !important;
}
.mheader table {
border-collapse: collapse;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if 2:
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
),
migrations.RemoveField(
model_name='articletranslation',
name='uuid',
),
]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const int LIMIT_RESERVE = 3;
if (SelectedRealRowCountLimit.HasValue && maxrow - minrow > SelectedRealRowCountLimit.Value + LIMIT_RESERVE)
{
maxrow = minrow + SelectedRealRowCountLimit.Value + LIMIT_RESERVE;
}
if (SelectedRealColumnCountLimit.HasValue && maxcol - mincol > SelectedRealColumnCountLimit.Value + LIMIT_RESERVE)
{
maxcol = mincol + SelectedRealColumnCountLimit.Value + LIMIT_RESERVE;
}
for (int row = minrow; row <= maxrow; row++)
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return price_tree
| ise-uiuc/Magicoder-OSS-Instruct-75K |
site_1.save()
self.log_success(obj=site_1, message="Created a new site")
site_2 = Site.objects.create(name="Test Site Two", slug="test-site-two")
self.log_success(obj=site_2, message="Created another new site")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
input_length=seq_length))
if params['bidirectional'] == True:
model.add(Bidirectional(GRU(units=params['units'])))
else:
model.add(GRU(units=params['units']))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#******************************************************main*********************************************************************************************
vaka = []
with open("veriler.txt","r") as file:
for i in file.readlines(): #Verileri vaka'listesine aktariyor.
i = i.rsplit('\n')
vaka.append(int(i[0]))
n = len(vaka)
yitoplam = sum(vaka)
xler = [0,0,0,0,0,0,0,0,0,0,0,0] #xler'listesinin 0.indeksi:xitoplam,1.indeksi:xi2toplam...
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for i in range(0, n):
selected = self.select()
expansion = self.expand(selected)
reward = self.simulate(expansion)
self.backpropagation(expansion, reward)
self.stats.run_time += (time.time() - start)
return self
def select(self) -> MctsNode:
start = time.time()
current = self.tree.root
while current.games > 0 and not current.state.is_terminal:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if type(data) == list:
return "".join([self.get_values(key) for key in data if key])
if type(data) is not dict:
return str(data)
return "".join([self.get_values(data[key]) for key in sorted(data) if data[key]])
def http_build_query(self, params, convention="%s"):
if len(params) == 0:
return ""
output = ""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return wrong_msg
def my_key(group, request):
try:
real_ip = request.META['HTTP_X_FORWARDED_FOR']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
digest = sha256()
with open(filename, 'rb') as f:
for chunk in iter(lambda : f.read(block_size), b''):
digest.update(chunk)
print digest.hexdigest()
sha256_file('dummy.txt')
#
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<div class="icon">
<a href=" " class="mall"></a>
</div>
<div class="text">
<h3>
商城管理
</h3>
</div>
<div class="des">
<p>
微信商城让商家轻松坐拥6亿微信用户
</p>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
let percentiles = percentiles.unwrap_or(&[0.25, 0.5, 0.75]);
let mut headers: Vec<String> = vec![
"count".to_string(),
"mean".to_string(),
"std".to_string(),
"min".to_string(),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
));
}
return true;
}
private function check_socket() {
$rx_buffer = "";
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return config.type === "text" || config.type === "password";
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class ResourcesTests(unittest.TestCase):
def load_sys_config(self):
fp = 'data/system_def.config'
data = None
with open(fp) as f:
data = json.load(f)
return data['groups'], data['resources']
def test_init_resources(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<h3>El administrador, {{Auth::user()->name}} ha realizado una modificacion.</h3>
<h3>Revisalo, por favor.</h3> | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(6, multiply(2,3))
if __name__ == '__main__':
unittest.main()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
record_id_list.append(record_id)
return record_id_list
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .main import MTreadgui,acousonde | ise-uiuc/Magicoder-OSS-Instruct-75K |
s3_key="song_data",
region="us-west-2",
data_format="JSON",
execution_date=start_date
)
load_songplays_table = LoadFactOperator(
task_id='Load_songplays_fact_table',
dag=dag,
provide_context=True,
aws_credentials_id="aws_credentials",
redshift_conn_id='redshift',
sql_query=SqlQueries.songplay_table_insert
| ise-uiuc/Magicoder-OSS-Instruct-75K |
h1, h2 {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Ok((&self.cpu_image, denoising_time, postprocessing_time))
}
/// Render another sample of the image, adding it on top of the already accumulated buffer.
pub fn render(&mut self, use_optix: bool) -> Result<Duration> {
let module = &self.module;
let stream = &self.stream;
let (blocks, threads) = self.launch_dimensions();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
>>> with Timer("test"):
... # inside codes
...
# some outputs
[test takes 0.001s]
"""
def __init__(self, name='', timing=True):
if not timing: name = ''
| ise-uiuc/Magicoder-OSS-Instruct-75K |
## Item x and y position
self.rect = self.image.get_rect()
self.rect.y = y
self.rect.x = x
## Collision ID (how other items tell what this item is)
self.id = "I"
# Type of item
# Index of items:
# 0 = heart
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static extern int StateGet(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Key_logicalKey_get")]
public static extern string LogicalKeyGet(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Key_SWIGUpcast")]
public static extern global::System.IntPtr Upcast(global::System.IntPtr jarg1);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .create import (read_instrument_description_file, read_detector_description, read_jaw_description,
read_instrument_description)
from .instrument import Instrument
from .robotics import Sequence, Link, IKSolver
from .simulation import Simulation
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public interface NextTask {
void doNextTask(int index, File path);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self = url
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// <summary>
/// ETCD snapshot S3 region (string)
/// </summary>
[Input("region")]
public Input<string>? Region { get; set; }
/// <summary>
/// Disable ETCD skip ssl verify. Default: `false` (bool)
/// </summary>
[Input("skipSslVerify")]
public Input<bool>? SkipSslVerify { get; set; }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
for ta in self.__db.values():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Each node in the tree can be one of three types:
Leaf: if the node is a leaf node.
Root: if the node is the root of the tree.
Inner: If the node is neither a leaf node nor a root node.
Write a query to print the node id and the type of the node. Sort your output by the node id. The result for the above sample is:
+----+------+
| ise-uiuc/Magicoder-OSS-Instruct-75K |
returnedValue = lo1;
lo2 = lo1 + lo2;
return returnedValue;
}
uint32_t BasicTypeTestServerImplExample::getULong(/*in*/ uint32_t ulo1, /*inout*/ uint32_t& ulo2, /*out*/ uint32_t& ulo3)
{
uint32_t returnedValue;
ulo3 = ulo2;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .reshaping import *
from .tensor_container import *
from .to_scalar import *
from .to_tensor import *
from .dimension_order import *
from .types import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try:
shutil.rmtree(path)
except OSError as err:
print(f"unable to delete direcotry path due to: {err}")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
):
"""Lists all ATBDs with summary version info (only versions with status
`Published` will be displayed if the user is not logged in)"""
if role:
if not user:
raise HTTPException(
status_code=403,
detail=f"User must be logged in to filter by role: {role}",
)
role = f"{role}:{user.sub}"
# apply permissions filter to remove any versions/
# ATBDs that the user does not have access to
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DirectivesUpdated();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
getchar()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
int a;
A() {
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if(!get_magic_quotes_gpc()){
$value = addslashes($value);
}
}
return $value ;
}
function html_sanitize($string){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$aryFileName = getFileNameAndPath( $log_dir, $ResultFileNameStr, ".txt" );
if ( 0 < count($aryFileName) ) { // result.txtファイルが既に存在します";
$outputLogAry = array( $info["EXE_NO"], $ResultFileNameStr . ".txt" );
outputLog(LOG_PREFIX, $objMTS->getSomeMessage("ITADSCH-ERR-990039", $outputLogAry ));
| ise-uiuc/Magicoder-OSS-Instruct-75K |
'g' => 6,
],
'h' => 7,
];
$expected = [
'a' => 5,
'b' => 2,
'c' => [
'd' => 3,
'e' => 4,
'g' => 6,
],
'f' => 5,
'h' => 7,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if word.feats:
morph_feat_dict = dict(x.split("=") for x in word.feats.split("|"))
feat_form=''
for feat in featlst:
if feat in morph_feat_dict:
feat_form=feat_form+'+'+morph_feat_dict[feat]
else:
feat_form=feat_form+'+'+'-'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
datetime_object = datetime.strptime(datetime_str, '%m/%d/%y %H:%M:%S')
print(type(datetime_object))
print(datetime_object) # printed in default format
# string to date object
date_str = '09-19-2018'
date_object = datetime.strptime(date_str, '%m-%d-%Y').date()
print(type(date_object))
print(date_object) # printed in default formatting
# string to time object
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#Com :20, posso fazer 20 espaços (centralizado).
#Além disso, posso informar a direção desses espaços com :> (direita) ou :< (esquerda).
n1 = int(input('Um valor: '))
n2 = int(input('Outro número: '))
print('A soma vale {}' .format(n1 + n2))
#Soma rápida para mostrar na tela.
n1 = int(input('Um novo valor: '))
n2 = int(input('Outro novo valor: '))
s = n1 + n2
p = n1 * n2
d = n1 / n2
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param entity: The ticking entity
* @return Boolean: whether the entity should tick.
*/
public static boolean checkIfActive(Entity entity) {
final ActivationEntity activationEntity = (ActivationEntity) entity;
if (shouldTick(entity, activationEntity)) return true;
final int currentTick = ServerCore.getServer().getTickCount();
final boolean active = activationEntity.getActivatedTick() >= currentTick;
if (!active) {
if ((currentTick - activationEntity.getActivatedTick() - 1) % 20 == 0) {
// Check immunities every 20 inactive ticks.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import org.bukkit.entity.EntityType;
import org.bukkit.entity.Player;
/** An implementation of {@link TargetFilterType} for filtering entities of type {@link Player}. */
public class TargetFilterPlayer extends TargetFilterType {
/** Constructs the target filter. */
public TargetFilterPlayer() {
super(EntityType.PLAYER);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
fn requires_visible_render_objects(&self) -> bool {
false
| ise-uiuc/Magicoder-OSS-Instruct-75K |
package org.neo4j.ogm.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.split_token = nn.Parameter(torch.Tensor(1, h_dim))
torch.nn.init.xavier_uniform_(self.split_token.data)
self.operation_mix = OperationMix(h_dim, dropout)
self.h_dim = h_dim
self.num_layers = num_layers
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ax1 = fig.add_subplot(211)
ax1.scatter(result_unrotated_roi_boundary_x, result_unrotated_roi_boundary_y)
ax1.scatter(result_parking_spot_x, result_parking_spot_y)
ax2 = fig.add_subplot(212)
ax2.scatter(result_roi_boundary_x, result_roi_boundary_y)
plt.gca().set_aspect('equal', adjustable='box')
plt.show()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
desvio_padrao_diastolica = 0
variabilidade_diastolica = 0
caminho = fr'banco_dados\{nome_documento}'
with open(caminho, 'a') as doc:
doc.write(f'{quantidade_dados},{media_sistolica:.1f},{media_diastolica:.1f},'
f'{desvio_padrao_sistolica:.1f},{desvio_padrao_diastolica:.1f},{variabilidade_sistolica:.0f},'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_kubectl_is_installed(host):
kubectl = host.package('kubectl')
assert kubectl.is_installed
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def _main(dir):
file_process(dir)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
True
"html" in file_counts
False
file_counts["cfg"] = 8
print file_counts
{"jpg":10, "txt":14, "csv":2, "py":23, "cfg" = 8 }
file_counts["csv"]= 17
print file_counts
{"jpg":10, "txt":14, "csv":17, "py":23, "cfg" = 8 }
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from tests.akagi_tests.data_file_bundle_tests import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .misc import QuitRequest, Command
from .abstract import Sound, Music, Clock, Frontend
def get(name, frontendArgs=None, frontendArgsNamespace=None):
return importlib.import_module(__name__ + "." + name).Frontend(args=frontendArgs, namespace=frontendArgsNamespace)
def iter():
prefix = __name__ + "."
for importer, modname, ispkg in pkgutil.iter_modules(__path__, prefix):
if ispkg:
modname = modname[len(prefix):]
if "." not in modname:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
outp = self.getTestOutp()
self.eq(await s_autodoc.main(argv, outp=outp), 0)
with s_common.genfile(path, 'conf_stormvarservicecell.rst') as fd:
buf = fd.read()
s = buf.decode()
self.isin('StormvarServiceCell Configuration Options', s)
self.isin('See `Configuring a Cell Service <https://synapse', s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
results.append(result)
return sorted(list(set(results)))
def files_exist(self, filenames):
""" Check if all files in a given list exist. """
return all([os.path.exists(os.path.abspath(filename)) and os.path.isfile(os.path.abspath(filename))
for filename in filenames])
def dependencies_are_newer(self, files, dependencies):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def tearDown(self):
self.selenium.stop()
self.assertEqual([], self.verificationErrors)
if __name__ == "__main__":
#unittest.main()
seleniumtest.runInSeleniumRC(unittest.main)() | ise-uiuc/Magicoder-OSS-Instruct-75K |
package com.github.chenjianjx.ssioextsample.spi.clientexternal.base64csv;
public interface Base64SpiConstants {
String BASE64_CSV_FILE_TYPE = "Base64Csv";
char DEFAULT_CSV_CELL_SEPARATOR = ',';
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@addTagHelper *, SampleRazorPagesApplication
@addTagHelper *, Acmion.CshtmlComponent | ise-uiuc/Magicoder-OSS-Instruct-75K |
internal override MetaDataObject MakeUnique()
{
throw new NotNormalized( "MakeUnique" );
}
//
// Access Methods
//
public short PackingSize
{
get
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return dict()
def block_executor(ebs: List[ExecutionBlock], pes: List[ExecutionBlock], methods: Methods) -> parserReturnType:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
/// <summary>
/// Insert a new <see cref="BadHealthEntry"/>
/// </summary>
/// <param name="entry">Entry to be inserted</param>
public void Insert(BadHealthEntry entry) {
lock (_Entries) {
_Entries.Add(entry);
if (_Entries.Count > 50) {
_Entries.RemoveAt(0);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fin = open(file_path, encoding="utf-8")
for line in fin:
line = line.strip()
sp = line.split("\t")
_, urlid, sntid = sp[0].split(".")
if urlid not in allow_urls:
continue
k = "km_pos_tag" if fname == "data_km.km-tag.nova" else "km_tokenized"
if sntid in data:
data[sntid][k] = sp[1]
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub sar_num: u32,
pub sar_den: u32,
pub frame_rate_num: u32,
pub frame_rate_den: u32,
}
#[derive(Clone, PartialEq, Eq, Hash, Debug)]
| ise-uiuc/Magicoder-OSS-Instruct-75K |
onClientDown?: RedisClientDownHandler;
onError?: RedisErrorHandler;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
save_dir = save_dir
bag_fp_list = glob(osp.join(wsi_patch_info_dir, '*.txt'))
for bag_fp in bag_fp_list:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Remove items from this set that are present in set B
* @param setB
| ise-uiuc/Magicoder-OSS-Instruct-75K |
log_info = np.append([0], log_info)
min_length = min(min_length, len(log_info))
log_infos.append(log_info)
log_infos = [log_info[:min_length] for log_info in log_infos]
data = np.array(log_infos)
curve = np.mean(data, axis=0)
std = np.std(data, axis=0)
max_curve = np.amax(data, axis=0)
return curve, (curve - std), (curve + std), max_curve
| ise-uiuc/Magicoder-OSS-Instruct-75K |
np.random.shuffle(idx)
image_data = image_data[idx]
labels = labels[idx] | ise-uiuc/Magicoder-OSS-Instruct-75K |
Let's eat!
''')
action_input = ''
while action_input != 'q':
print("Which do you want to consume?")
available_actions, available_hotkeys = self.show_available_actions(self.food_list(self.inventory))
if len(available_actions) < 1:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
class TransactionCreator(object):
@abstractmethod
def estimate_cost_for_certificate_batch(self, tx_cost_constants, num_inputs=ESTIMATE_NUM_INPUTS):
pass
@abstractmethod
def create_transaction(self, tx_cost_constants, issuing_address, inputs, op_return_value):
pass
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>joshpetit/biblehub
class COLORS:
header = "\033[4m"
red = "\033[31m"
green = "\033[32m"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if model_description.fmiVersion != '2.0':
raise Exception("%s is not an FMI 2.0 FMU." % filename)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
reg.unregister();
assertEquals(Listener.BIND_CALLS, 1);
assertEquals(Listener.UNBIND_CALLS, 2);
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let clientSocket = UdpSocket::bind(format!("127.0.0.1:{}", clientPort)).unwrap();
let serverSocket = UdpSocket::bind(format!("127.0.0.1:{}", serverPort)).unwrap();
println!("Socket Bind Success!");
println!("<-- Ready to serve -->");
// stimulate the internal queue of the router
let mut internalQueue : collections::VecDeque<Vec<u8>> = collections::VecDeque::new();
let mut recvBuf1 = [0; assumePackageSize];
let mut recvBuf2 = [0; assumePackageSize];
let mut recvBuf3 = [0; assumePackageSize];
let mut recvBuf4 = [0; assumePackageSize];
let udpProtocol = i32::from_le_bytes([1,0,0,0]);
let tcpProtocol = i32::from_le_bytes([1,1,0,0]);
// p2pPort only accept the packet with udp
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name="openml",
author="<NAME>, <NAME>, <NAME>, <NAME>, "
"<NAME>, <NAME>, <NAME>, <NAME> "
"and <NAME>",
author_email="<EMAIL>",
maintainer="<NAME>",
maintainer_email="<EMAIL>",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
email: user.email,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
arr = list(S)
while i<j:
if not arr[i].isalpha():
i += 1
elif not arr[j].isalpha():
| ise-uiuc/Magicoder-OSS-Instruct-75K |
$validator->validateDataTypes($this->header);
$validator->validateLengths($this->control);
$validator->validateDataTypes($this->control);
return true;
}
/**
* Add a batch to the file.
*
* @param Batch $batch
*/
public function addBatch(Batch $batch)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# no code pathway to it. But it is part of the C API, so must not be
# excised from the code.
[ r".*/multiarray/mapping\.", "PyArray_MapIterReset" ],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
time.sleep(60) | ise-uiuc/Magicoder-OSS-Instruct-75K |
])
let logoutSection = SettingsViewSection.logout([
.logout(SettingItemCellReactor(text: "logout".localized, detailText: nil))
])
let sections = [aboutSection] + [logoutSection]
self.initialState = State(sections: sections)
_ = self.state
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.