seed
stringlengths
1
14k
source
stringclasses
2 values
api = UserDto.api _user = UserDto.user @api.route('/users') class Users(Resource): """ User resource for the API """ @api.doc('Create a new user')
ise-uiuc/Magicoder-OSS-Instruct-75K
mmi: component: mmi1x2 bend: component: bend_s
ise-uiuc/Magicoder-OSS-Instruct-75K
('cripto', '0002_self_partial'), ] operations = [ migrations.CreateModel( name='Miner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('public_key', models.IntegerField(default=7919)), ('df_key', models.IntegerField(blank=True, null=True)), ('partial', models.IntegerField(blank=True, null=True)), ],
ise-uiuc/Magicoder-OSS-Instruct-75K
* @var array */ protected $fillable = [ 'counttype_nome', ]; }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.builder.build() self.builder.push(sanity_check=False) self.builder.repo.line_increase_limit = 0 # No increase allowed self.builder.repo.line_decrease_limit = 1 DynamicInterface.objects.get(mac='aa:bb:cc:dd:ee:ff').delete() self.builder.build() self.assertRaises( SanityCheckFailure, self.builder.push, sanity_check=True) self.builder.repo.line_decrease_limit = 100 self.builder.build() self.builder.push(sanity_check=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
matrix[i][j] = False return matrix[len(s)][len(p)]
ise-uiuc/Magicoder-OSS-Instruct-75K
def array2bytes(arr): img = Image.fromarray(arr) byte_io = BytesIO() img.save(byte_io, 'JPEG') im_data = byte_io.getvalue() return 'data:image/jpeg;base64,' + b64encode(im_data).decode() class getSuggestions(Task): _img_emb = None def __init__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
OUTPUT_PARENT_DIR=$SCRATCH_DIR/$(sed "s|$ARCHIVE_DIR||g"<<<"$INPUT_PARENT_DIR") # making sure parent folders exist, else creates them mkdir -p $OUTPUT_PARENT_DIR for i in "${@:2}"; do echo $i if [[ "$KEEP_OR_DELETE" = delete ]]; then rsync --remove-source-files -ah --info=progress2 $INPUT_PARENT_DIR/$i $OUTPUT_PARENT_DIR else rsync -ah --info=progress2 $INPUT_PARENT_DIR/$i $OUTPUT_PARENT_DIR fi done
ise-uiuc/Magicoder-OSS-Instruct-75K
$container->add(ArticleTransformer::class); $container->add(CommentTransformer::class); $container->add(FollowTransformer::class); $container->add(ImageTransformer::class); $container->add(NotificationTransformer::class); $container->add(QuestionTransformer::class); $container->add(ReportTransformer::class); $container->add(ReportReasonTransformer::class); $container->add(TopicTransformer::class); $container->add(UserTransformer::class); $container->add(VoteTransformer::class); // 验证器类 $container->add(AnswerValidator::class); $container->add(ArticleValidator::class);
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': run_algo.main()
ise-uiuc/Magicoder-OSS-Instruct-75K
import traceback import logging from datetime import datetime import numpy as np
ise-uiuc/Magicoder-OSS-Instruct-75K
# FOREIGN KEYS COLUMNS reviewed_course_id = db.Column(db.Integer, db.ForeignKey('course.id'), nullable=False) # RELATIONSHIPS reviewed_course = db.relationship( 'Course', back_populates='reviews', lazy=True ) # INHERITANCE
ise-uiuc/Magicoder-OSS-Instruct-75K
const strk: (a?: undefined) => HTMLElement; const samp: (a?: undefined) => HTMLElement; const small: (a?: undefined) => HTMLElement; const span: (a?: undefined) => HTMLElement; const strong: (a?: undefined) => HTMLElement;
ise-uiuc/Magicoder-OSS-Instruct-75K
finally: GPIO.cleanup()
ise-uiuc/Magicoder-OSS-Instruct-75K
def sanitize_email(value): return fake.email() def sanitize_email_if_exist(value): if value: return sanitize_email(value)
ise-uiuc/Magicoder-OSS-Instruct-75K
fill = '#fff' outline = '#000' size = 88 for i in range(8): for j in range(8): x1, y1, x2, y2 = i * size, j * size, i * size + size, j * size + size canvas.create_rectangle(x1, y1, x2, y2, fill=fill, outline=outline)
ise-uiuc/Magicoder-OSS-Instruct-75K
class FrameBorderPatch(ProjectedGradientDescent): """ Apply Masked PGD to video inputs, where only the video frame is allowed to be perturbed. Each video is assumed to have shape (NFHWC). """ def __init__(self, estimator, **kwargs): super().__init__(estimator=estimator, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
Expr::CollM(cm) => match cm { CollM::Fold { .. } => FoldSerializer::sigma_serialize(expr, w), },
ise-uiuc/Magicoder-OSS-Instruct-75K
{{ $errors->first('sendmail') }} </span> @endif </div> <div class="form-group{{ $errors->has('notify') ? ' has-error' : '' }}"> <label class="col-md-4 col-xs-4 align-top"><b>Notification</b></label> <span class="col-md-5"> <label class="radio-inline"> <input type="radio" name="notify" value="1" {{ Auth::user()->setting()->get()->first()->notify ? 'checked' : '' }}>On </label> <label class="radio-inline" style="padding-left: 20px">
ise-uiuc/Magicoder-OSS-Instruct-75K
// walk all the child nodes for( unsigned i=0; i<HW->GetNumChild(); i++ ){ CoreGenNode *CNode = HW->GetChild(i); // check for collisions if( CNode->GetType() == CGComm ){ if( IdxMap.find(CNode) == IdxMap.end() ){
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(sys.argv[1], 'wb') as next_file: next_file.write(decrypted)
ise-uiuc/Magicoder-OSS-Instruct-75K
func i<T { { } enum A { struct e { } { } var b = e( ) { } func e(b
ise-uiuc/Magicoder-OSS-Instruct-75K
aws lambda update-function-code \ --function-name GOLBoardImageGenerator \ --zip-file fileb://./target/BoardImageGenerator-0.0.1-SNAPSHOT.jar \ --publish \ --profile gameoflife
ise-uiuc/Magicoder-OSS-Instruct-75K
title="Fake Title", creation_date=datetime.now(),
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public function resolve(FilterableInterface $repository, Request $request): array { $filters = []; foreach ($repository->getAvailableFilters() as $filter) { if ($request->query->has($filter)) { $filters[$filter] = $request->query->get($filter); } } return $filters; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
<form action ="buy.php" method="post"> <fieldset> <div class="form-group"> <input autofocus class="form-control" name="symbol" placeholder="BBRY" type="text" /> </div> <div class="form-group"> <input autofocus class="form-control" name="quantity" placeholder="50" type="text" /> </div> <div class="form-group">
ise-uiuc/Magicoder-OSS-Instruct-75K
public volatile static String CURRENT_MUSIC_ID; /** 播放状态,默认停止状态 */ public static int playState = IMusicConst.OPTION_STOP; /** 播放模式,默认列表循环 */ public static int playMode = IMusicConst.CIRCLE; }
ise-uiuc/Magicoder-OSS-Instruct-75K
import lombok.extern.slf4j.Slf4j; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.springframework.stereotype.Component;
ise-uiuc/Magicoder-OSS-Instruct-75K
common_defaults = "../../../common/defaults/main.yml name=common_defaults"
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace User.API.UnitTests { public class PatientRegistrationTests { [Fact] public void Sends_notification_when_creating_patient()
ise-uiuc/Magicoder-OSS-Instruct-75K
if (static::$is_initialized == true) { return; }
ise-uiuc/Magicoder-OSS-Instruct-75K
if boxes[i-1]=="1": lc+=1 lcost += lc ans[i] = lcost for i in range(len(boxes)-2,-1,-1): if boxes[i+1]=="1": rc+=1 rcost += rc ans[i] += rcost return ans
ise-uiuc/Magicoder-OSS-Instruct-75K
} catch (Exception e) { log.error("getNeedToSendMailList fail. The exception is {}", e.getMessage()); } finally { if (sqlSession != null) { sqlSession.close(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
S4 Ś
ise-uiuc/Magicoder-OSS-Instruct-75K
import { prop, getModelForClass, modelOptions } from '@typegoose/typegoose'; import { TimeStamps } from '@typegoose/typegoose/lib/defaultClasses'; class ImageModel { @prop({})
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>clong-msec/vs-shell-format export const config = { shfmtVersion: 'v3.2.4', needCheckInstall: true, };
ise-uiuc/Magicoder-OSS-Instruct-75K
logger.log({ level: 'error', ...err }); return res.status(REQUEST_TIMEOUT).send(defaultErrorMessage); }
ise-uiuc/Magicoder-OSS-Instruct-75K
}; private static readonly byte[] ChmAcSymbols = { 0x00, 0x01, 0x02, 0x03, 0x11, 0x04, 0x05, 0x21, 0x31, 0x06, 0x12, 0x41, 0x51, 0x07, 0x61, 0x71, 0x13, 0x22, 0x32, 0x81, 0x08, 0x14, 0x42, 0x91, 0xa1, 0xb1, 0xc1, 0x09, 0x23, 0x33, 0x52, 0xf0, 0x15, 0x62, 0x72, 0xd1, 0x0a, 0x16, 0x24, 0x34, 0xe1, 0x25, 0xf1, 0x17, 0x18, 0x19, 0x1a, 0x26, 0x27, 0x28, 0x29, 0x2a, 0x35, 0x36, 0x37, 0x38, 0x39, 0x3a, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
ise-uiuc/Magicoder-OSS-Instruct-75K
"cflags": [ "-m64" ], "ldflags": [ "-m64" ], "xcode_settings": { "OTHER_CFLAGS": ["-ObjC++"], "ARCHS": [ "x86_64" ] }, "link_settings": { "libraries": [ "/Library/Frameworks/edk.framework/edk" ],
ise-uiuc/Magicoder-OSS-Instruct-75K
return HVAC_MODE_FAN_ONLY async def async_set_hvac_mode(self, hvac_mode): """Set new operation mode.""" if hvac_mode not in HA_STATE_TO_AT: raise ValueError(f"Unsupported HVAC mode: {hvac_mode}") if hvac_mode == HVAC_MODE_OFF: return await self.async_turn_off() if self.hvac_mode == HVAC_MODE_OFF: await self.async_turn_on() self._unit = self._airtouch.GetGroups()[self._group_number] _LOGGER.debug( "Setting operation mode of %s to %s", self._group_number, hvac_mode )
ise-uiuc/Magicoder-OSS-Instruct-75K
# delimiter = " ||| " @app.route('/') def index1(): return render_template('index.html', title='Home')
ise-uiuc/Magicoder-OSS-Instruct-75K
pub unique: bool, pub indexed: bool, } // get_column_def is used to convert between the sea_orm Column and the sea_query ColumnDef. pub(crate) fn get_column_def<T: EntityTrait>(column: T::Column) -> ColumnDef { let column_def_prelude: CustomColumnDef = unsafe { std::mem::transmute(column.def()) }; // Note: This is used to access private fields and hence relies on internal implementation details of sea_query and unsafe code which is not good! let mut column_def = ColumnDef::new_with_type(column, column_def_prelude.col_type.clone().into()); if !column_def_prelude.null { column_def.not_null();
ise-uiuc/Magicoder-OSS-Instruct-75K
""" num,res=self.getVector(string) num=categoryEmbed(np.array([num])).array.reshape(-1) res=np.full(CF.VALUE_DIM, res).reshape(-1) return np.concatenate([num,res]) def plot(self): x=[float(i) for i in self.inputVList] plt.hist(x) #category encoder. this no longer necessary as long as bert encoder is used
ise-uiuc/Magicoder-OSS-Instruct-75K
# setupUi
ise-uiuc/Magicoder-OSS-Instruct-75K
} public virtual bool Vertical { get { return vertical; } set {
ise-uiuc/Magicoder-OSS-Instruct-75K
""" cli core template package. """
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Test API ViewSet""" serializer_class = serializers.HelloSerializer def list(self, request): """Return a hello message."""
ise-uiuc/Magicoder-OSS-Instruct-75K
} else{ print $0,"sox -t wav - -r 8000 -e signed-integer -b 16 -t raw - | sox -r 8000 -e signed-integer -b 16 -t raw - -r 16000 -t wav - |"; } }' $input_path/wav.scp > $output_path/wav.scp utils/utt2spk_to_spk2utt.pl $output_path/utt2spk > $output_path/spk2utt utils/fix_data_dir.sh $output_path utils/validate_data_dir.sh --no-text --no-feats $output_path
ise-uiuc/Magicoder-OSS-Instruct-75K
layout.itemSize = CGSize(width: kMainScreenW * 0.5 - 20, height: 30) } categoryLabel.text = exploreMainModel.group_name collectionView.reloadData() } } @IBOutlet weak var lineView: UIView! @IBOutlet weak var categoryLabel: UILabel!{
ise-uiuc/Magicoder-OSS-Instruct-75K
def I(d,i,v):d[i]=d.setdefault(i,0)+v L=open("inputday14").readlines();t,d,p=L[0],dict([l.strip().split(' -> ')for l in L[2:]]),{};[I(p,t[i:i+2],1)for i in range(len(t)-2)] def E(P):o=dict(P);[(I(P,p,-o[p]),I(P,p[0]+n,o[p]),I(P,n+p[1],o[p]))for p,n in d.items()if p in o.keys()];return P def C(P):e={};[I(e,c,v)for p,v in P.items()for c in p];return{x:-int(e[x]/2//-1)for x in e} print((r:=[max(e:=C(E(p)).values())-min(e)for i in range(40)])[9],r[-1])
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>constants.py<gh_stars>1-10 for name in 'channel pitch time duration velocity'.split(): globals()[name.upper()] = name
ise-uiuc/Magicoder-OSS-Instruct-75K
} } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
Cell::new("name") .with_style(Attr::Bold) .with_style(Attr::ForegroundColor(color::GREEN)), Cell::new("type") .with_style(Attr::Bold) .with_style(Attr::ForegroundColor(color::GREEN)), ])); for row in rows { table.add_row(OtherRow::new(vec![ Cell::new(row.get(0)), Cell::new(readable_type(row.get(1))),
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.facebook.drawee.backends.pipeline.Fresco; /** * @author * @date */ public class MyApp extends Application { private Context context; @Override public void onCreate() {
ise-uiuc/Magicoder-OSS-Instruct-75K
def multifilter(filters, result): """ Applies multiple filters to `result` . Returns:
ise-uiuc/Magicoder-OSS-Instruct-75K
public static IPropertySymbol[] AsPropertyArray(this AnalysedDeclaration declaration) { switch (declaration) { case PropertyDeclaration pd: return new IPropertySymbol[] { pd.Property }; default: return Array.Empty<IPropertySymbol>(); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} uint64_t part_two(const std::vector<int> &inputs)
ise-uiuc/Magicoder-OSS-Instruct-75K
w = Canvas(f1, width=int(root.winfo_screenwidth()*scale), height=int(root.winfo_screenheight()*scale)) w.pack() img = Image.open("map.png") ratio = min(int(w.cget("width"))/img.size[0], int(w.cget("height"))/img.size[1]) size = int(img.size[0]*ratio), int(img.size[1]*ratio) self.img_h = size[1] img = img.resize(size, Image.ANTIALIAS) img2 = ImageTk.PhotoImage(img) w.create_image(img.size[0]/2, img.size[1]/2, image=img2) v1 = StringVar() v2 = StringVar()
ise-uiuc/Magicoder-OSS-Instruct-75K
**kwargs) return model
ise-uiuc/Magicoder-OSS-Instruct-75K
# fastspeech2/mb_melgan can't use trt now! if sess_conf["use_trt"]: providers = ['TensorrtExecutionProvider'] else: providers = ['CUDAExecutionProvider']
ise-uiuc/Magicoder-OSS-Instruct-75K
# 中心裁剪 w, h = image.size x1 = int(round((w - crop_size) / 2.)) y1 = int(round((h - crop_size) / 2.)) image = image.crop((x1, y1, x1 + crop_size, y1 + crop_size)) label = label.crop((x1, y1, x1 + crop_size, y1 + crop_size)) return image, label def eval(self, image):
ise-uiuc/Magicoder-OSS-Instruct-75K
self._write_progress('.')
ise-uiuc/Magicoder-OSS-Instruct-75K
// We need to move to the assigned destination if ( Game.rooms[destinationRoomName] && Game.rooms[destinationRoomName].lookForAt( LOOK_CREEPS, creep.memory.destination.x, creep.memory.destination.y ).length > 0 ) { console.log(
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ class VeiculosServicoPagamento extends \yii\db\ActiveRecord { /** * @inheritdoc
ise-uiuc/Magicoder-OSS-Instruct-75K
Heterogeneous Data, Antelmi, Luigi, PMLR 2019,
ise-uiuc/Magicoder-OSS-Instruct-75K
# ? Enabling & Starting MYSQL systemctl enable mysqld systemctl start mysqld # ! Return Temporary MYSQL Password sudo grep '<PASSWORD>' /var/log/mysqld.log echo "$(tput setaf 2)Please use mysql_secure_installation Command to configure mysql$(tput setaf 7)"
ise-uiuc/Magicoder-OSS-Instruct-75K
/** Creates a new instance of MethodType */ public ClassTypeCMethodImpl(ClassTypeManagerImpl classTypeMgr) { super(classTypeMgr); } public static void registerClassTypeCMethod(ClassTypeManagerImpl mgr) { ClassTypeCMethodImpl classType = new ClassTypeCMethodImpl(mgr); classType.registerClassType();
ise-uiuc/Magicoder-OSS-Instruct-75K
# Vectorize using TfIdf or CountVectorizer print('Vectorizing features with Tfidf...') # vectorizer = TfidfVectorizer(sublinear_tf=True, use_idf=True, max_df=0.5, min_df=0.00, stop_words='english') print('Vectorizing features with CountVectorizer...') # Performs better vectorizer = CountVectorizer(ngram_range=(1,3), stop_words='english')
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.mark.django_db def test_subscribe_create(): subscribe = Subscribe.objects.create(
ise-uiuc/Magicoder-OSS-Instruct-75K
assertEquals(shape[2], col); } @Ignore // Use when confirming data is getting stored @Test public void testProcessCifar() { int row = 32; int col = 32; int channels = 3; CifarLoader cifar = new CifarLoader(row, col, channels, null, true, true, false);
ise-uiuc/Magicoder-OSS-Instruct-75K
dict(type='Resize', size=(256, -1)),
ise-uiuc/Magicoder-OSS-Instruct-75K
self.msg = msg def __str__(self): return self.msg class CircularConfigSetDependencyError(BuildError): """ Exception signifying circular dependency in configSets
ise-uiuc/Magicoder-OSS-Instruct-75K
} /** * Filter by keyword * @param Filter\FilterText $filter * @return void */ public function applyFilterText(Filter\FilterText $filter) { $exprs = []; foreach ($filter->getCondition() as $column => $value) { if($filter->isExactSearch()) { $exprs[] = Criteria::expr()->eq($column, $value);
ise-uiuc/Magicoder-OSS-Instruct-75K
cd /net/bcoin/explorer git pull cd platform ./stop_prod cd /net/bcoin/explorer/migrations bmig migrate cd /net/bcoin/explorer npm install ./start_prod
ise-uiuc/Magicoder-OSS-Instruct-75K
<thead> <tr>
ise-uiuc/Magicoder-OSS-Instruct-75K
def update_status_time(self): self.last_status_time = time.time() def is_connected(self) -> bool: """ Checks whether the Basestation has sent a heartbeat message recently """ time_diff = time.time() - self.last_status_time # print(f"Time diff {time_diff}") return time_diff < BS_Repr.TIMEOUT_LIMIT
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 <?php return[ 'contactus'=>'Contactez nous', 'name_form'=>'votre nom',
ise-uiuc/Magicoder-OSS-Instruct-75K
vhdlan -xlrm "//comix.rennes.supelec.fr/promo2019/baron_pau/Documents/AA_PROJET_FPGA/pll_test_sim/pll_test.vho"
ise-uiuc/Magicoder-OSS-Instruct-75K
various jobs defined in the soak yaml This test will run for the time specififed in
ise-uiuc/Magicoder-OSS-Instruct-75K
tree_type = get_dis_input['tree_type'] note = get_dis_input['note'] s_start_time = start_time s_start_time = s_start_time - timedelta(hours = 8) end_time = end_time - timedelta(hours = 8) curr_count = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
from pprint import pprint from cfg.core import ContextFreeGrammar, Terminal, Nonterminal, Marker from cfg.table import END_MARKER, ParseTableNormalForm class GrammarTestCase(object): '''Contains a CFG and optionally a parse table.''' def __init__(self, sections, filename):
ise-uiuc/Magicoder-OSS-Instruct-75K
genes[locusTag]['name'] = name elif f.type in ['tRNA', 'rRNA', 'ncRNA', 'misc_RNA']: feature_seq = f.extract(record.seq) try: name = f.qualifiers['gene'][0] except KeyError: pass try: Product = f.qualifiers['product'][0] if Product == 'tRNA-OTHER': Product = 'tRNA-Xxx' except KeyError: Product = None exonTuples = [] if num_parts < 2: # only single exon
ise-uiuc/Magicoder-OSS-Instruct-75K
) kt_jvm_library = _kt_jvm_library kt_jvm_binary = _kt_jvm_binary
ise-uiuc/Magicoder-OSS-Instruct-75K
for item in scores_1: if item in scores_2: scores_1[item] = "{:.2f}".format((float(scores_1[item]) + float(scores_2[item])) / 2) else: scores_1[item] = "{:.2f}".format(float(scores_1[item]) / 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
class Version(models.Model): tag = models.CharField('Tag', max_length=50, unique=True) class Meta: verbose_name = _('tag') verbose_name_plural = _('tags') class Release(models.Model):
ise-uiuc/Magicoder-OSS-Instruct-75K
if (error != kSuccess) return error; return kSuccess; } } // namespace Linux
ise-uiuc/Magicoder-OSS-Instruct-75K
let liked = dataSource.likedTweets.contains(tweet) let retweeted = dataSource.retweetedTweets.contains(tweet) let model = TweetCellModel(tweet: tweet, retweeted: retweeted, liked: liked) model.didTapLike = { if wself?.dataSource.currentUser == nil { wself?.showConfirmationAlert("Please Login", message: "Cannot like a tweet without logging in!", handler: { wself?.presentingViewController?.dismissViewControllerAnimated(true, completion: nil) }) } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
} else if x < 0 { world_x -= 1; x += dimensions; } if y >= dimensions { world_y += 1; y -= dimensions; } else if y < 0 { world_y -= 1; y += dimensions;
ise-uiuc/Magicoder-OSS-Instruct-75K
if not isinstance(protein_node, Protein): continue
ise-uiuc/Magicoder-OSS-Instruct-75K
bucket.delete_bucket() print 'delete bucket %s successfully' % bucket_name
ise-uiuc/Magicoder-OSS-Instruct-75K
var allHTTPHeaderFields: [String: String] = [String: String]() var cachePolicy: URLRequest.CachePolicy { return URLRequest.CachePolicy.useProtocolCachePolicy } var timeoutInterval: TimeInterval { return 20.0 } init(configuration: Configuration = .default) {
ise-uiuc/Magicoder-OSS-Instruct-75K
from rectbutton import RectButton from serial_connection import SerialConnection UPDATE_MS = 20 DISPLAY_MS = 125
ise-uiuc/Magicoder-OSS-Instruct-75K
.take(cmp::min(recommendations.len(), self.length)) .collect_vec(); let next_item = next_items[0]; let index = top_recos.iter().position(|&item_id| item_id == &next_item);
ise-uiuc/Magicoder-OSS-Instruct-75K
rmtree(temp_out_dir)
ise-uiuc/Magicoder-OSS-Instruct-75K
return bitArray;
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": import sys app = QtWidgets.QApplication(sys.argv) Form = QtWidgets.QWidget() ui = Ui_Form() ui.setupUi(Form) Form.show() sys.exit(app.exec_())
ise-uiuc/Magicoder-OSS-Instruct-75K
""" log_base_dir = "/consumers/logs" log_dir = os.path.join(log_base_dir, data_source) log_filename = f'{data_source}_ingestion.log' log_complete_path = os.path.join(log_dir, log_filename) logger = logging.getLogger(f'ingestion_logger_{data_source}') # Cut log file when it reaches 1MB in size, keep 2 Backups log_handler = handlers.RotatingFileHandler(log_complete_path, maxBytes=1000000, backupCount=2) log_handler.setLevel(logging.INFO) formatter = logging.Formatter(fmt='%(asctime)s | LEVEL: %(levelname)s | %(message)s', datefmt='%Y-%m-%d,%H:%M:%S')
ise-uiuc/Magicoder-OSS-Instruct-75K
// Allowable responses. allowableResponses = "1234"; questionnaireName = "BIS BAS"; state = START; } // Destructor. BASModule::~BASModule() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
return False def forGeneralAudiences():
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>hidayattullah432/hidayattullah432.github.io <img src="{{asset('img/logo2.png')}}" alt="logo" style="width: 40px; height: 50px;">
ise-uiuc/Magicoder-OSS-Instruct-75K