seed
stringlengths
1
14k
source
stringclasses
2 values
@property def SerialNumber(self): return self.get_wmi_attribute("SerialNumber") def __repr__(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
/// </remarks> protected virtual IReadableSegment? GetCodeManagerTable() => null; /// <summary> /// Obtains the data directory containing the export address table of the .NET binary. /// </summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
* @return \Illuminate\Http\Response */ public function update(Request $request, $id) { $invent = Inventario::find($id); $invent->fecha = $request->input('fecha'); $invent->hora = $request->input('hora'); $invent->comentario = $request->input('comentario'); $invent->save();
ise-uiuc/Magicoder-OSS-Instruct-75K
plt.title('Field evolution') plt.savefig('Field_evolution.png') plt.close() # Perform an SVD data_array = data_array[:,1:-1] print('Performing SVD') u,s,v = np.linalg.svd(data_array,full_matrices=False)
ise-uiuc/Magicoder-OSS-Instruct-75K
}} ", $glsl_ty, $glsl_value), None); match program { Ok(p) => p,
ise-uiuc/Magicoder-OSS-Instruct-75K
93 => (), // generation settings count; we just read as many as we're given 330 => { ss.source_object_handles.push(pair.as_handle()?); } 331 => { ss.destination_object_handle = pair.as_handle()?; } _ => { // unexpected end; put the pair back and return what we have iter.put_back(Ok(pair)); return Ok(Some(ss)); } } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.alibaba.fastjson.JSONObject;
ise-uiuc/Magicoder-OSS-Instruct-75K
assert sys.version_info >= (3, 6), 'This module requires Python 3.6+' def main(_argv): print(' '.join(constants.CHROOT_ENVIRONMENT_WHITELIST))
ise-uiuc/Magicoder-OSS-Instruct-75K
import com.poker.model.Ranks; import java.util.Map; public class OnePair implements RankingRule { public static final String RANK_NAME = "One Pair"; private String additionInformation = null; @Override public void applyRankRule(Hand hand) { Map<Ranks, Long> counted = RankingUtil.countGroupByRank(hand); Map<Ranks, Long> pairs = RankingUtil.pairByRank(counted); if (!hand.isRanked() && pairs.size() == 1) { hand.setRanked(this); additionInformation = getPairedRank(pairs);
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.conf.urls import url from django.urls import path from django.views.generic import TemplateView
ise-uiuc/Magicoder-OSS-Instruct-75K
:rtype: model object """ return self.__model @property def accuracy(self) -> float: """accuracy on test set once the model has been fit :return: test set accuracy :rtype: float or None """ return self.__accuracy
ise-uiuc/Magicoder-OSS-Instruct-75K
// in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in
ise-uiuc/Magicoder-OSS-Instruct-75K
/* * Upon successful return from this method, both the cross process lock and * its intra-process lock are acquired. */ PRStatus ProcessLock::acquire(Sleeper& sleeper) { #ifdef XP_UNIX PRStatus status = PR_FAILURE; if (lock_ != NULL && lockFD_ != -1)
ise-uiuc/Magicoder-OSS-Instruct-75K
f1 = open(dist_fname, 'w', encoding='utf8') data = pd.read_csv(inpath) data.columns = ['text', 'tag_sentiment_list'] # preprocess for emoji data['text'] = data['text'].map(lambda x: filter_emoji(x, restr='xx')) # 只保留review的长度小于600的 data = data[data['text'].str.len() <= 600] # train test split
ise-uiuc/Magicoder-OSS-Instruct-75K
def rotate(deg, speed): # Rotates by using both wheels equally. if deg < 0: speed = -speed deg = -deg angle = deg / 360.0 circ = pi * WHEEL_DISTANCE inches = angle * circ print circ print inches ticks = int(INCHES_TO_TICKS * inches) _clear_ticks() _drive(-speed, speed) while _right_ticks() <= ticks: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
setup( name='django-nested-admin', version=version, install_requires=[ 'python-monkey-business>=1.0.0', 'six', ], description="Django admin classes that allow for nested inlines", author='<NAME>', author_email='<EMAIL>', url='https://github.com/theatlantic/django-nested-admin',
ise-uiuc/Magicoder-OSS-Instruct-75K
if( tester3.GetError() )
ise-uiuc/Magicoder-OSS-Instruct-75K
p = pstats.Stats(filepath) os.remove(filepath) p.strip_dirs() p.sort_stats(sort_by) if print_here: print(surround_with_header('Profile for "{}"'.format(command), width=100, char='=')) p.print_stats(max_len) print('='*100) return p
ise-uiuc/Magicoder-OSS-Instruct-75K
for (name, func) in funcs.items(): info = functionInfo(name, func) if group is not None and group != info['group']: continue if grouped: if info['group'] not in result: result[info['group']] = {} result[info['group']][name] = info else: result[name] = info
ise-uiuc/Magicoder-OSS-Instruct-75K
if (isset($indexed[$c])) { unset($indexed[$c]); } else { Indexed::build([ 'classname' => $c, ])->save(); } } } } foreach ($indexed as $i) {
ise-uiuc/Magicoder-OSS-Instruct-75K
total_buffer_written += bytes_sent; let mut data = [0u8; 1024]; let data_read = stream.read(&mut data).await.unwrap(); println!(">> Server Response(sent = {:?}) => {:?} ", total_buffer_written, String::from_utf8(data[0..data_read].to_vec()).unwrap()); println!("wrote to stream; success={:?} left to send, {:?} stream.send_buffer_size().unwrap() = {:?}",n, bytes_written, stream.send_buffer_size().unwrap()); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import { IBooleanData, IDrawerData } from '../../../../models/database/BuildTypesModels'; import { InfoTypography, StyledForm } from '../SimpleType/SimpleForm'; interface IProps { drawerData: IDrawerData; readOnly: boolean; onSubmit: (booleanData: { //todo add IBooleanData default: boolean; select: boolean; unique: boolean; name: string; placeholderFalse: string;
ise-uiuc/Magicoder-OSS-Instruct-75K
#endif { char* cur_dir = getcwd(nullptr, 0); s = cur_dir; free(cur_dir); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Write a python script that can be used to convert a pdf into an audiobook ''' import pyttsx3,PyPDF2 pdfreader = PyPDF2.pdfFileReader(open('file.pdf','rb')) speaker = pyttsx3.init() for page_num in range(pdfreader.numPages): text = pdfreader.getPage(page_num).extractText() speaker.say(text) speaker.runAndWait() speaker.stop()
ise-uiuc/Magicoder-OSS-Instruct-75K
source $(pwd)/ssh_scan.sh; source $(pwd)/ssh_scanner.conf;
ise-uiuc/Magicoder-OSS-Instruct-75K
ls ../../execute/main_mpi.x mv global.map global.map.orig mv output000000.map output000000.map.orig if [ -f restart.xyz ]; then mv restart.xyz restart.xyz.orig fi done
ise-uiuc/Magicoder-OSS-Instruct-75K
if(file_exists($files)){ return $upfolder.basename($files); } else { return 'Файла нет!'; } } private function uploadHelper($file, $uploaddir){
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>samples/tutorial/05_getting_results/hello_output.py from caravan import Server,Task with Server.start():
ise-uiuc/Magicoder-OSS-Instruct-75K
logging.basicConfig(format='%(asctime)s | %(levelname)s: %(message)s', level=logging.DEBUG) path = sys.argv[1] def getDirsAndFiles(path): entries = os.listdir(path)
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Clone, PartialEq, Eq, Debug)] pub struct Error { pub msg: String, pub line: u64, pub col: u64, } impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "{}:{}: {}: {} ", self.line, self.col, "error".red(), self.msg) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
edad = input("[?] Ingrese su edad nuevamente. Solo numeros: ") while int(edad) <= 17: print("[!] Error, no se le puede inscribir si es menor de 17.") edad = input("[?] Ingrese su edad nuevamente: ") lista_paciente[2] = edad return lista_paciente def modificar_lista(dni): valor = modificar_paciente(dni) if valor == -1: print("[!] No se ha encontrado el DNI, volviendo a la pantalla anterior.")
ise-uiuc/Magicoder-OSS-Instruct-75K
{ postParams = new Hashtable(); string[] kvPair = null; foreach (string pdParam in pdParams) { kvPair = pdParam.Split('=');
ise-uiuc/Magicoder-OSS-Instruct-75K
import pickle import numpy as np
ise-uiuc/Magicoder-OSS-Instruct-75K
return $d; } finally { var_dump($d); } } var_dump(test()); ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
def color_for_letter(letter_color_code: str, default: str = "k"): if letter_color_code == "d": letter_color_code = default return CNAMES[letter_color_code.lower()] def parse(s): """Returns a FmtStr object from a bpython-formatted colored string""" rest = s stuff = []
ise-uiuc/Magicoder-OSS-Instruct-75K
using System.Collections.Generic; using System.Text; namespace SqlDumper
ise-uiuc/Magicoder-OSS-Instruct-75K
navigation.navigate('일정관리'); }} /> ), }}
ise-uiuc/Magicoder-OSS-Instruct-75K
public override DateTimeOffset? ReadJson(JsonReader reader, Type objectType, DateTimeOffset? existingValue, bool hasExistingValue, JsonSerializer serializer) { var value = reader.Value as string; if (string.IsNullOrWhiteSpace(value)) {
ise-uiuc/Magicoder-OSS-Instruct-75K
./sha.sh ./received/flightdata $NAME $CL $TIME rm -rf ./received/flightdata/* echo "Test done"
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>front02/src/typescript-angular-client-generated/typescript-angular-client/api/api.ts export * from './stock.service';
ise-uiuc/Magicoder-OSS-Instruct-75K
test_expect_code 1 git p4 submit ) && ( cd "$cli" && # make sure it is there test_path_is_file text+x && ! p4 fstat -T action text+x ) ' test_expect_success 'cleanup copy after submit fail' '
ise-uiuc/Magicoder-OSS-Instruct-75K
self.db.add(status) try: self.db.commit() except Exception,e: self.db.rollback() finally: self.db.remove()
ise-uiuc/Magicoder-OSS-Instruct-75K
args, varargs, varkw, defaults = getargspec(f) kwonlyargs = [] kwonlydefaults = None annotations = getattr(f, '__annotations__', {})
ise-uiuc/Magicoder-OSS-Instruct-75K
#delega para self.a return self.a.fazer_algo() def outro(self): #delegando novamente return self.a.outro() b = B() print(b.fazer_algo())
ise-uiuc/Magicoder-OSS-Instruct-75K
{ setTimeout(async () => { const message = logger.debug('test'); expect(message.type).to.equal('debug'); }, 1000); });
ise-uiuc/Magicoder-OSS-Instruct-75K
Function that processes the news result and transform them to a list of Objects Args: new_list: A list of dictionaries that contain news details Returns :
ise-uiuc/Magicoder-OSS-Instruct-75K
import pytest from jinja2schema import InvalidExpression from jinja2schema.core import infer from jinja2schema.model import Dictionary def test_items(): template = ''' {% macro selectinputdict(name, values, value=0, addemptyrow=false ,extrataginfo='') -%} <select name="{{ name }}" id="{{ name }}" {{ extrataginfo }}>
ise-uiuc/Magicoder-OSS-Instruct-75K
rr = release version update whenever a new stable release is made ddd = database version Bump database version for any database structure change! This doesn't necessarily mean incompatibility, we can upgrade. Coordinate these functions! create_database() update_schema_as_needed() read|write_#object#() bbb = build version change this whenever a new build with ANY code change occurs
ise-uiuc/Magicoder-OSS-Instruct-75K
)) { if ('forcedOffline' in partition) { partition.forcedOffline = event.offline; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
reset(buf + M, M); for (int i = 0, s = 0, ds = 2 * M / L; i < L; i++) { // y -> x^{2m/r} y cp(buf, a + i * M, M); rot(A.data() + i * M * 2, buf, 2 * M, s); cp(buf, b + i * M, M); rot(B.data() + i * M * 2, buf, 2 * M, s); s += ds; if (s >= 4 * M) s -= 4 * M; }
ise-uiuc/Magicoder-OSS-Instruct-75K
seed = - lgw_vol voxel_size = lgw_vol.header()["voxel_size"] def printbucket( bck, vol, value ): c = aims.RawConverter_BucketMap_VOID_rc_ptr_Volume_S16( False, True, value ) c.printToVolume( bck._get(), vol )
ise-uiuc/Magicoder-OSS-Instruct-75K
return None else: return req except Exception as e: self.logger.error("Error occurred while retrieving record by uuid with error msg: %s" % (str(e))) self.db.rollback() raise ServiceLayerError("Error occurred while retrieving record by uuid with error msg: %s" % (str(e)))
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration): dependencies = [ ('villages', '0007_village_camp'),
ise-uiuc/Magicoder-OSS-Instruct-75K
class Dupe(Dupe): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
""" Outbound rules for this security group * `action` (`str`) * `ip` (`str`) * `ip_range` (`str`) * `port` (`float`) * `portRange` (`str`) * `protocol` (`str`)
ise-uiuc/Magicoder-OSS-Instruct-75K
def authenticate(): '''Sends a 401 response that enables basic auth''' resp = flask.jsonify({"code": 401, "message": "You need to be authenticated"}) resp.headers['WWW-Authenticate'] = 'Basic realm="Login Required"' resp.status_code = 401 return resp @decorator def requires_auth(f: callable, *args, **kwargs): auth = flask.request.authorization if not auth or not check_auth(auth.username, auth.password): return authenticate() return f(*args, **kwargs)
ise-uiuc/Magicoder-OSS-Instruct-75K
version=1, # error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=1, border=0, ) qr_code.add_data(self.__text) qr_code.make(fit=True) qr_pil = qr_code.make_image(fill_color=self.__CODE_COLOR, back_color=(0, 0, 0)) qr_np = np.array(qr_pil) assert ( qr_np.shape <= self._screen.shape ), f"[{self.__class__.__name__}] QR code too large."
ise-uiuc/Magicoder-OSS-Instruct-75K
('repository', models.CharField(max_length=512)), ('docurl', models.CharField(max_length=512)), ('user', models.CharField(blank=True, max_length=32)), ('datetime', models.DateTimeField(blank=True, max_length=32, null=True)), ], options={
ise-uiuc/Magicoder-OSS-Instruct-75K
try: self.runner = self.runner_class(**vars(self.args)) break except NoSectionError as e: self.logger.error(e) continue except DMError as de: self.logger.error("DMError catched!!!") self.logger.error(sys.exc_info()[0]) self.logger.error(de) #add sleep to wait for adb recover time.sleep(5) continue tests = sg.generate() file_name, file_path = zip(*tests)
ise-uiuc/Magicoder-OSS-Instruct-75K
void VertexArray::AddBuffer(const VertexBuffer& buffer, const VertexBufferLayout& layout) {
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.springframework.data.jpa.repository.JpaRepository; public interface ProdutoRepository extends JpaRepository<Produto,Long> {
ise-uiuc/Magicoder-OSS-Instruct-75K
rate=24, ) self.assertEqual(ref.end_frame(), 148) # Frame step should not affect this ref.frame_step = 2 self.assertEqual(ref.end_frame(), 148) def test_frame_for_time(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
shadow_mask = np.zeros(image.shape[: 2], dtype=np.uint8) shadow_mask.fill(const.WHITE) ellipse = __get_multiple_ellipses(shadow_mask) return mask.apply_shadow_mask(image, blur_width, intensity, ellipse) def __get_multiple_ellipses(image): h, w = image.shape[ : 2] center = int(w * np.random.uniform()), int(h * np.random.uniform()) random_h = np.random.uniform() * h
ise-uiuc/Magicoder-OSS-Instruct-75K
/// pharmacist function. case finalchecker }
ise-uiuc/Magicoder-OSS-Instruct-75K
elif snapshot.has_key('LONGNEXTLR') and snapshot['LONGNEXTLR']: snapshot = snapshotRequest(snapshot['LONGNEXTLR']) elif snapshot.has_key('BR_NEXTLR') and snapshot['BR_NEXTLR']: snapshot = snapshotRequest(snapshot['BR_NEXTLR']) else: done = True return expanded rics = expandChainRIC("0#.FTSE") print(rics)
ise-uiuc/Magicoder-OSS-Instruct-75K
class ProjectGrouperAdmin(admin.ModelAdmin): pass @admin.register(ProjectContent) class ProjectContentAdmin(VersionedContentAdmin): pass @admin.register(ArtProjectContent) class ArtProjectContentAdmin(VersionedContentAdmin): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
if !FileManager.default.fileExists(atPath: folder) { try? FileManager.default.createDirectory(atPath: folder, withIntermediateDirectories: true, attributes: nil) }
ise-uiuc/Magicoder-OSS-Instruct-75K
fn default() -> Self { Self { max_generations: None, max_time: None, min_cv: None, target_proximity: None, heuristic: None, context: None, termination: None, strategy: None, heuristic_operators: None, heuristic_group: None, objective: None,
ise-uiuc/Magicoder-OSS-Instruct-75K
+ "\n".join(detail)) if max_current_block >= 0 and max_highest_block > 0: ssh.run(instance_dns, f"echo \"{max_current_block},{max_highest_block},{max_perc_block:.2f}%\"" f" > /home/ec2-user/geth_block_info.txt") if status.name.startswith("stopped"): logger.info(f"Exiting monitoring due to geth status {status}") break if avail_pct < interrupt_avail_pct: # TODO: review the need to interrupt on low disk pid = ssh.geth_sigint(instance_dns) logger.info("Disk free:\n" + ssh.df(instance_dns, human=True)) logger.info("Disk usage:\n" + ssh.du(instance_dns, human=True))
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Rotate buffer 270 degrees clockwise pub fn rotate270<C>(buffer: &PixelBuffer<C>) -> PixelBuffer<C> where C: Color { let mut result = vec![Default::default(); buffer.data().len()]; for x in 0..buffer.width() { for y in 0..buffer.height() { let x2 = y; let y2 = buffer.width() - x - 1; result[(x2 + y2 * buffer.height()) as usize] = buffer.data()[(x + y * buffer.width()) as usize]; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
</>
ise-uiuc/Magicoder-OSS-Instruct-75K
import _psutil_osx import _psposix from psutil.error import AccessDenied, NoSuchProcess # --- constants NUM_CPUS = _psutil_osx.get_num_cpus() TOTAL_PHYMEM = _psutil_osx.get_total_phymem() # --- functions def avail_phymem(): "Return the amount of physical memory available on the system, in bytes."
ise-uiuc/Magicoder-OSS-Instruct-75K
final class TraceContextCallableSingle<T> extends Single<T> implements Callable<T> { final SingleSource<T> source; final CurrentTraceContext currentTraceContext; final TraceContext assemblyContext;
ise-uiuc/Magicoder-OSS-Instruct-75K
class Meta: model = Mood fields = ['profile', 'characteristic', 'latitude', 'longitude', 'image', 'location'] read_only_fields = ['latitude', 'longitude']
ise-uiuc/Magicoder-OSS-Instruct-75K
h = hueSlider.getRating() or 0 s = satSlider.getRating() or 0
ise-uiuc/Magicoder-OSS-Instruct-75K
# First get the line equation from start to end points. # line equation follows the following pattern: y = m * x + b m = 0.0 b = 0.0 if abs(xe - xs) > PRECISION: m = (ye - ys) / (xe - xs) b = ys - m * xs else: m = 1 b = - xs
ise-uiuc/Magicoder-OSS-Instruct-75K
wcropy.max = original_shape[0] outbin.observe(update_xylim, ) # create tab views box_layout = Layout(display='flex', flex_flow='column', align_items='stretch', # border='dashed', width='50%',
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in lis: temp=folder+'/Images/train/'+i.strip() temp=os.listdir(temp) print(len(temp))
ise-uiuc/Magicoder-OSS-Instruct-75K
#region ############### CONSTRUCTOR ############### public ChangeFontCommand(Text _editor, EnumFont _font) : base(_editor) { Font = _font; } #endregion
ise-uiuc/Magicoder-OSS-Instruct-75K
await viewModel.OnMessage("Código no válido"); await viewModel.ModalNavigateGoBack(); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_default_row01(self): self.run_exe_test('test_default_row01') def test_default_row02(self): self.run_exe_test('test_default_row02')
ise-uiuc/Magicoder-OSS-Instruct-75K
// DELETE: api/Articles/5 [ResponseType(typeof(Article))] public IHttpActionResult DeleteArticle(int id) { Article article = _articleService.GetArticle(id); if (article == null)
ise-uiuc/Magicoder-OSS-Instruct-75K
Push a notification </NavLink> <NavLink className="w-1/2 px-3 py-2 mx-1 text-sm font-medium leading-5 text-center text-white transition-colors duration-200 transform bg-green-500 rounded-md hover:bg-green-600 md:mx-0 md:w-auto" to="#" onClick={() => dismissAll()} > Clear all notification </NavLink> </div> <div className="md:mt-2 ml-5 md:flex hidden"> <ThemeToggle /> </div> </nav> );
ise-uiuc/Magicoder-OSS-Instruct-75K
print('3. Let us remove an element "6" from the tree and see the tree after removing.\n') print('The Binary Search Tree before:') print(tree) tree.remove(6) print('The Binary Search Tree after:') print(tree) print('3. Let us find out how many levels in the tree.\n') print(f"The Binary Search Tree's height is {tree.get_height()}.") RESULT = tree.get_height()
ise-uiuc/Magicoder-OSS-Instruct-75K
break rule_speed = '' # Получение номера правила и удаление для таблицы speed for line in rules_speed.splitlines(): if line.split()[2] == ip_addr: rule_speed = line.split()[11] rule_speed = 'nft delete rule speed prerouting handle '+rule_speed+'\n' break # Удаление выбранного правила из nftables subprocess.call(rule_traffic + rule_nat + rule_speed, shell=True) # Ожидание перед удалением счётчика time.sleep(1) subprocess.call(rule_counter, shell=True) # Запись в лог файл log_write('Delete '+ip_addr+' from nftables')
ise-uiuc/Magicoder-OSS-Instruct-75K
public void intListConstructor_ListIsEmpty_ShouldThrowIllegalArgumentException() { assertThrows(IllegalArgumentException.class, () -> new BasePart(9, Collections.emptyList())); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Z = n.sin(10*(X + Y)) return Z def mandelbrot(x,y): X,Y = n.meshgrid(x,y) C = X + 1j*Y z = 0 for g in range(30): z = z**2 + C return n.abs(z) < 2 def report(event): thing = event.name, event.xdata, event.ydata print str(thing)
ise-uiuc/Magicoder-OSS-Instruct-75K
validate: bool whether to create a validate df if False, second dataframe returned will be empty Returns ------- """ if df.shape[0] >= samples_per_group + 1: # if enough points take the number of samples # the second df returned makes up the validation shapefile _df = df.sample(n=samples_per_group+1, replace=False) return _df.tail(samples_per_group), _df.head(int(validate)) else: # else take everything, this will lead to uncertain number of
ise-uiuc/Magicoder-OSS-Instruct-75K
del self.server def query_snp(self, rsid_list, verbose=False): if verbose: print("query_snp parameter: %s" % rsid_list) response = self.dataset.search({ 'filters': {
ise-uiuc/Magicoder-OSS-Instruct-75K
print(res_b64_decode) # test_information
ise-uiuc/Magicoder-OSS-Instruct-75K
area=min(height[x],height[y])*(y-x) if (res<area): res=area return res print(maxArea([2,3,4,5,18,17,6]))
ise-uiuc/Magicoder-OSS-Instruct-75K
yield element; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
//Players take turns placing characters into empty squares (" "). //The first player always places "X" characters, while the second player always places "O" characters. //"X" and "O" characters are always placed into empty squares, never filled ones. //The game ends when there are 3 of the same (non-empty) character filling any row, column, or diagonal. //The game also ends if all squares are non-empty. //No more moves can be played if the game is over. //Example 1: //Input: board = ["O ", " ", " "] //Output: false //Explanation: The first player always plays "X".
ise-uiuc/Magicoder-OSS-Instruct-75K
export function unexpectedContent(fileContent: string) {
ise-uiuc/Magicoder-OSS-Instruct-75K
--img-size 128 \ --bucket-name kschool-challenge-vcm \ --prefix data/dogs_cats/
ise-uiuc/Magicoder-OSS-Instruct-75K
from kloppy.domain.models.common import DatasetType from .common import Dataset, DataRecord, Player
ise-uiuc/Magicoder-OSS-Instruct-75K
print '[%-3s]\t%-4d time(s).'%(word, content.count(word)) except Exception as e: print '[-] Something went wrong: ', e.message raw_input('')
ise-uiuc/Magicoder-OSS-Instruct-75K
def reply_handler(update: Update, context: CustomCallbackContext) -> None: """Reply the user message.""" if update.message is None: return
ise-uiuc/Magicoder-OSS-Instruct-75K
static constexpr const char* NAME = "gameAmmoData"; static constexpr const char* ALIAS = NAME; ItemID id; // 00 int32_t available; // 10 int32_t equipped; // 14 }; RED4EXT_ASSERT_SIZE(AmmoData, 0x18); } // namespace game } // namespace RED4ext
ise-uiuc/Magicoder-OSS-Instruct-75K
if (disk.getDiskStorageType() == DiskStorageType.IMAGE) { DiskImage diskImage = (DiskImage) disk; EntityModel<Integer> sizeEntity = new EntityModel<>();
ise-uiuc/Magicoder-OSS-Instruct-75K