seed
stringlengths
1
14k
source
stringclasses
2 values
<div className="App"> <GoogleRecaptchaProvider reCaptchaKey={recaptchaKeyFromEnv} language="en"> <h2>Google Recaptcha Example</h2> {/* <ReCaptchaContentComponent /> */} <GoogleRecaptchaExample /> </GoogleRecaptchaProvider> </div> );
ise-uiuc/Magicoder-OSS-Instruct-75K
app_name = 'users' urlpatterns = [
ise-uiuc/Magicoder-OSS-Instruct-75K
None 9. Class Distribution: number of instances per class
ise-uiuc/Magicoder-OSS-Instruct-75K
{{$messageBody}}
ise-uiuc/Magicoder-OSS-Instruct-75K
return (t != null) && (t.length() > 0) ? Character.valueOf(t.charAt(0)) : null; } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return ""+a; } public static void main(String[] args) { FirstTest x = new FirstTest(); x.setA(10); System.out.println("x: "+x); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
test_filename = os.path.join(os.path.dirname(__file__), fileName) with open(test_filename, mode='rb') as json_file: return json.load(json_file)
ise-uiuc/Magicoder-OSS-Instruct-75K
migrations.AlterField( model_name='comment', name='reply', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='BlogApp.reply'), ),
ise-uiuc/Magicoder-OSS-Instruct-75K
// list.deleteCurrent(); // } // list.next(); // } //输出链表 cout<< "After deleting*****************" << endl; list.reset(); cout << "List: "; //输出各结点数据,直到链表尾 while (!list.endOfList()) {
ise-uiuc/Magicoder-OSS-Instruct-75K
import ssl import time import random host_addr = '127.0.0.1' host_port = 8082 server_sni_hostname = 'example.com' client_cert = 'client.crt' client_key = 'client.key' server_cert = 'server.crt' context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH, cafile=server_cert) context.load_cert_chain(certfile=client_cert, keyfile=client_key)
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>modules/test.py
ise-uiuc/Magicoder-OSS-Instruct-75K
class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle
ise-uiuc/Magicoder-OSS-Instruct-75K
->setCountry($this->faker->country) ->setType($this->faker->randomElement($userAddressTypes)); $this->manager->persist($userAddress); // Association User Custom Phone $userCustomPhone = (6023156326 + $count); // Association User $user = new User();
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash # shellcheck disable=SC2001 echo "${SSH_BASTION_KEY_CONTENTS}" | sed 's/\\n/\n/g' >> vsphere-tests.pem chmod 600 vsphere-tests.pem envsubst < test/infra/vsphere/packer-vsphere-airgap.yaml.tmpl >> "$1"
ise-uiuc/Magicoder-OSS-Instruct-75K
cont.add_particle(pos[i,:],vel[i,:],1.0)
ise-uiuc/Magicoder-OSS-Instruct-75K
bext.fg('random') for i, point in enumerate(points): # Draw our lines: if i == len(points) - 1: # The last point connects to the first point. pointA = point pointB = points[0] else: pointA = point pointB = points[i + 1] for x, y in line(pointA[X], pointA[Y], pointB[X], pointB[Y]): bext.goto(x, y)
ise-uiuc/Magicoder-OSS-Instruct-75K
print("Training is complete. Please check folder: {}".format(trainer.get_local_worker_path()))
ise-uiuc/Magicoder-OSS-Instruct-75K
class Migration(migrations.Migration):
ise-uiuc/Magicoder-OSS-Instruct-75K
// as you specify a parent activity in AndroidManifest.xml. int id = item.getItemId(); //noinspection SimplifiableIfStatement
ise-uiuc/Magicoder-OSS-Instruct-75K
locationOffset += item.length + 1 // 1 for comma let reference = item.components(separatedBy: "=") .first? .trimmingCharacters(in: .whitespacesAndNewlines) .components(separatedBy: .whitespaces) .last if let reference = reference { referencesAndLocations.append((reference, location)) } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import EditPost from '@wordpress/edit-post'; import BlockEditor from '@wordpress/block-editor'; import Blocks from '@wordpress/blocks'; import Components from '@wordpress/components'; import CoreData from '@wordpress/core-data'; import Data from '@wordpress/data';
ise-uiuc/Magicoder-OSS-Instruct-75K
import copy from inspect import signature
ise-uiuc/Magicoder-OSS-Instruct-75K
if (test.Trim().Equals(tagED2KUpper, StringComparison.InvariantCultureIgnoreCase)) { return !notCondition; } #endregion #region Test if ED2K Lower exists // Test if Group Short Name exists - yes it always does string tagED2KLower = Constants.FileRenameTag.ED2KLower.Substring(1, Constants.FileRenameTag.ED2KLower.Length - 1); // remove % at the front if (test.Trim().Equals(tagED2KLower, StringComparison.InvariantCultureIgnoreCase)) { return !notCondition;
ise-uiuc/Magicoder-OSS-Instruct-75K
file_loader = FileSystemLoader('/opt/templates')
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Adds tags to a GameSparks resource. /// </summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
import { map } from './map.js' import { isParent } from './is.js' export function reverse(root: LHAST.Root): LHAST.Root { return map( root , node => { if (isParent(node)) { return { ...node , children: reverseArray(node.children) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
UIAlertAction, UIAlertActionStyle, UIAlertController, UIAlertControllerStyle, )
ise-uiuc/Magicoder-OSS-Instruct-75K
from typing import TYPE_CHECKING from numpy import e from tcod.console import Console from tcod.map import compute_fov import exceptions, render_functions from message_log import MessageLog
ise-uiuc/Magicoder-OSS-Instruct-75K
for i, row in enumerate(grid): for j, value in enumerate(row): grid_copy[i][j] = grid[i][len(row) - 1 - j] return ["".join(row) for row in grid_copy] def rotate_grid_90_deg(grid): grid_copy = grid.copy() reverted = list(zip(*reversed(grid_copy))) return ["".join(row) for row in reverted] # --------------------------------------------------------------------------------
ise-uiuc/Magicoder-OSS-Instruct-75K
def call_estimator(v0, kappa, theta, sigma, T, r, K, M, I): ''' Estimation of European call option price in GL96 Model via Monte Carlo simulation Parameters ========== v0: float (positive) current volatility level
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { return mid } }
ise-uiuc/Magicoder-OSS-Instruct-75K
else: print("Files don't exist")
ise-uiuc/Magicoder-OSS-Instruct-75K
{ try { $name = $request->post('name'); $route = $request->post('route'); $sort = $request->post('sort'); $description = $request->post('description'); $parents = $request->post('parents'); if (empty($name) || empty($route)) { return response()->json(['succ' => false, 'code' => 501, 'message' => 'Lỗi param', 'data' => null]); } else {
ise-uiuc/Magicoder-OSS-Instruct-75K
// by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.*")] [assembly: InternalsVisibleTo("HamAprsParser.Tests")] [assembly: CLSCompliant(true)]
ise-uiuc/Magicoder-OSS-Instruct-75K
'SymmetricElliot', 'SoftPlus', 'SoftSign']) def test_activation(self, activation): input = np.arange(24).reshape((4, 6)) npdl_act = activations.get(activation) if activation == 'sigmoid': f_res = npdl_act.forward(input)
ise-uiuc/Magicoder-OSS-Instruct-75K
The map has operation names as the keys and functions as values. """ return {"create-cluster": create_cluster, "delete-cluster": delete_cluster, "update-cluster": update_cluster} def queryable(func): def wrapper(dest_func, _body, kwargs): query = kwargs.pop("query", None) ret = func(dest_func, _body, kwargs) try: return jmespath.search(query, ret) if query else ret except jmespath.exceptions.ParseError:
ise-uiuc/Magicoder-OSS-Instruct-75K
import logging temp_aetest = AEtest()
ise-uiuc/Magicoder-OSS-Instruct-75K
"sig":"http://150.95.139.51/nginx/secret.key", "role":"admin" } encoded = jwt.encode(payload, key=base64.b64encode(b"A" * 32), algorithm='HS256') print(encoded)
ise-uiuc/Magicoder-OSS-Instruct-75K
create_time = db.Column(db.DATETIME(6), default=datetime.datetime.now)
ise-uiuc/Magicoder-OSS-Instruct-75K
"subcategory": "Input 32-63 (APORT3)", "allowedconflicts": ["BSP_CSEN_BONDED_INPUT", "BSP_CSEN_SCAN_INPUT"], "mode": "bonded", } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public string FilePath
ise-uiuc/Magicoder-OSS-Instruct-75K
using System; using System.Runtime.InteropServices; namespace TerraFX.Interop { public static unsafe partial class Windows { [DllImport("kernel32", ExactSpelling = true, SetLastError = true)] [return: NativeTypeName("BOOL")] public static extern int GlobalMemoryStatusEx([NativeTypeName("LPMEMORYSTATUSEX")] MEMORYSTATUSEX* lpBuffer);
ise-uiuc/Magicoder-OSS-Instruct-75K
total_loss /= total_class_weights
ise-uiuc/Magicoder-OSS-Instruct-75K
[JsiiProperty(name: "action", typeJson: "{\"collection\":{\"elementtype\":{\"fqn\":\"aws.WafRuleGroupActivatedRuleAction\"},\"kind\":\"array\"}}")]
ise-uiuc/Magicoder-OSS-Instruct-75K
pub mod funcs; pub mod tr; pub use funcs::*; use tr::Flt;
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/bin/bash dieharder -d 2 -g 16 -S 915816865
ise-uiuc/Magicoder-OSS-Instruct-75K
let config = config::parse_args(); process_file(&config); } #[cfg(test)] mod tests { use super::*; #[test] fn one_entry_spanning_midnight_to_midnight_yield_one_day_report() { let year = 2020;
ise-uiuc/Magicoder-OSS-Instruct-75K
x: true, y: true, minHeight: 0, minWidth: 0 }; export default defaultOptions;
ise-uiuc/Magicoder-OSS-Instruct-75K
parser.add_argument("--one_traj",action="store_true") args = parser.parse_args() agent, mdp, _hdf = load_agent_and_mdp(args.hdf,args.load_idx) from matplotlib.patches import Ellipse import matplotlib.pyplot as plt fig1,(ax0,ax1)=plt.subplots(2,1) fig2,(ax3)=plt.subplots(1,1) h = mdp.halfsize while True: path = [] init_arrs, traj_arrs = rollout(mdp,agent,999999,save_arrs=["m","o","a"])
ise-uiuc/Magicoder-OSS-Instruct-75K
public interface IOwnershipMetaData { Guid OwnerId { get; } int OwnershipType { get; }
ise-uiuc/Magicoder-OSS-Instruct-75K
validators=[ InputRequired(INPUT_REQUIRED_MESSAGE)
ise-uiuc/Magicoder-OSS-Instruct-75K
} // CHECK: @end
ise-uiuc/Magicoder-OSS-Instruct-75K
sae: false, mask: None,
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in range(nt): F_CH4[i] = beta[0] * (C_CH4[i]-PI[0]) F_CO[i] = beta[1] * (em_CO[i]-PI[1]) F_NMVOC[i] = beta[2] * (em_NMVOC[i]-PI[2]) F_NOx[i] = beta[3] * (em_NOx[i]-PI[3]) # Include the effect of climate feedback? We fit a curve to the 2000, 2030 # and 2100 best estimates of feedback based on middle-of-the-road # temperature projections. def temperature_feedback(T, a=0.03189267, b=1.34966941, c=-0.03214807): if T<=0: return 0
ise-uiuc/Magicoder-OSS-Instruct-75K
DatasetMapper(self.cfg,True) ) )) return hooks def custom_mapper(dataset_list): dataset_list = copy.deepcopy(dataset_list) # it will be modified by code below
ise-uiuc/Magicoder-OSS-Instruct-75K
axs[i,j].plot(np.squeeze(MODELS_ITER[-1,:,j]),np.squeeze(MODELS_ITER[-1,:,i]),'.g') axs[i,j].plot(ModelBench[j],ModelBench[i],'.r') if nbParam > 8: axs[i,j].set_xticks([]) axs[i,j].set_yticks([])
ise-uiuc/Magicoder-OSS-Instruct-75K
} } if (empty($subscription->discounts)) { $subscription->setDiscounts([new SubscriptionDiscount()]); } return $this->renderAjax('/subscription/create', [ 'model' => $subscription, 'title' => \Yii::t('subscription', 'Update subscription'), ]); } /** * @param int $counter
ise-uiuc/Magicoder-OSS-Instruct-75K
pytest.skip()
ise-uiuc/Magicoder-OSS-Instruct-75K
that shouldn't get back the same cached instance. Returns: A tuple of node and instance variable. """ key = (self.frame and self.frame.current_opcode, extra_key, cls) instance = self._instance_cache.get(key) if not instance or isinstance(instance, _Initializing): clsvar = cls.to_variable(node)
ise-uiuc/Magicoder-OSS-Instruct-75K
class LinkSmearConfig(AppConfig): name = "linksmear"
ise-uiuc/Magicoder-OSS-Instruct-75K
from_obj (obj or iterable) given, at_msg_send will be called. This value will be passed on to the protocol. If iterable, will execute hook on all entities in it. """ if not text: text = "<silence>"
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in 0..b { v.push(format!("{}: {}", i, a)); } v }; let curry = Curry(fun); let curry1 = curry.call(String::from("hello!"));
ise-uiuc/Magicoder-OSS-Instruct-75K
} //============================================================================== template <std::size_t N> Eigen::Matrix<double, N, 1> toVectorNd(const std::string& str)
ise-uiuc/Magicoder-OSS-Instruct-75K
$project->setBeginAt($formData['beginAt']);
ise-uiuc/Magicoder-OSS-Instruct-75K
city = City.objects.get(id=request.data['city_id']) University.objects.create(name=name, country=country, city=city) return Response() def delete(selfself, request): id = request.data['id']
ise-uiuc/Magicoder-OSS-Instruct-75K
'''add value to binery tree ''' if self.root == None: self.root = Node(value) else: current=self.root while current: if value < current.value : if current.left == None: current.left = Node(value) break current = current.left
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': list_stack = LinkedListStack() while True:
ise-uiuc/Magicoder-OSS-Instruct-75K
#[perseus::head] pub fn head() -> View<SsrNode> { view! { title { "Index Page" } } } pub fn get_template<G: Html>() -> Template<G> { Template::new("index").template(index_page).head(head) }
ise-uiuc/Magicoder-OSS-Instruct-75K
from optimization import * from lightgbm import LGBMModel from sklearn.datasets import load_wine from sklearn.model_selection import train_test_split class PipelineTest(unittest.TestCase): def setUp(self): self.X, self.y = load_wine(True) self.X, self.y = self.X[(self.y == 0) | (self.y == 1), :], self.y[(self.y == 0) | (self.y == 1)]
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <summary> /// Total health of the actor. -1 if information is missing (ex: players) /// </summary> public int TotalHealth { get; set; }
ise-uiuc/Magicoder-OSS-Instruct-75K
# return to the original folder popd > /dev/null
ise-uiuc/Magicoder-OSS-Instruct-75K
for channel_idx, coded_frag in enumerate(coded_fragments): nerrors, fragment = self.rs.decode(coded_frag) if nerrors < 0: # Recovery failed fragment = None else: focus.link.mask_fragments(fragment, channel_idx) fragments.append(fragment) result = {'fragments': fragments} if debug: result.update({'coded_fragments': coded_fragments, 'symbols': symbols, 'corners': corners,
ise-uiuc/Magicoder-OSS-Instruct-75K
with open(file) as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
UserLocationsDialog::UserLocationsDialog(QWidget* parent) : QDialog(parent), _ui(), _proxyModel(this), _userLocationsModel(this) { _ui.setupUi(this); _proxyModel.setSourceModel(&_userLocationsModel); _proxyModel.setDynamicSortFilter(true);
ise-uiuc/Magicoder-OSS-Instruct-75K
\`\`\`starlark load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_lambda", sha256 = "${SHA}",
ise-uiuc/Magicoder-OSS-Instruct-75K
# prepare text output text_exp = explainer.parse_text_values(text_shap_values, label_index=label_to_exp) text_exp = { k: v for k, v in sorted(text_exp[0].items(), key=lambda item: item[1], reverse=True) }
ise-uiuc/Magicoder-OSS-Instruct-75K
#init the MinecraftShape MinecraftShape.__init__(self, self.mc, self.pos, visible = False) #create the AstroPi using setBlock(s) commands #boards self.setBlocks(-6, -3, -9, 7, -3, 11, 35, 13, tag = "rpi_board") self.setBlocks(-6, 0, -9, 7, 0, 6, 35, 13, tag = "astropi_board") #pillars self.setBlocks(-6, -2, -9, -6, -1, -9, 42) self.setBlocks(7, -2, -9, 7, -1, -9, 42) self.setBlocks(-6, -2, 6, -6, -1, 6, 42) self.setBlocks(7, -2, 6, 7, -1, 6, 42)
ise-uiuc/Magicoder-OSS-Instruct-75K
for i in 0..NTHREADS { // Spin up another thread children.push(thread::spawn(move || { println!("this is thread number {}", i); })) } for child in children { // Wait for the thread to finish. Return a result. let _ = child.join(); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
</button> ); }
ise-uiuc/Magicoder-OSS-Instruct-75K
else echo "Building and testing" ./mvnw verify --no-transfer-progress -Djgiven.report.text=false || exit 1 fi
ise-uiuc/Magicoder-OSS-Instruct-75K
# count the number of missing showable entries by placement in a targeting log file docker logs f5b |grep "Missing" |awk '{ print $9 }' |sort |uniq -c
ise-uiuc/Magicoder-OSS-Instruct-75K
def validate_msg(msg):
ise-uiuc/Magicoder-OSS-Instruct-75K
u=df['Mean'] X_t= u[0] sd=df['St dev'] print("Month,Year,Inflow") #lag -1 correlation lag=df['co relation'] np.random.seed(9001) for i in range(number_of_days): rn=np.random.normal(0,1,1)[0] z_t=(X_t-u[day])/sd[day] z_t1=lag[day]*z_t+rn*math.sqrt(1-lag[day]*lag[day]) X_t1=u[(day+1)%365]+z_t1*sd[(day+1)%365]
ise-uiuc/Magicoder-OSS-Instruct-75K
HackerRanch Challenge: XML 1 - Find the Score You are given a valid XML document, and you have to print its score. The score is calculated by the sum of the score of each element. For any element, the score is equal to the number of attributes it has. Input Format The first line contains N, the number of lines in the XML document. The next N lines follow containing the XML document. Output Format
ise-uiuc/Magicoder-OSS-Instruct-75K
self.countStyle = countStyle } public func stringValue() -> String { switch bytes { case 0..<countStyle: return "\(bytes) " + "bytes".locale(AppSd.translateUnits) case countStyle..<(countStyle * countStyle):
ise-uiuc/Magicoder-OSS-Instruct-75K
during RAID configuration. Otherwise, no root volume is created. Default is True. :param create_nonroot_volumes: If True, non-root volumes are created. If False, no non-root volumes are created. Default
ise-uiuc/Magicoder-OSS-Instruct-75K
//----------------------------------------------------------------------------- UltrasoundPointerBasedCalibration::UltrasoundPointerBasedCalibration() { m_ScalingMatrix = vtkSmartPointer<vtkMatrix4x4>::New(); m_ScalingMatrix->Identity(); m_RigidBodyMatrix = vtkSmartPointer<vtkMatrix4x4>::New(); m_RigidBodyMatrix->Identity(); m_UltrasoundImagePoints = mitk::PointSet::New(); m_SensorPoints = mitk::PointSet::New(); this->Modified(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
return dissonant() # "Out of bounds: %s" % note.index historiography_note_nout = HistoriographyNoteSlur( SetNoteNoutHash(note.nout_hash), HistoriographyNoteNoutHash.for_object(HistoriographyNoteCapo()) ) child, child_annotated_hashes = recurse(historiography_note_nout) children = l_insert(structure.children, note.index, child) historiographies = l_insert(
ise-uiuc/Magicoder-OSS-Instruct-75K
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 <NAME> * * This library is free software; you can redistribute it and/or
ise-uiuc/Magicoder-OSS-Instruct-75K
return tweets def get_corpus_of_most_active_users(n_users=5): tweets = []
ise-uiuc/Magicoder-OSS-Instruct-75K
let scrollHeight = view.height scrollView.contentSize = CGSize(width: scrollWidth, height: scrollHeight) leftVc.view.frame = CGRect(x: 0,
ise-uiuc/Magicoder-OSS-Instruct-75K
fileSystem.create_folder(&user, folderName);
ise-uiuc/Magicoder-OSS-Instruct-75K
handle = open("Models/{0}/Loss.txt".format(testName), "r") L = handle.read() handle.close() L = L[1:-1] L = L.split(",") lossList = [] for loss in L: lossList.append(float(loss))
ise-uiuc/Magicoder-OSS-Instruct-75K
# Only supports monitors layed out in a single row. Tiles window on the current monitor. # ## TODO The current implementation does a bunch of screen space searches to find ## the monitor. It's probably possible to use the output of `xdotool ## getactivewindow` somehow to skip the search. set -e SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" SOURCE="$(readlink "$SOURCE")" [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
ise-uiuc/Magicoder-OSS-Instruct-75K
/// This is the struct on which the listener is implemented. struct Mouthpiece<'a> { channel: &'a str, message: String,
ise-uiuc/Magicoder-OSS-Instruct-75K
2012/12/13 17:51:53.412 [nutnr:DLOGP1]:S 2012/12/13 17:51:53.633 [nutnr:DLOGP1]:O 2012/12/13 17:51:53.862 [nutnr:DLOGP1]:S 2012/12/13 17:51:54.088 [nutnr:DLOGP1]:Y 2012/12/13 17:51:54.312 [nutnr:DLOGP1]:1 2012/12/13 17:51:54.548 [nutnr:DLOGP1]:T 2012/12/13 17:51:54.788 [nutnr:DLOGP1]:Y 2012/12/13 17:51:55.011 [nutnr:DLOGP1]:3 2012/12/13 17:51:55.243 [nutnr:DLOGP1]:L
ise-uiuc/Magicoder-OSS-Instruct-75K
new Identifier("deep_trenches:textures/entity/threadfin_dragonfish/flank.png"), new Identifier("deep_trenches:textures/entity/threadfin_dragonfish/lure.png") }; @Override public Identifier getAnimationFileLocation(ThreadfinDragonfishEntity animatable) { return new Identifier("deep_trenches:animations/threadfin_dragonfish.json"); }
ise-uiuc/Magicoder-OSS-Instruct-75K
"plotly", "pytest", "scipy",
ise-uiuc/Magicoder-OSS-Instruct-75K
println!("fps stats - {}", frame_counter); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
ret, corners = cv2.findChessboardCorners(gray, (9,6),None) # If found, add object points, image points if ret == True: objpoints.append(objp) imgpoints.append(corners) # Draw and display the corners img = cv2.drawChessboardCorners(img, (9,6), corners, ret) rgb_img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
ise-uiuc/Magicoder-OSS-Instruct-75K