seed
stringlengths
1
14k
source
stringclasses
2 values
# 1つだけWAが取れなかった
ise-uiuc/Magicoder-OSS-Instruct-75K
trait IntoRef<'a> { type T: Clone;
ise-uiuc/Magicoder-OSS-Instruct-75K
# plane for context # g = vtk.vtkImageDataGeometryFilter() g.SetInputConnection(ptLoad.GetOutputPort()) g.SetExtent(0,100,0,100,0,0)
ise-uiuc/Magicoder-OSS-Instruct-75K
else echo "Starting image creation..." #Create image rm -rf ../bos.img mformat -C -f 1440 -v BOS -i ../bos.img :: #Erhm, it isn't pretty.... DISKNAME=`hdiutil attach -nomount ../bos.img` diskutil mount $DISKNAME MOUNTNAME=`diskutil info $DISKNAME | grep 'Mount Point' | cut -d : -f 2 |...
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): show_webcam(mirror=True) if __name__ == '__main__': main()
ise-uiuc/Magicoder-OSS-Instruct-75K
"j3", "n1", "pn", "tx", "sa", ]
ise-uiuc/Magicoder-OSS-Instruct-75K
$rootScope.deleteUserRows = []; } }); userPage.controller('UserController', function($scope, $http, $sce) { $scope.doSearch = function() { $scope.doSearch.processing = true; $http({ method: 'POST', url: _URL + '/user/filter', data...
ise-uiuc/Magicoder-OSS-Instruct-75K
rmiProxy.setServiceUrl(rmiUrl + "/" + serviceName); return rmiProxy; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
@login_required @template_renderer() def deactivate(uid): """ Deactivate user account. Only give access if the uid matches the user, or if the user is an admin :param uid: id of the user :type uid: int :return: DeactivationForm and user view if valid response, appropriate error otherwise :...
ise-uiuc/Magicoder-OSS-Instruct-75K
def produce_plot(train_list, validation_list, plot_name, experiment_name, learning_rate, epochs): """ :param train_list: :param validation_list: :param plot_name: :type plot_name: str
ise-uiuc/Magicoder-OSS-Instruct-75K
Err(()) } else { let handshake_msg = HandshakeMessage::from_parts(remote_prot.clone(), ext, remote_hash, pid); Ok(timer.timeout(framed.send(handshake_msg) .map_err(|_| ()) .map(move |framed| { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
let test_input = Input::new("inputs/test_p2.txt".to_string(), 16, 2021).unwrap(); assert_eq!(super::part2(test_input), 1); let input = Input::new("inputs/input.txt".to_string(), 16, 2021).unwrap(); assert_eq!(super::part2(input), 19348959966392); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
if data_path.endswith(".gz"): with gzip.open(data_path, 'r') as f: S, true_model = pickle.load(f) else: with open(data_path, 'r') as f: S, true_model = pickle.load(f) print("True model:") print(true_model) T = float(S.shape[0]) N = S.sum(axis=0)
ise-uiuc/Magicoder-OSS-Instruct-75K
train_predict = self.model.predict(self.X_train) test_predict = self.model.predict(self.X_test) #train_rmse = np.sqrt(mean_squared_error(self.Y_train, train_predict)) test_rmse = np.sqrt(mean_squared_error(self.Y_test, test_predict)) return test_rmse ''' def plot(self): ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notifications', '0005_learnerprogressnotification_assignment_collections'), ] operations = [ migrations.AlterField( model_name='learnerprogressnotification',
ise-uiuc/Magicoder-OSS-Instruct-75K
self.zk_host = self._update_val_from_env(MLOpsEnvConstants.MLOPS_ZK_HOST, self.zk_host) self.token = self._update_val_from_env(MLOpsEnvConstants.MLOPS_TOKEN, self.token) self.ion_id = self._update_val_from_env(MLOpsEnvConstants.MLOPS_ION_ID, self.ion_id) self.ion_node_id = self._update_v...
ise-uiuc/Magicoder-OSS-Instruct-75K
if (isValuePredicted) { if (isValueTaken) { // The Value predicted and True values are the same. classificationTable[index]++;
ise-uiuc/Magicoder-OSS-Instruct-75K
import IconProps from '../interfaces/IconProps'; const SvgArrowCircleDown = (props: IconProps) => ( <svg viewBox="0 0 512 512" {...props}>
ise-uiuc/Magicoder-OSS-Instruct-75K
{ protected $signature = 'MigrateJob'; protected $description = 'Display an inspiring quote'; public function handle() { }
ise-uiuc/Magicoder-OSS-Instruct-75K
/usr/bin/amixer set Master toggle bash ~/.config/dwm/scripts/dwm-status-refresh.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
with pytest.raises(ValueError): psf1 = np.ones((5, 5)) psf2 = np.ones((3, 3)) create_matching_kernel(psf1, psf2)
ise-uiuc/Magicoder-OSS-Instruct-75K
export default schema;
ise-uiuc/Magicoder-OSS-Instruct-75K
return "%s %s" % (self.nombre, self.generacion) class Generacion(models.Model): generacion=models.CharField(max_length=150,null=True,blank=True) def __str__(self): return str(self.generacion) class Alumno(models.Model): email=models.CharField(max_length=100)
ise-uiuc/Magicoder-OSS-Instruct-75K
backend = "" for i, line in enumerate(p.split("\n")): if i < 3: continue row = line.split() if row[0] == "TCP" or row[0] == "UDP": external = string.replace(row[1], ".", "_") backend = "total"
ise-uiuc/Magicoder-OSS-Instruct-75K
# print process_result(result), # #End of Step 1 #### print
ise-uiuc/Magicoder-OSS-Instruct-75K
def move_forward(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public class JettyPasswordDecoderTest { private JettyPasswordDecoder jettyPasswordDecoder; @Before public void setUp(){ this.jettyPasswordDecoder = new JettyPasswordDecoder(); } @Test public void shouldDecodeObfuscatedPassword(){ String encoded = Password.obfuscate("passwo...
ise-uiuc/Magicoder-OSS-Instruct-75K
cout << "R: " << p << endl; cout << "Result: " << result << endl; return 0; }
ise-uiuc/Magicoder-OSS-Instruct-75K
public static let cases: [ItemType] = [ .movie, .show, .season, .episode, .program, .link, .trailer, .channel, ] }
ise-uiuc/Magicoder-OSS-Instruct-75K
* Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { // return SurgeryHistory::with('patient')->get(); } /**
ise-uiuc/Magicoder-OSS-Instruct-75K
return request.user.id == obj.user.id
ise-uiuc/Magicoder-OSS-Instruct-75K
objExcel.Application.Quit() del objExcel # If it Application.Quit() was not enough we force kill the process if utils.checkIfProcessRunning("Excel.exe"): utils.forceProcessKill("Excel.exe")
ise-uiuc/Magicoder-OSS-Instruct-75K
assert np.all(result.ids == ['id1', 'id2', 'id1', 'id2']) assert np.all(result.names == ['name1', 'name2', 'name1', 'name2']) assert np.all(result.seqs == np.array([[1,3,2], [1,2,1], [3,2,4], [4,3,4]])) assert np.all(result.senses == ['+', '+', '-', '-']) def test_SeqGroups(): records = os.pat...
ise-uiuc/Magicoder-OSS-Instruct-75K
import frappe def delete_approved_build_requests(): """ Scheduled hook to delete approved Review Requests for changing site deployments. """ approved_build_requests = frappe.get_all( "Review Request",
ise-uiuc/Magicoder-OSS-Instruct-75K
* @return string */ public function getGroupName() { return $this->Session->read('UserAuth.UserGroup.name'); } /** * Used to check is admin logged in * * @access public
ise-uiuc/Magicoder-OSS-Instruct-75K
} set {
ise-uiuc/Magicoder-OSS-Instruct-75K
for y in range(len(seq2)): delcost = oneago[y][0] + seq1[x].delete_cost() addcost = thisrow[y-1][0] + seq2[y].create_cost() comparer.compare(seq1[x], seq2[y], asymmetric=asymmetric, relat_dist_to_ch1=relat_dist_to_word1)
ise-uiuc/Magicoder-OSS-Instruct-75K
tabview.frame = CGRect(x: (presentFrame.width - (presentFrame.width - 20)) * 0.5, y: (presentFrame.height - (presentFrame.height - 20)) * 0.5 + 5, width: presentFrame.width - 20, height: presentFrame.height - 25)
ise-uiuc/Magicoder-OSS-Instruct-75K
def changeDEGtext(self): if self.DEGButtonText.get() == "DEG": self.DEGButtonText.set("RAD") else: self.DEGButtonText.set("DEG") return # Function to change the trigonometric functions buttons text (user clicks on RAD button) def ch...
ise-uiuc/Magicoder-OSS-Instruct-75K
argument_spec = cohesity_common_argument_spec() argument_spec.update( dict( state=dict(choices=['present', 'absent'], default='present'), download_location=dict(default=''), service_user=dict(default='cohesityagent'), service_group=dict(default='cohesityag...
ise-uiuc/Magicoder-OSS-Instruct-75K
from .dense_cpu import Matrix, Vectors if copy_data: self.__op = Matrix(a.copy()) else: self.__op = Matrix(a) self.__gpu = None self.__Vectors = Vectors self.__vectors = None vmin = numpy.amin(a) vmax = numpy...
ise-uiuc/Magicoder-OSS-Instruct-75K
class FakePyTestHelpersNamespace: __slots__ = () def register(self, func): return func # Patch pytest so it all works under runtests.py pytest.helpers = FakePyTestHelpersNamespace() @pytest.helpers.register @contextmanager
ise-uiuc/Magicoder-OSS-Instruct-75K
public prefix func &- (view: UIView) -> AJLayoutContainer { let left = AJLayoutAttribute(AJLayoutSide.top, attribute: .top) let right = AJLayoutAttribute(view, attribute: .top) let constraint = AJLayoutConstraint(left: left, right: right) constraint.type = .chain let chain = AJLayoutChain(attribute...
ise-uiuc/Magicoder-OSS-Instruct-75K
date +%Y-%m-%d%t%T >> /home/adippenaar/USAP_H37Rv/timeLog_NOVO.txt echo "5_2_GATK.sh started: " >> /home/adippenaar/USAP_H37Rv/timeLog_NOVO.txt date +%Y-%m-%d%t%T >> /home/adippenaar/USAP_H37Rv/timeLog_NOVO.txt sh 5_2_GATK.sh echo "5_2_GATK.sh ended: " >> /home/adippenaar/USAP_H37Rv/timeLog_NOVO.txt date +%Y-%m-%d%t%T ...
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { $title = _("Registration"); require_once('header.php'); print '<h1>'._("Error").'</h1>'; print '<p>'._("Sorry, this registration does not exist in this database. :(").'</p>'; } require_once('footer.php'); ?>
ise-uiuc/Magicoder-OSS-Instruct-75K
} catch let error { print("failed to create render pipeline state for the device. ERROR: \(error)") let newError = AKError.seriousError(.renderPipelineError(.failedToInitialize(PipelineErrorInfo(moduleIdentifier: nil, underlyingError: error)))) NotificationCen...
ise-uiuc/Magicoder-OSS-Instruct-75K
flask_tracer = FlaskTracer(initialize_tracer, True, app)
ise-uiuc/Magicoder-OSS-Instruct-75K
import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet("/DeleteUser") public class DeleteUser extends HttpServlet { protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletExcep...
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_top_3_winning_numbers_last_draw(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_top_3() app.ResultAndPrizes.button_get_report_winners() assert "ВЫИГРЫШНЫЕ НОМЕРА" in app.ResultAndPrizes.parser_report_text_winners()
ise-uiuc/Magicoder-OSS-Instruct-75K
@NodeInfo(shortName = "equal?") @GenerateNodeFactory public abstract class Equal extends BuiltinExpression { @Specialization public boolean equal(long a, long b) { return a == b; } @Specialization public boolean equal(double a, double b) {
ise-uiuc/Magicoder-OSS-Instruct-75K
samples = k["Solver"]["Sample Database"] mean = np.mean(samples) chainmean = k["Solver"]["Chain Mean"] assert np.isclose(mean, chainmean), "Chain Mean deviates from Mean of "\ "Samples ({0} vs {1})".format(mean, chainmean) def compareStd(k):
ise-uiuc/Magicoder-OSS-Instruct-75K
return req.account?.email && req.account?.id;
ise-uiuc/Magicoder-OSS-Instruct-75K
import json from base64 import b64encode
ise-uiuc/Magicoder-OSS-Instruct-75K
params.unshift(additionalSetup, data);
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param Request $request * @return \Illuminate\Http\Response * @throws \Illuminate\Validation\ValidationException */ public function store(Request $request) { $this->validate($request, [ 'name' => ['required'],
ise-uiuc/Magicoder-OSS-Instruct-75K
W = preds.shape[3] # Empty list to store the detected keypoints points = [] for i in range(15):
ise-uiuc/Magicoder-OSS-Instruct-75K
import questionary class Displayer: """ Class for displaying all notes, handling user action, etc. """
ise-uiuc/Magicoder-OSS-Instruct-75K
def __len__(self): return len(self.data)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Generate normal distribution ndist = random.normal(loc = 0, scale = 1, size = len(res)) ndist.sort() # Fit Normal Trendline. fit = np.polyfit(ndist, res, 1) fit = fit.tolist() func = np.poly1d(fit) trendline_y = func(ndist) plt.figure(figsize=...
ise-uiuc/Magicoder-OSS-Instruct-75K
</div> </div> </div> <div class="container"> <div class="row"> <div class="col-sm-12 col-lg-12 col-md-12"> <h2 style="margin-top: 10px; margin-bottom: 15px; color: blue;">Edit your Account</h2> <form method="post" > <div class="form-group">
ise-uiuc/Magicoder-OSS-Instruct-75K
if not success: error_lines.append('\neslint found lint errors:') error_lines.append(eslint_output) if error_lines: error_lines.insert(0, 'Found JavaScript style violations:')
ise-uiuc/Magicoder-OSS-Instruct-75K
import unittest from repeat_n_struct import _schema class TestRepeatNStruct(unittest.TestCase): def test_repeat_n_struct(self): r = _schema.parse_file('src/repeat_n_struct.bin') self.assertEqual(len(r.chunks), 2)
ise-uiuc/Magicoder-OSS-Instruct-75K
duck_duck_goose = lambda players, goose: players[(goose - 1) % len(players)].name
ise-uiuc/Magicoder-OSS-Instruct-75K
} /// Add CAGradientLayer /// /// - parameter width: colors /// - parameter color: startPoint /// - parameter color: endPoint func addCAGradientLayer(colors: [Any]?, startPoint: CGPoint, endPoint: CGPoint) { let gradientLayer = CAGradientLayer() gradientLayer.frame = bas...
ise-uiuc/Magicoder-OSS-Instruct-75K
data: { id, },
ise-uiuc/Magicoder-OSS-Instruct-75K
const char *name; message->FindInt32("opcode", &op); message->FindInt32("device", &fromEntryRef.device);
ise-uiuc/Magicoder-OSS-Instruct-75K
name=__name__, # noqa version=__version__, # noqa author=__author__, # noqa author_email=__author_email__, # noqa description=__description__, # noqa url=__url__, # noqa license=__license__, # noqa entry_points={ 'console_scripts': [ 'revscoring = revscoring.re...
ise-uiuc/Magicoder-OSS-Instruct-75K
# you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0
ise-uiuc/Magicoder-OSS-Instruct-75K
directory_map = { "abilene": "directed-abilene-zhang-5min-over-6months-ALL",
ise-uiuc/Magicoder-OSS-Instruct-75K
fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `DAT` writer - Data Receive/Transmit Buffer\nWrite Operation:\nBy writing one byte to this register, the data byte will be stored in transmitter FIFO. The UART controller will send out the data stored in transmitter FIFO top location through ...
ise-uiuc/Magicoder-OSS-Instruct-75K
clip_values (list, tuple): values you want to clip CT scans to. Defaults to None for no clipping. with_mask (bool): whether or not to preprocess with masks or no masks. Applicable to preprocessing test set (no labels available). fg_clas...
ise-uiuc/Magicoder-OSS-Instruct-75K
*/ public struct StringEncodingError: Error {}
ise-uiuc/Magicoder-OSS-Instruct-75K
ind++; } else if (pInd == 0) { // can't find same string ind++; } if (pattern.size() == pInd) { cnt++; pInd = pi[pInd-1]; if (ind == pattern.size()) cnt--; } } return cnt; }
ise-uiuc/Magicoder-OSS-Instruct-75K
res.append(dict[s[j]]) else: prev = i-1
ise-uiuc/Magicoder-OSS-Instruct-75K
else # non-/interactive full-node job without --attrs=pubnet on ThetaGPU echo "Network Offline, setting proxy envs" export https_proxy=http://proxy.tmi.alcf.anl.gov:3128 export http_proxy=http://proxy.tmi.alcf.anl.gov:3128 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
}) test_data_100000 = test_data[0: 100000] train_data_100000 = train_data[0: 100000] def target_select(data, key): feat = [] for i in range(0, len(data)): feat.append(data[i: i + 1][0][key])
ise-uiuc/Magicoder-OSS-Instruct-75K
#include "gtest/gtest.h" #include "src/core/test/gtest_extras.h" #include "src/core/windowing.h" using namespace musher::core; /** * @brief Square windowing. * */ TEST(Windowing, SquareWindowing) { std::vector<double> input(1024, 1.);
ise-uiuc/Magicoder-OSS-Instruct-75K
int offset = (state->arg_count - state->arg_pos + state->stack_diff + 1) * sizeof(void *); if (offset >= 0x80) { return 7; } else { return 4; }
ise-uiuc/Magicoder-OSS-Instruct-75K
../../../../java/NewTask.java
ise-uiuc/Magicoder-OSS-Instruct-75K
//Printf ("Track %d is not audio\n", track); return FALSE; }
ise-uiuc/Magicoder-OSS-Instruct-75K
chain = f"chain-{chain}" def record_factory(*args, **kwargs): record = old_factory(*args, **kwargs) record.chain = chain record.host = socket.gethostname() return record logging.setLogRecordFactory(record_factory) log_format = "%(asctime)s %(host)s [%(chain)s] %(le...
ise-uiuc/Magicoder-OSS-Instruct-75K
def allow_delete(self): self.allow(self.resource_url, "DELETE") def allow_delete_subresources(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
class mozart::UnstableNode abs(VM vm);
ise-uiuc/Magicoder-OSS-Instruct-75K
#[derive(Clone, PartialEq, Serialize, Deserialize)] #[serde(from = "ImageWrapper", into = "ImageWrapper")] pub struct SquareImage<Pixel: Clone> { edge_length: usize, inner: Vec<Pixel>, } /// the representation of the minimap data on disk #[derive(Clone, PartialEq, Serialize, Deserialize)] pub struct ImageWrapp...
ise-uiuc/Magicoder-OSS-Instruct-75K
std::string Warning::GetMISRAStringWithLanguagePrefix() const { if (misra.find('-') != std::string::npos) return MISRAPrefixCPlusPlus + misra; else if (misra.find('.') != std::string::npos) return MISRAPrefixC + misra; else return ""; } bool Warning::HasCWE() const {
ise-uiuc/Magicoder-OSS-Instruct-75K
var type: CharacterSet? { if CharacterSet.lowercase.characters().contains(self) { return .lowercase } if CharacterSet.uppercase.characters().contains(self) { return .uppercase } if CharacterSet.digits.characters().contains(self) { return .digits } if CharacterSet.symbols.characters()...
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>1-10 from arpwitch import arp_witch def test_name_exist(): aw = arp_witch assert aw.NAME is not None
ise-uiuc/Magicoder-OSS-Instruct-75K
class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad()
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.apache.pdfbox.preflight.process.AbstractProcess;
ise-uiuc/Magicoder-OSS-Instruct-75K
def list_fits(section_list: list, text_channel: discord.TextChannel) -> bool: allow_in: Section for allow_in in section_list: if allow_in.fits(text_channel): return True return False class EventError(Enum): DATE_ERROR = 1 class EventModification:
ise-uiuc/Magicoder-OSS-Instruct-75K
:param repls: Dictionary of replacements :param str: The string to be changed :return: The changed string """ return re.sub('|'.join(re.escape(key) for key in repls.keys()), lambda k: repls[k.group(0)], str)
ise-uiuc/Magicoder-OSS-Instruct-75K
(org_ptr(0x14010dbf0L))(this); }; END_ATF_NAMESPACE
ise-uiuc/Magicoder-OSS-Instruct-75K
path('login/', views.login, name = 'login'), path('createprofile/', views.make_profile, name = 'createprofile'), re_path('profile/(?P<id>\d+)/',views.view_profile,name = 'myprofile'), path('post/',views.posting_project, name='post'), path('logout/',views.logout_user, name='logout'), path('search...
ise-uiuc/Magicoder-OSS-Instruct-75K
return max(list) m = int(len(list) / 2) if list[0] < list[m]: return uncycle(list[m:]) else: return uncycle(list[:m])
ise-uiuc/Magicoder-OSS-Instruct-75K
imap = imaplib.IMAP4_SSL(imapserver) try: imap.login(user,passw) print("Connecting and Fetching required info,Please Wait..")
ise-uiuc/Magicoder-OSS-Instruct-75K
didSet { spinner.isHidden = true } } var minHeightReceiver: CGFloat? var openButtonPressed : (() -> ()) = {} @objc func openButtonAction(_ sender: Any) { openButtonPressed()
ise-uiuc/Magicoder-OSS-Instruct-75K
fields = ["step_text"] class RecipeSerializer(serializers.ModelSerializer): ingredients = IngredientSerializer(many=True, required=False) steps = StepSerializer(many=True, required=False) user = UserSerializer(required=True) def create(self, validated_data): steps_data = validated_dat...
ise-uiuc/Magicoder-OSS-Instruct-75K
fn watch_retransmit_now_flag(&self) -> (bool, WatchFuture<'_, bool>) { (false, WatchFuture::Pending) } fn on_fast_retransmit(&self) {} fn on_base_seq_no_wraparound(&self) {}
ise-uiuc/Magicoder-OSS-Instruct-75K
print('테스트 DB 제거 완료')
ise-uiuc/Magicoder-OSS-Instruct-75K
window.set_title("Minecraft timer"); window.set_border_width(10); window.set_position(gtk::WindowPosition::Center); window.set_default_size(260, 40); let time = String::from("00:00:00"); let label = gtk::Label::new(None); label.set_text(&time); window.add(&label); window.show_all(...
ise-uiuc/Magicoder-OSS-Instruct-75K