seed
stringlengths
1
14k
source
stringclasses
2 values
/// RTPEncodingParameters provides information relating to both encoding and decoding. /// This is a subset of the RFC since Pion WebRTC doesn't implement encoding itself /// http://draft.ortc.org/#dom-rtcrtpencodingparameters pub type RTCRtpEncodingParameters = RTCRtpCodingParameters; /// RTPReceiveParameters contains the RTP stack settings used by receivers pub struct RTCRtpReceiveParameters {
ise-uiuc/Magicoder-OSS-Instruct-75K
from ex111.utilidadescev import moeda,dado
ise-uiuc/Magicoder-OSS-Instruct-75K
public AppTransactionCreateDto(UUID userId, UUID startStationId, UUID plannedStationId, Date plannedTime, UUID cityId, UUID bicycleId) {
ise-uiuc/Magicoder-OSS-Instruct-75K
<h3>{$message_header}</h3> <p>{$message_content}</p> HTML;
ise-uiuc/Magicoder-OSS-Instruct-75K
} catch (final IOException e) { log.error("Unable to parse value to Set - {}. Error - {}", value, e.getMessage(), e);
ise-uiuc/Magicoder-OSS-Instruct-75K
@endforeach @foreach(SiteMap::getGameUrlSiteMap() as $game) <url> <loc>{{ CommonGame::getUrlGame($game) }}</loc> <lastmod>{{ date('Y-m-d', strtotime($game->start_date)) }}</lastmod> <changefreq>weekly</changefreq> <priority>0.8</priority> </url> @endforeach @foreach(SiteMap::getNewUrlSiteMap() as $new) <url> <loc>{{ url().'/'.$new->type_slug.'/'.$new->slug }}</loc>
ise-uiuc/Magicoder-OSS-Instruct-75K
bce_loss: torch.Tensor, label: torch.Tensor, weight: torch.Tensor ) -> torch.Tensor: weight = label * weight.transpose(0, 1) + (1 - label) return (bce_loss * weight).mean(dim=1).sum() def masked_fill_for_qa( prediction: torch.Tensor, entity_mask: torch.Tensor = None ) -> torch.Tensor: if entity_mask is not None: return prediction.masked_fill((1 - entity_mask).bool(), float("-inf"))
ise-uiuc/Magicoder-OSS-Instruct-75K
haproxy -f /usr/local/etc/haproxy/haproxy.cfg # Throw the log to output
ise-uiuc/Magicoder-OSS-Instruct-75K
singularity build cibersortx_gep.simg docker://cibersortx/gep
ise-uiuc/Magicoder-OSS-Instruct-75K
class Rbac { const ROLE_USER = 'user'; const ROLE_ADMIN = 'admin'; const ROLE_BLOGGER = 'blogger'; const ROLE_PRIVILEGED = 'privileged'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
unsigned int k = 5; unsigned int test=453; auto answer = test % p;
ise-uiuc/Magicoder-OSS-Instruct-75K
try: return self.commands[command.lower()](*data) except TypeError: raise InvalidUsage("Invalid command format")
ise-uiuc/Magicoder-OSS-Instruct-75K
# Rename columns data.rename(columns={'he_vakiy': 'pop2018', 'pinta_ala': 'area', 'nimi': 'name', 'hr_mtu': 'risk', 'posti_alue': 'zip'}, inplace=True)
ise-uiuc/Magicoder-OSS-Instruct-75K
getCmd(snmpDispatcher, authData, transportTarget, *varBinds, **dict(cbFun=cbFun, lookupMib=True)) snmpDispatcher.transportDispatcher.runDispatcher()
ise-uiuc/Magicoder-OSS-Instruct-75K
sleep(1); cout<<color<34, 34, 34><<"(3)"<<iss[0]; cout<<color<32><<" <==> "<<reset<<is.getEnact().getEnactage().getLocation()<<reset<<endl; //enterContinues(); sleep(1); cout<<color<34, 34, 34><<"(4)"<<is.getEnact().getEnactmentL().getRank(); cout<<color<32><<" <==> "<<reset<<is.getEnact().getEnactage().getTemporal()<<reset<<endl; enterContinues(); } void setLEEStructLang(){ cout<<endl<<color<45, 46, 33><<"LEE Structural Language(LEEStruct Language)"<<reset<<endl;
ise-uiuc/Magicoder-OSS-Instruct-75K
client = ModbusClient('192.168.178.61', port=502)
ise-uiuc/Magicoder-OSS-Instruct-75K
training_args.add_argument( "--batch_size",
ise-uiuc/Magicoder-OSS-Instruct-75K
// this.commandPalets[2].count = this.pending; // this.commandPalets[3].count = this.reject; // }); // } }
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_eq!(6, foo.start()); assert_eq!(s.len(), foo.end()); assert_eq!(expected, &s[foo.start()..foo.end()]); } good::<String>("foo = \"foo\"", "\"foo\""); good::<u32>("foo = 42", "42"); // leading plus good::<u32>("foo = +42", "+42");
ise-uiuc/Magicoder-OSS-Instruct-75K
Arguments: n: int Maximum number for the prime search Returns: List[int]: list of prime numbers """ prime_list = [] for i in range(2, n): is_prime = True for j in range(2, round(i ** (1 / 2)) + 1):
ise-uiuc/Magicoder-OSS-Instruct-75K
// { // wkbXDR = 0, // Big Endian // wkbNDR = 1 // Little Endian // }; //
ise-uiuc/Magicoder-OSS-Instruct-75K
while abs(guess**2 - x) >= epsilon: print ('low = ' + str(low) + 'high =' + str(high) + 'Guess = ' + str(guess)) numGuesses += 1 if guess**2 < x: low = guess else: high = guess guess = (high + low) / 2.0 print ('numGuesses = ' + str(numGuesses))
ise-uiuc/Magicoder-OSS-Instruct-75K
// license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // --------------------------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
num_runs = 10 early_stop_window = -1 # setting to -1 will disable early stop verbose = True log_folder_master = experiment_dir + datetime.now().strftime('/log/%Y%m%d-%H%M%S') ############### algorithm ########################################## algorithm = 'neural_tree' # algorithm = 'original' ############### parameters ######################################### train_node_ratio_list = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7] val_node_ratio = 0.1 test_node_ratio = 0.2 network_params = {'conv_block': 'GCN', 'hidden_dim': 128,
ise-uiuc/Magicoder-OSS-Instruct-75K
import lutorpy as lua require("torch") file_list = open('filelist.txt', 'r') alphabet = "abcdefghijklmnopqrstuvwxyz0123456789-,;.!?:'\"/\\|_@#$%^&*~`+-=<>()[]{} "
ise-uiuc/Magicoder-OSS-Instruct-75K
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) {
ise-uiuc/Magicoder-OSS-Instruct-75K
if (count >= 20) state = MAN_ST_STAND; break; case MAN_ST_DAMAGED: count ++; if (count >= 40) state = MAN_ST_STAND; break; default: break; } } void Player::draw(uint16_t anim)
ise-uiuc/Magicoder-OSS-Instruct-75K
} } return redirect("/man_equipment/update");
ise-uiuc/Magicoder-OSS-Instruct-75K
__version__ = pkg_resources.get_distribution(__name__).version
ise-uiuc/Magicoder-OSS-Instruct-75K
if(command=="/help" || command=="/h") {
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>SwfLib.SwfMill/TagFormatting/DebugIDTagFormatter.cs using System.Xml.Linq; using SwfLib.Tags; namespace SwfLib.SwfMill.TagFormatting { /// <summary> /// Represents DebugID xml formatter. /// </summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
item.connect('activate', callback) self.menu.append(item)
ise-uiuc/Magicoder-OSS-Instruct-75K
def calculate_hamming_dist(self, uploaded_hash, db_store_hash): i = 0 count = 0 while (i < len(uploaded_hash)): if (uploaded_hash[i] != db_store_hash[i]): count += 1 i += 1
ise-uiuc/Magicoder-OSS-Instruct-75K
('validators', '0001_initial'), ] operations = [ migrations.CreateModel( name='ConfirmationBlock', fields=[ ('created_date', models.DateTimeField(auto_now_add=True, db_index=True, null=True)), ('modified_date', models.DateTimeField(auto_now=True, db_index=True)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('block_identifier', models.CharField(max_length=64)),
ise-uiuc/Magicoder-OSS-Instruct-75K
patterns.append( { "label": label,
ise-uiuc/Magicoder-OSS-Instruct-75K
use App\Model\Foundation\BaseModel; class ClueDetail extends BaseModel { protected $table = 't_clue_detail'; }
ise-uiuc/Magicoder-OSS-Instruct-75K
for x_val in QMOM_N_data: x = [x_val, x_val] y = [0, QMOM_N_data[x_val]] plt.plot(x, y, color="#FF5252", linestyle="-") plt.plot(x_analytic, y_analytic, color="#0A246A", linestyle="-")
ise-uiuc/Magicoder-OSS-Instruct-75K
self.num_graphs = 0 self.num_files = 0 self.add_graph_batch(mol_graphs) @property def raw_file_names(self): """ Returns ------- list
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace classroom_messenger_api.Extensions { public static class IdentityServiceExtensions { public static IServiceCollection AddIdentityServices(this IServiceCollection services, IConfiguration config) { services.AddDefaultIdentity<ApplicationUser>() .AddEntityFrameworkStores<ApplicationContext>() .AddSignInManager<SignInManager<ApplicationUser>>() .AddDefaultTokenProviders(); var key = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(config["TokenKey"])); services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(opt => {
ise-uiuc/Magicoder-OSS-Instruct-75K
except selenium_except.NoSuchElementException: self.get_screenshot(inspect.currentframe().f_back.f_code.co_name,
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace elle { namespace reactor {
ise-uiuc/Magicoder-OSS-Instruct-75K
**Software and Dependencies:**
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function postTypesAction() { $contentTypeRepository = $this->getDoctrine() ->getRepository(PostType::class);
ise-uiuc/Magicoder-OSS-Instruct-75K
from geotrek.flatpages import models as flatpages_models from geotrek.common.serializers import ( TranslatedModelSerializer, BasePublishableSerializerMixin, RecordSourceSerializer, TargetPortalSerializer ) class FlatPageSerializer(BasePublishableSerializerMixin, TranslatedModelSerializer): last_modified = rest_serializers.ReadOnlyField(source='date_update') media = rest_serializers.ReadOnlyField(source='parse_media')
ise-uiuc/Magicoder-OSS-Instruct-75K
action = message else: # テキストメッセージの場合、action は 本文 とする action = message attrs = {
ise-uiuc/Magicoder-OSS-Instruct-75K
this.current.next(namespace); } } private isNamespaceValid(namespaceToCheck: string): boolean { const listOfNamespaces = this.list.getValue();
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at
ise-uiuc/Magicoder-OSS-Instruct-75K
.Times(3) .WillRepeatedly( [&enqueue_cb_queue, &enqueue_count](base::StringPiece record_string, Priority event_priority, ReportQueue::EnqueueCallback cb) {
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Node class.""" def __init__(self, value, x, y):
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_websockets_decorators(self): class WebsocketConsumer(websockets.WebsocketConsumer): strict_ordering = True def connect(self, message, **kwargs):
ise-uiuc/Magicoder-OSS-Instruct-75K
export * from './named_descriptor_index_reducer'; export * from './decorated_descriptor_index'; // Represents abstract descriptor collection interface export interface AbstractDescriptorCollection<T> { values(): ReadonlyArray<T>;
ise-uiuc/Magicoder-OSS-Instruct-75K
public void ApplyDamage(GameObject go, float damage){ DamagePacket packet = new DamagePacket("Damage"); packet.damageDone = damage; packet.damaged_items_id = go.GetComponent<ScapeNet_Network_ID>().object_id;
ise-uiuc/Magicoder-OSS-Instruct-75K
return k
ise-uiuc/Magicoder-OSS-Instruct-75K
{ btn.sizeToFit() }else{ btn.frame = CGRect.init(origin: CGPoint.zero, size: size) } self.init(customView: btn) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Maxiumum video duration if SwiftyCamButton is used public var maximumVideoDuration : Double = 0.0 /// Video capture quality public var videoQuality : VideoQuality = .high
ise-uiuc/Magicoder-OSS-Instruct-75K
passes a unique ycmd application as a parameter. It should be used on tests that change the server state in a irreversible way (ex: a semantic subserver is stopped or restarted) or expect a clean state (ex: no semantic subserver
ise-uiuc/Magicoder-OSS-Instruct-75K
assert!(min_value < max_value); self.try_commit(); let r = self.next_rectangle(width, 1); let cval = value.min(max_value).max(min_value); let coef = (cval - min_value) / (max_value - min_value); self.draw_progress( r, coef, self.get_color(ColorCode::ProgressBack), self.get_color(ColorCode::ProgressFore), ); if let Some(msg) = msg {
ise-uiuc/Magicoder-OSS-Instruct-75K
status.HTTP_405_METHOD_NOT_ALLOWED ) self.assertEqual( client.put(self.url, {}).status_code, status.HTTP_405_METHOD_NOT_ALLOWED ) self.assertEqual( client.patch(self.url, {}).status_code, status.HTTP_405_METHOD_NOT_ALLOWED ) class TestStatistics(TestCase): def setUp(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
sed -i 's/ALLOWED_ORIGINS_TILES: List\[str\] = \[\]/ALLOWED_ORIGINS_TILES: List\[str\] = \["*"\]/g' terracotta/config.py mv ../zappa_settings.json . #use following command if you need to delete zappa stack and do clean deployment #zappa undeploy abi -y zappa deploy abi zappa update abi
ise-uiuc/Magicoder-OSS-Instruct-75K
void RegisterDoubleStrand(ADNPointer<ADNDoubleStrand> ds); void RegisterBaseSegmentEnd(ADNPointer<ADNDoubleStrand> ds, ADNPointer<ADNBaseSegment> bs, bool addToDs = true); void RegisterSingleStrand(ADNPointer<ADNSingleStrand> ss); void RegisterNucleotideThreePrime(ADNPointer<ADNSingleStrand> ss, ADNPointer<ADNNucleotide> nt, bool addToSs = true); void RegisterNucleotideFivePrime(ADNPointer<ADNSingleStrand> ss, ADNPointer<ADNNucleotide> nt, bool addToSs = true); void RegisterNucleotide(ADNPointer<ADNSingleStrand> ss, ADNPointer<ADNNucleotide> nt, ADNPointer<ADNNucleotide> ntNext, bool addToSs = true); void RegisterAtom(ADNPointer<ADNNucleotide> nt, NucleotideGroup g, ADNPointer<ADNAtom> at, bool create = false); void RegisterAtom(ADNPointer<ADNBaseSegment> bs, ADNPointer<ADNAtom> at, bool create = false);
ise-uiuc/Magicoder-OSS-Instruct-75K
"allowed": True, "status": {"message": 'Patching pod'}, "patch": base64.b64encode(str(patch).encode()).decode(), "patchtype": "JSONPatch", } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public static void main(String[] args) { checkNotNull(System.currentTimeMillis() > 0 ? MyEnum.A : null, "x"); checkNotNull(System.currentTimeMillis() > 0 ? new Object() : null, "x"); } @NeverInline static void checkNotNull(Object o, String name) { if (o == null) {
ise-uiuc/Magicoder-OSS-Instruct-75K
<title>Admin Login</title> <!-- Bootstrap Core CSS --> <link href="{{asset('public/frontEnd/')}}/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- MetisMenu CSS --> <link href="{{asset('public/frontEnd/')}}/vendor/metisMenu/metisMenu.min.css" rel="stylesheet"> <!-- Custom CSS --> <link href="{{asset('public/frontEnd/')}}/dist/css/sb-admin-2.css" rel="stylesheet"> <!-- Custom Fonts --> <link href="{{asset('public/frontEnd/')}}/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"> </head>
ise-uiuc/Magicoder-OSS-Instruct-75K
Kernel of boundary Vandermonde matrix """ def __init__(self, order): self.order = order super().__init__(self.order)
ise-uiuc/Magicoder-OSS-Instruct-75K
publisher: The Knative Authors sourceType: internal EOF
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 import tkinter.messagebox from tkinter import * from tkinter import ttk from tkinter import filedialog
ise-uiuc/Magicoder-OSS-Instruct-75K
self.c = dbConnection
ise-uiuc/Magicoder-OSS-Instruct-75K
$users = User::where('active', 1)->orderBy('created_at', 'DESC')->get(); return view('accounts.index', compact('users')); } public function create(UserRequest $request) { $validated = $request->validated(); $user = User::firstOrCreate([ 'email' => $request->email ],[ 'first_name' => $request->first_name, 'last_name' => $request->last_name,
ise-uiuc/Magicoder-OSS-Instruct-75K
} static var arbitrary : Gen<RoseTreeOf<A>> { return Gen.sized { n in return arbTree(n) } } } private func arbTree<A>(_ n : Int) -> Gen<RoseTreeOf<A>> { if n == 0 { return A.arbitrary.flatMap { Gen.pure(RoseTreeOf(Rose.pure($0))) } } return Positive<Int>.arbitrary.flatMap { m in let n2 = n / (m.getPositive + 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
list_display = ('__str__', 'level') class EventAttributeInline(admin.TabularInline): model = EventAttribute
ise-uiuc/Magicoder-OSS-Instruct-75K
#MAKE THE APP FULLSCREEN AT ALL TIMES root.attributes('-fullscreen', True) x_plan = 481.250 y_plan = 354.750
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.CreateModel( name='Session', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('token', models.CharField(db_index=True, max_length=128, unique=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('expires_at', models.DateTimeField(null=True)), ('app', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='auth.Apps')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sessions', to='users.User')), ], options={ 'db_table': 'sessions',
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public void setNonNullParameter(PreparedStatement ps, int i, Integer parameter, JdbcType jdbcType)
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface InputProcessor { double[] processInput(int expectedOutputCount, float[] dataToProcess); }
ise-uiuc/Magicoder-OSS-Instruct-75K
result += " {} -> {}\n".format(key, value) else: result += " No native arguments.\n" return result
ise-uiuc/Magicoder-OSS-Instruct-75K
static let contentSecurityPolicyReportOnly = HTTPHeaders.Name("Content-Security-Policy-Report-Only") static let referrerPolicy = HTTPHeaders.Name("Referrer-Policy") }
ise-uiuc/Magicoder-OSS-Instruct-75K
response = self.app_client.get("/interactions/rice/LOC_Os01g52560") expected = { "wasSuccessful": True, "data": [ { "protein_1": "LOC_Os01g01080", "protein_2": "LOC_Os01g52560",
ise-uiuc/Magicoder-OSS-Instruct-75K
// Copyright © 2020 GORA Studio. https://gora.studio // // Permission is hereby granted, free of charge, to any person obtaining a copy
ise-uiuc/Magicoder-OSS-Instruct-75K
""" import pandas as pd import numpy as np import pyphi as phi import pyphi_plots as pp
ise-uiuc/Magicoder-OSS-Instruct-75K
&:hover{ opacity: 1 !important; } &.active{ &::after { content: ''; position: absolute; top: 0; right: 0; width: 100%; height: 100%;
ise-uiuc/Magicoder-OSS-Instruct-75K
class KeyboardDetailsView(Gtk.Dialog): # TODO Display all the information that is available # especially what is displayed for Keyman on Windows # TODO clean up file once have what we want def __init__(self, parent, kmp): # kmp has name, version, packageID, area if "keyboard" in kmp["name"].lower(): wintitle = kmp["name"]
ise-uiuc/Magicoder-OSS-Instruct-75K
class CableMetadata(models.Model): cable = models.OneToOneField(Cable)
ise-uiuc/Magicoder-OSS-Instruct-75K
const Thead = styled.thead` border: 0; ` export default Thead
ise-uiuc/Magicoder-OSS-Instruct-75K
sum ^= ord(ch) return "%02X" % (sum)
ise-uiuc/Magicoder-OSS-Instruct-75K
# check that composition sums to 1.0 total = 0.0 for v in self.values(): total += v other = 1.0 - total # set other if needed if other != 0.0: if self.has_key('Other'):
ise-uiuc/Magicoder-OSS-Instruct-75K
package gea.api;
ise-uiuc/Magicoder-OSS-Instruct-75K
for e in element.findall('%s' % dae('input'))] stride = 1 + max(offset for (semantic, (offset, source)) in inputs) vcounts = element.find('%s' % dae('vcount')) vcounts = map(int, vcounts.text.split()) if vcounts is not None else None # TODO: handle primitive types better p = map(int, element.find('%s' % dae('p')).text.split()) assert len(p) % stride == 0
ise-uiuc/Magicoder-OSS-Instruct-75K
delete_usuario.delete() messages.success(request, 'Usuário excluído com sucesso.', 'Sucesso') return redirect('list_usuario') return render(request, "exclusaoConf.html", {'delete_usuario': delete_usuario}) ''' @user_passes_test(check_gerente, login_url='/?error=acesso', redirect_field_name=None) @login_required(login_url='/entrar')
ise-uiuc/Magicoder-OSS-Instruct-75K
authenticate user if they have an account ''' for user in User.user_list: if user.login_name == name and user.password == password: return user return False def generate_password():
ise-uiuc/Magicoder-OSS-Instruct-75K
if ((originalRange.End.Line < originalRange.Start.Line) || (originalRange.End.Line == originalRange.Start.Line && originalRange.End.Character < originalRange.Start.Character)) { Debug.Fail($"DefaultRazorDocumentMappingService:TryMapToProjectedDocumentRange original range end < start '{originalRange}'"); return false; } var sourceText = codeDocument.GetSourceText(); var range = originalRange; if (!IsRangeWithinDocument(range, sourceText))
ise-uiuc/Magicoder-OSS-Instruct-75K
reason: self.take_len()?, }), Type::MAX_DATA => Frame::MaxData(self.bytes.get_var()?), Type::MAX_STREAM_DATA => Frame::MaxStreamData { id: self.bytes.get()?, offset: self.bytes.get_var()?, }, Type::MAX_STREAM_ID => Frame::MaxStreamId(self.bytes.get()?),
ise-uiuc/Magicoder-OSS-Instruct-75K
assert response.status_code == 200 api_end = time.time() api_difference = api_end - api_start print( f"{api_difference / intervals} was the average time in seconds to run directly." )
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Data Types - RDD-based API http://spark.apache.org/docs/latest/mllib-data-types.html ''' import numpy as np import scipy.sparse as sps from pyspark.mllib.linalg import Vectors
ise-uiuc/Magicoder-OSS-Instruct-75K
dataset_dir='' split_name='' dataset_dir_other='' python convert_RCV.py ${dataset_dir} ${split_name} ${dataset_dir_other}
ise-uiuc/Magicoder-OSS-Instruct-75K
public class Address
ise-uiuc/Magicoder-OSS-Instruct-75K
mkdir -p "$WORKDIR/bucket" chmod 777 "$WORKDIR/bucket" # Make sure the *local* bucket directory is mounted on minikube's # VM. This will make sure that the `/bucket` hostPath mounted in the # PODs is also shared locally nohup minikube mount "$WORKDIR/bucket":/bucket > "$LOGS_DIR/minikube-mount.log" & # Create a tunnel so we can guarantee that the gateway's LoadBalancer will # get an IP from the host. We could use a different service type for the # gateway but let's try to keep it as close to production-like as possible. nohup minikube tunnel > "$LOGS_DIR/minikube-tunnel.log" &
ise-uiuc/Magicoder-OSS-Instruct-75K
ap.add_argument("-b", "--buffer", type=int, default=64, help="max buffer size")
ise-uiuc/Magicoder-OSS-Instruct-75K
def validate(): pass
ise-uiuc/Magicoder-OSS-Instruct-75K
algo = (input('\033[34m''Digite algo: ''\033[m')) print('São letras ou palavras?: \033[33m{}\033[m'.format(algo.isalpha())) print('Está em maiúsculo?: \033[34m{}\033[m'.format(algo.isupper())) print('Está em minúsculo?: \033[35m{}\033[m'.format(algo.islower())) print('Está captalizada?: \033[36m{}\033[m'.format(algo.istitle())) print('Só tem espaço?: \033[31m{}\033[m'.format(algo.isspace())) print('É numérico?: \033[32m{}\033[m'.format(algo.isnumeric())) print('xD')
ise-uiuc/Magicoder-OSS-Instruct-75K
import os import numpy as np import sys sys.path.append("../")
ise-uiuc/Magicoder-OSS-Instruct-75K