seed
stringlengths
1
14k
source
stringclasses
2 values
F: FnOnce((&'static str, u32)), { f((file!(), line!())) }
ise-uiuc/Magicoder-OSS-Instruct-75K
@bot.command() @commands.is_owner() async def echo(self, ctx, channel: discord.TextChannel, *, message: str): await channel.send(message) return await ctx.send(":point_left:") def setup(bot_client): bot_client.add_cog(Util(bot_client))
ise-uiuc/Magicoder-OSS-Instruct-75K
extern crate lazy_static; #[cfg(test)] #[macro_use] extern crate serde_json; mod class; mod colors; mod decorators; mod display;
ise-uiuc/Magicoder-OSS-Instruct-75K
import os # Run OS commands import subprocess # Run OS commands and get output as str def format_header(header, llvm_dir, includes): """ Runs clang on the given header file to obtain pound defines and declarations and then clean up the resulting file. The includes argument is there for the express purpose of allowing you to run RGB against a larger library with potentially hundreds of header files.
ise-uiuc/Magicoder-OSS-Instruct-75K
# # Defines functions alacritty for osx or linux. # # Authors: # <NAME> <<EMAIL>> # ZSH_ALACRITTY_PATH=$(dirname "${0}") # shellcheck source=/dev/null
ise-uiuc/Magicoder-OSS-Instruct-75K
using Common; using Game; public delegate GamePacketDecoder GamePacketDecoderResolver(WoWExpansion expansion); public delegate GamePacketEncoder GamePacketEncoderResolver(WoWExpansion expansion);
ise-uiuc/Magicoder-OSS-Instruct-75K
# listen for # equiv: nc -u -l 50001 def listen(): # sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # sock.bind(('0.0.0.0', sport))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Generated by Django 3.1 on 2020-08-13 02:38 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [
ise-uiuc/Magicoder-OSS-Instruct-75K
from .common import JWT try: import config
ise-uiuc/Magicoder-OSS-Instruct-75K
using var responseMessage = await client.GetAsync("/", HttpCompletionOption.ResponseHeadersRead); Console.WriteLine("Headers"); foreach(var header in responseMessage.Headers) {
ise-uiuc/Magicoder-OSS-Instruct-75K
feed = TextField(u'Feed', [validators.required()]) output_expression = TextField(u'Output Expression', [validators.required()])
ise-uiuc/Magicoder-OSS-Instruct-75K
def logout(self): logout_endpoint = f"{self.base_endpoint}logout" response = self.api.post(url=logout_endpoint) if response.status_code == 204: self.api.jar.update(response.cookies) self.api.is_authenticated = False return response
ise-uiuc/Magicoder-OSS-Instruct-75K
standard_bounds = torch.tensor([[0.0] * input_dim, [1.0] * input_dim]) fantasy_costs = [] fantasy_optimizers = [] if algo == "EI-PUC_CC": for _ in range(n_steps): # Acquisition function y = torch.transpose(model.train_targets, -2, -1) y_original_scale = model.outcome_transform.untransform(y)[0] obj_vals = y_original_scale[..., 0] best_f = torch.max(obj_vals).item()
ise-uiuc/Magicoder-OSS-Instruct-75K
//use cli::{diem_client::DiemClient, AccountData, AccountStatus}; //use cli::{diem_client::{DiemClient, views::VMStatusView}, AccountData, AccountStatus};
ise-uiuc/Magicoder-OSS-Instruct-75K
} private State m_State; private const float MovementBlockSize = 0.32f; private const float MovingSpeedPPS = 1.0f; private const float TimeToMoveOneBlock = MovementBlockSize / MovingSpeedPPS; public GameObject m_SplashPrefab;
ise-uiuc/Magicoder-OSS-Instruct-75K
cd ../images zip -r ../zip/Atlantic_hurricane_seasons_summary_map.zip ./*
ise-uiuc/Magicoder-OSS-Instruct-75K
func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. }
ise-uiuc/Magicoder-OSS-Instruct-75K
} } } impl core::fmt::Display for MetadataType { fn fmt(&self, e: &mut core::fmt::Formatter) -> core::fmt::Result { write!(e, "{:?}", &self) } } impl Serialize for MetadataType {
ise-uiuc/Magicoder-OSS-Instruct-75K
import six from ....core.qt import QtWidgets from .customeditor import AbstractCustomEditor, set_background_color_palette, draw_tooltip_visualization from camelot.core import constants class TimeEditor(QtWidgets.QTimeEdit, AbstractCustomEditor): def __init__(self, parent, editable = True, field_name = 'time',
ise-uiuc/Magicoder-OSS-Instruct-75K
print(f"Depois: {a} - {b} - {c}")
ise-uiuc/Magicoder-OSS-Instruct-75K
public void testSuccessionPathwayPersistsIfFreqHigh() { SuccessionPathwayUpdater updater = new SuccessionPathwayUpdater(200.); Integer newSuccessionPathway = updater.updatedSuccessionPathway(new EnvrSimState(10, 1., 100), Succession.Secondary.getCode());
ise-uiuc/Magicoder-OSS-Instruct-75K
__dry_run = '--dry-run' __environment = '--environment' ENV_CHOICE = SANDBOX_FUNC else: # Case for life runs __dry_run = None __environment = None ENV_CHOICE = None # For the next test, we need to switch the working directory for click my_trace = parent_trace.doing("Running with working directory in the collaboration area")
ise-uiuc/Magicoder-OSS-Instruct-75K
iResult = client.Shutdown(); do { iResult = client.Receive(receiveBuffer, 512); if (iResult > 0) printf("Bytes received: %d\n", iResult); else if (iResult == 0) printf("Connection closed\n"); else printf("recv failed with error: %d\n", WSAGetLastError()); } while (iResult > 0);
ise-uiuc/Magicoder-OSS-Instruct-75K
#Save the schematic schem.save("output.litematic")
ise-uiuc/Magicoder-OSS-Instruct-75K
data=dumps({ "software": "foo" }))
ise-uiuc/Magicoder-OSS-Instruct-75K
.. autoclass:: resdk.shortcuts.collection.CollectionRelationsMixin :members: """
ise-uiuc/Magicoder-OSS-Instruct-75K
_BASEDIR = os.path.dirname(os.path.abspath(__file__)) def load_samples(bench_values): for health in utils.find_file(os.path.join(_BASEDIR, 'cardiff_samples'), '*.hw_'): bench_values.append(eval(open(health).read())) class TestDetect(unittest.TestCase):
ise-uiuc/Magicoder-OSS-Instruct-75K
description='Asynchroncous Python implementation of JSON RPC for arbitrary' ' Streams and a particular implementation for JSON RPC of ' 'standard IO', author='amas0', version='0.6', packages=find_packages(), install_requires=[ 'aioconsole', 'pydantic' ])
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ protected characteristic!: BleCharacteristic; /**
ise-uiuc/Magicoder-OSS-Instruct-75K
action = np.argmax(softmax_action.data.numpy()[0]) next_state,reward,done,_ = test_task.step(action) result += reward state = next_state if done: break print("step:",step+1,"test result:",result/10.0) steps.append(step+1) test_results.append(result/10)
ise-uiuc/Magicoder-OSS-Instruct-75K
'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6',
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $id; protected $is_bot; protected $first_name; protected $username;
ise-uiuc/Magicoder-OSS-Instruct-75K
psgrep() { if [ ! -z $1 ] ; then echo "Grepping for processes matching $1..." ps aux | grep $1 | grep -v grep else echo "!! Need name to grep for" fi }
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AlterField( model_name='cuestionario', name='envio', field=models.CharField(choices=[('automatico', 'Automatico'), ('manual', 'Manual'), ('ambos', 'Ambos')], max_length=10), ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
] operations = [ migrations.AddField( model_name="authenticatorsmsstage", name="from_number",
ise-uiuc/Magicoder-OSS-Instruct-75K
grouped = split(examples, 'filename') for group in grouped: tf_example = create_tf_example(group, path) writer.write(tf_example.SerializeToString())
ise-uiuc/Magicoder-OSS-Instruct-75K
gc_start = _gc_start if phase == "start" and gc_start is None: _gc_start = time.time() elif gc_start is not None: duration = time.time() - gc_start _gc_start = None if node_stats_service.node is not None: node_stats_service.log_gc_duration(info["generation"], duration) gen0, gen1, gen2 = gc.get_count() if duration >= constants.GC_DURATION_WARN_THRESHOLD: logger.statistics(
ise-uiuc/Magicoder-OSS-Instruct-75K
fh.close() return digest.hexdigest()
ise-uiuc/Magicoder-OSS-Instruct-75K
except OSError as ex: if ex.errno == 2: # does not exist pass else: raise
ise-uiuc/Magicoder-OSS-Instruct-75K
public event NachrichtErhaltenDelegate NachrichtErhalten; public ChatPollingService(IChatService chatService) { getNachrichtenMutex = new Semaphore(1,1); _chatService = chatService; _pollingTasks = new Dictionary<Angebot, CancellationTokenSource>(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
import numpy as np from pathlib import Path from ..semi_dataset import SemiDatasetTemplate from .huawei_toolkits import Octopus def split_huawei_semi_data(info_paths, data_splits, root_path, labeled_ratio, logger): huawei_pretrain_infos = [] huawei_test_infos = [] huawei_labeled_infos = [] huawei_unlabeled_infos = [] def check_annos(info): return 'annos' in info
ise-uiuc/Magicoder-OSS-Instruct-75K
public bool Root { get; private set; } public SpriteLibraryDirectory Parent { get; set; } public void MapParent() { /*Stack<SpriteLibraryDirectory> stack = new Stack<SpriteLibraryDirectory>(); foreach (SpriteLibraryDirectory pair in SpriteLibrary.Instance.Directories.Reverse<SpriteLibraryDirectory>()) stack.Push(pair); SpriteLibraryDirectory lastNode = null; while (stack.Count > 0) { SpriteLibraryDirectory current = stack.Pop(); foreach (SpriteLibraryDirectory pair in current.Directories.Reverse<SpriteLibraryDirectory>()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return {"code": obj.profile.country.code, "name": obj.profile.country.name} if obj.profile.country else None def get_name(self, obj) -> str: return " ".join([obj.first_name, obj.last_name])
ise-uiuc/Magicoder-OSS-Instruct-75K
app.add_routes([ web.get('/api/postcode/{postcode}/', api_postcode, name='postcode'), web.get('/api/postcode/{postcode}/bikes/', api_bikes, name='bikes'),
ise-uiuc/Magicoder-OSS-Instruct-75K
import pulumi import pulumi.runtime from typing import Union from . import utilities, tables
ise-uiuc/Magicoder-OSS-Instruct-75K
number_of_points=2 * self.wgt.get_num_points_curve(2 * np.pi, self.radius), **self.wg_spec ) clad_ring = gdspy.Round( ( self.radius, -self.radius - self.wgt.wg_width - self.coupling_gap, ), self.radius + self.wgt.wg_width / 2.0 + self.wgt.clad_width, self.radius - self.wgt.wg_width / 2.0 - self.wgt.clad_width, number_of_points=2
ise-uiuc/Magicoder-OSS-Instruct-75K
assert abs(expected - actual) < 0.01
ise-uiuc/Magicoder-OSS-Instruct-75K
if angle=='nan' or h==0 or w==0: #boxes = [] continue angle = np.float(angle) if abs(angle)>np.pi/2: w,h = h,w
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^new_expense/', views.new_expense, name='new_expense'), url(r'^expense/(?P<expense_id>[0-9]+)/', views.expense_detail, name='expense_detail'), url(r'^expense/(?P<expense_id>[0-9]+)/', views.approve_expense, name='approve_expense'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
off x=35..47,y=-46..-34,z=-11..5 on x=-14..36,y=-6..44,z=-16..29 on x=-57795..-6158,y=29564..72030,z=20435..90618 on x=36731..105352,y=-21140..28532,z=16094..90401 on x=30999..107136,y=-53464..15513,z=8553..71215 on x=13528..83982,y=-99403..-27377,z=-24141..23996 on x=-72682..-12347,y=18159..111354,z=7391..80950 on x=-1060..80757,y=-65301..-20884,z=-103788..-16709
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AlterField(
ise-uiuc/Magicoder-OSS-Instruct-75K
# def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def tree2str(self, t: TreeNode) -> str: if t is None: return ""
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param message
ise-uiuc/Magicoder-OSS-Instruct-75K
def should_log_missing_item(subtests: SubTests) -> None: # Given dataset_id = any_dataset_id() version_id = any_dataset_version_id() index = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
path('tag/all', views.tags_all, name='all tags') ]
ise-uiuc/Magicoder-OSS-Instruct-75K
public ARRaytracer rightEyeARRaytracer; [Header("Hotkeys")] [Tooltip("Nudges the IPD wider by 1 millimeter.")] public KeyCode adjustWiderKey = KeyCode.RightArrow; [Tooltip("Nudges the IPD narrower by 1 millimeter.")] public KeyCode adjustNarrowerKey = KeyCode.LeftArrow; [Tooltip("Nudges the Eye Height higher by 1 millimeter.")] public KeyCode adjustHigherKey = KeyCode.UpArrow; [Tooltip("Nudges the Eye Height lower by 1 millimeter.")] public KeyCode adjustLowerKey = KeyCode.DownArrow; [Tooltip("Nudges the Eye Recession closer by 1 millimeter.")] public KeyCode adjustCloserKey = KeyCode.RightBracket; [Tooltip("Nudges the Eye Recession farther by 1 millimeter.")]
ise-uiuc/Magicoder-OSS-Instruct-75K
class Solution { public: int findPeakElement(vector<int>& nums) { int in=-1; int n=nums.size(); if(n==1) return 0; if(nums[0]>nums[1])
ise-uiuc/Magicoder-OSS-Instruct-75K
called_async_unary_method = true; } void TestServerStreamRpc(ConstByteSpan, RawServerWriter&) { called_server_streaming_method = true; } void TestClientStreamRpc(ServerReader<test::TestRequest::Message, test::TestStreamResponse::Message>&) { called_client_streaming_method = true; } void TestBidirectionalStreamRpc(RawServerReaderWriter&) {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public static bool SoundOff { get; set; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
* @author myoukaku */ #ifndef BKSGE_CORE_MATH_FWD_VECTOR2_FWD_HPP
ise-uiuc/Magicoder-OSS-Instruct-75K
let transactions = txs.compactMap { Transaction(tx: $0) } let currentTime = Date().timeIntervalSince1970 - 60 let syncedUntil: TimeInterval if transactions.count >= 1000, let lastTransaction = transactions.last { syncedUntil = lastTransaction.date.timeIntervalSince1970 } else { syncedUntil = min(startTime + self.windowTime, currentTime) } self.storage.save(syncState: SyncState(transactionSyncedUntilTime: syncedUntil))
ise-uiuc/Magicoder-OSS-Instruct-75K
) * direction, (10F * (y - spriteSmashCenter.y + 8) / sprite.rect.height) // speed from y position ) * Utils.physicsScale; } } spriteRenderer.enabled = false; collider.enabled = false; hit = true; if (audioSource != null) audioSource.Play();
ise-uiuc/Magicoder-OSS-Instruct-75K
self.children = [] # references to other nodes def __repr__(self): return self.value def add_child(self, child_node): # creates parent-child relationship print("Adding " + child_node.value) self.children.append(child_node) def remove_child(self, child_node): # removes parent-child relationship print("Removing " + child_node.value + " from " + self.value) self.children = [child for child in self.children if child is not child_node]
ise-uiuc/Magicoder-OSS-Instruct-75K
public boolean provideBoolean() { return true; } @Provides public float provideFloat() { return 1.0f; } @Provides
ise-uiuc/Magicoder-OSS-Instruct-75K
std::cout << a[3];
ise-uiuc/Magicoder-OSS-Instruct-75K
/// Gets the message for the shutdown. /// </summary> public string Message { get { return _message; } } #endregion #region Constructors internal BrokerShutdownEventArgs(string message) { _message = message;
ise-uiuc/Magicoder-OSS-Instruct-75K
'Operating System :: MacOS :: MacOS X', 'Intended Audience :: Developers', 'License :: OSI Approved :: MIT License', ],
ise-uiuc/Magicoder-OSS-Instruct-75K
.collect(Collectors.toList()); private static final List<JsonAdaptedTag> VALID_TAGS = OFFICEPOOL.getTags().stream()
ise-uiuc/Magicoder-OSS-Instruct-75K
ct.cancel_after(::std::time::Duration::new(10, 0)); let tx_res2 = tx_res.clone(); thread::spawn(move || { info!("[requester] #recv"); let th = thread::current();
ise-uiuc/Magicoder-OSS-Instruct-75K
<th class="border-bottom-0">تاريخ الاضافة</th> <th class="border-bottom-0"> المستخدم</th> </tr> </thead>
ise-uiuc/Magicoder-OSS-Instruct-75K
class Contact: def __init__(self, first_name, last_name, nickname, address, mobile, email): self.first_name = first_name self.last_name = last_name self.nickname = nickname
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!name || !tableName) { throw new Error('no name');
ise-uiuc/Magicoder-OSS-Instruct-75K
def send_line_notify(message='Just Finished Learning.'):
ise-uiuc/Magicoder-OSS-Instruct-75K
if (!seat.available) return; this.toggle.emit(seat); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ function createVisitor( regexpContext: RegExpContext, ): RegExpVisitor.Handlers { const { flags } = regexpContext if (!flags.unicode) { return {} } return { onCharacterEnter(cNode) {
ise-uiuc/Magicoder-OSS-Instruct-75K
join: { from: 'category.id', to: 'product.tyyppiId',
ise-uiuc/Magicoder-OSS-Instruct-75K
mv $TF/prometheus.yml /etc/prometheus/ mv $TF/grafana_sources.yaml /etc/grafana/provisioning/datasources/
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>cmantill/HHbbVV<filename>corrections/__init__.py<gh_stars>1-10 from .corrections import *
ise-uiuc/Magicoder-OSS-Instruct-75K
<input type="text" value={id} placeholder="Client ID" onChange={(click) => setId(click.target.value)} className="pointer-events-auto bg-gray-900 p-1 px-2 rounded-md outline-none focus:outline focus:outline-gray-700 mt-3" /> <input type="text"
ise-uiuc/Magicoder-OSS-Instruct-75K
model_name, 'projects/[project_id]/locations/[location]/models/[model_id]' )) api_endpoint = location + '-aiplatform.googleapis.com' vertex_uri_prefix = f"https://{api_endpoint}/v1/" delete_model_url = f"{vertex_uri_prefix}{model_name}" remote_runner = lro_remote_runner.LroRemoteRunner(location) delete_model_lro = remote_runner.create_lro( delete_model_url, '', gcp_resources, 'delete')
ise-uiuc/Magicoder-OSS-Instruct-75K
def circuit(inputs, w1, w2, w3, w4, w5, w6, w7): """Sample circuit to be used for testing density_matrix() return type.""" qml.templates.AngleEmbedding(inputs, wires=list(range(n_qubits))) qml.templates.StronglyEntanglingLayers(w1, wires=list(range(n_qubits))) qml.RX(w2[0], wires=0 % n_qubits) qml.RX(w3, wires=1 % n_qubits) qml.Rot(*w4, wires=2 % n_qubits)
ise-uiuc/Magicoder-OSS-Instruct-75K
# return [(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), # (-1, -1), (-2, -2), (-3, -3), (-4, -4), (-5, -5), (-6, -6), (-7, -7), # (1, -1), (2, -2), (3, -3), (4, -4), (5, -5), (6, -6), (7, -7), # (-1, 1), (-2, 2), (-3, 3), (-4, 4), (-5, 5), (-6, 6), (-7, 7)] def edit_moves(self, board, position, moves): row, col = position # tutte le mosse possibili mosse (anche non legali) verso NE, NW, SE e SW moves_ne = [(row - k, col + k) for k in range(1, min(row + 1, COLS - col))] moves_nw = [(row - k, col - k) for k in range(1, min(row + 1, col + 1))] moves_se = [(row + k, col + k) for k in range(1, min(ROWS - row, COLS - col))] moves_sw = [(row + k, col - k) for k in range(1, min(ROWS - row, col + 1))]
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': local_dict = locals() if 'bprj' not in local_dict: print('creating BAG project') bprj = BagProject() else: print('loading BAG project') bprj = local_dict['bprj'] # characterize_linearity(bprj) results = load_sim_data(bprj, 'tb_pss_dc')
ise-uiuc/Magicoder-OSS-Instruct-75K
del(contractId: number): Observable<Message> { return this.http.delete<Message>(`/api/v1/contracts/${contractId}`); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public bool MapEquals(MapSet<TKey, TValue> other) { Func<ISet<TValue>, ISet<TValue>, bool> setEquals = (a, b) => a.SetEquals(b); return this.DictionaryEquals(other, setEquals); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import lights from . import schedule
ise-uiuc/Magicoder-OSS-Instruct-75K
int alto=30; int ancho=30; string ruta = "C:\\Users\\JohnnyBravo\\Desktop\\Proyecto1Reportes\\Images\\bomba.png"; for(int j=0; j<ancho; j++) { for(int i=0; i<alto; i++) { tablero[i,j]=new PictureBox(); panel.Controls.Add(tablero[i,j]);
ise-uiuc/Magicoder-OSS-Instruct-75K
public string Key { get; set; } [Required] public string Value { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
namespace HoleOverHttp.WsProvider { public class ReflectCallProvider : CallProvider { private readonly ConcurrentDictionary<string, Tuple<MethodInfo, object>> _methods = new ConcurrentDictionary<string, Tuple<MethodInfo, object>>(); public override void RegisterService(object service) {
ise-uiuc/Magicoder-OSS-Instruct-75K
return 0 else return 1 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
# If new data block begins, reset category data current_category = None start = -1 stop = -1 is_loop = False has_multiline_values = False
ise-uiuc/Magicoder-OSS-Instruct-75K
/> ); } };
ise-uiuc/Magicoder-OSS-Instruct-75K
var_attrs = defaultdict(dict) # init 2d dict
ise-uiuc/Magicoder-OSS-Instruct-75K
assert_eq!(dgram.destination(), new_port(addr())); } /// This simulates an attack where a valid packet is forwarded on /// a different path. This shows how both paths are probed and the /// server eventually returns to the original path. #[test] fn path_forwarding_attack() {
ise-uiuc/Magicoder-OSS-Instruct-75K
* Run the database seeds.
ise-uiuc/Magicoder-OSS-Instruct-75K
url(r'^forgot-password$', waffle_switch('login')(PasswordResetView.as_view( template_name='registration/password_forgot_form.html', email_template_name='email/email-password-forgot-link.txt', html_email_template_name='email/email-password-forgot-link.html', from_email=settings.DEFAULT_FROM_EMAIL)), name='forgot_password_v2'), url(r'^password-reset-done$', waffle_switch('login')(PasswordResetDoneView.as_view( template_name='registration/password_forgot_reset_done.html')), name='password_reset_done_v2'), url(r'^password-reset-confirm/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.phandle.is_none() { thread::sleep(Duration::from_secs(1)); self.phandle = ProcessHandle::from_name_filter(|pname| { if let Some(ref name) = self.exe_name { pname == *name } else { pname.to_lowercase() == SONIC_2_APP_EXE } })?;
ise-uiuc/Magicoder-OSS-Instruct-75K
ValidateKeys(values); Assert.AreEqual("3px", values["pre-right-post"]); Assert.AreEqual("3px", values["pre-left-post"]); Assert.AreEqual("4px", values["pre-bottom-post"]); Assert.AreEqual("2px", values["pre-top-post"]); } [Test] virtual public void Parse4BoxValuesTest() {
ise-uiuc/Magicoder-OSS-Instruct-75K
{ public enum CacheMode { Absolute,
ise-uiuc/Magicoder-OSS-Instruct-75K
train_generator = train_datagen.flow_from_directory( TRAIN_DIR, **params, **train_params) validation_generator = test_datagen.flow_from_directory( VAL_DIR, **params, **val_params) ############### CALLBACKS ###############
ise-uiuc/Magicoder-OSS-Instruct-75K