seed
stringlengths
1
14k
source
stringclasses
2 values
#axes.patch.set_facecolor("black") #we draw the line connecting vertices once for i in range(N): curr = points_map[i] row = A[i] for j, connected in enumerate(row): if connected: conn_point = points_map[j] plt.plot([curr[0], conn_point[0]], [curr[1], conn_point[1]], color="black", markersize=1.0)
ise-uiuc/Magicoder-OSS-Instruct-75K
np.testing.assert_allclose(imf.kroupa(inp), out, rtol=rtol, atol=atol) np.testing.assert_allclose(kroupa(inp), imf.kroupa(inp))
ise-uiuc/Magicoder-OSS-Instruct-75K
op = CreateOperation(*exp) self.operations.append(op) return op.get_instances() def return_values(self, *exp: Expression): op = ReturnOperation(*exp)
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * */ package gov.nih.nci.calims2.ui.common.type; import static org.junit.Assert.assertEquals; import java.util.Stack;
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_get_unique_name(metavdirs): path = metavdirs vdirs = list(get_all_vdirs(path + '/*/*')) names = [] for vdir in sorted(vdirs): names.append(get_unique_name(vdir, names)) assert names == [ 'my private calendar', 'my calendar', 'public', 'home', 'public1', 'work', 'cfgcolor', 'cfgcolor_again', 'cfgcolor_once_more', 'dircolor',
ise-uiuc/Magicoder-OSS-Instruct-75K
String mEmail = ""; String mFullName = ""; String mPassword = ""; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_registration_show); mtFullName = (TextView) findViewById(R.id.show_reg_fullname); mtEmail = (TextView) findViewById(R.id.show_reg_email); mtPassword = (TextView) findViewById(R.id.show_reg_password);
ise-uiuc/Magicoder-OSS-Instruct-75K
@RequestMapping("/api/v1/") public class UserController { private static final String TOPIC = "Kafka_NewUser_Registration"; private UserService userService; private KafkaTemplate<String, User> kafkaTemplate; @Autowired public UserController(UserService userService, KafkaTemplate<String, User> kafkaTemplate) { this.userService = userService; this.kafkaTemplate = kafkaTemplate; } //Request mapping for posting user details @PostMapping("register")
ise-uiuc/Magicoder-OSS-Instruct-75K
//# sourceMappingURL=TSpanElement.d.ts.map
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>AnzhelaSukhanova/spacer_fuzzer #!/usr/bin/python QUERIES = 'clean_seeds' COVERAGE = 'clean_seeds_coverage' import os
ise-uiuc/Magicoder-OSS-Instruct-75K
} class TestClass: TestProtocol { func foofoo() -> Int { return 0 } }
ise-uiuc/Magicoder-OSS-Instruct-75K
return $completed; } public static function getPaid($id){ $paid = Order::where('waiter_id',$id)->where('is_paid',1)->count(); return $paid; } public static function getUnpaid($id){ $unpaid = Order::where('waiter_id',$id)->where('is_paid',0)->count(); return $unpaid;
ise-uiuc/Magicoder-OSS-Instruct-75K
serializer.serialize_i64(duration.whole_minutes()) } pub fn deserialize<'de, D>(deserializer: D) -> Result<Duration, D::Error> where D: Deserializer<'de>, { deserializer.deserialize_i64(DurationVisitor) } struct DurationVisitor; impl<'de> Visitor<'de> for DurationVisitor { type Value = Duration;
ise-uiuc/Magicoder-OSS-Instruct-75K
矩阵的转置是指将主对角线翻转,交换矩阵的行索引和列索引。 **test case** >>> matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] >>> transpose(array=matrix) [[1, 4, 7], [2, 5, 8], [3, 6, 9]] >>> matrix = [[1, 2, 3], [4, 5, 6]] >>> transpose(array=matrix) [[1, 4], [2, 5], [3, 6]] # Solution
ise-uiuc/Magicoder-OSS-Instruct-75K
fi echo "INFO: apply sysctl: $CONTRAIL_SYSCTL_TUNING" # accept comman and space separated list l1=${CONTRAIL_SYSCTL_TUNING//,/ } l2=${l1//=/ }
ise-uiuc/Magicoder-OSS-Instruct-75K
def sections(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
#!/usr/bin/env bash if [[ "$TRAVIS_PULL_REQUEST" != "false" ]] || ([[ -z "$TRAVIS_TAG" ]] && [[ "$TRAVIS_BRANCH" != "master" ]]); then echo "Skipping deploy - this is not master" exit 0 fi cd website/_site git init
ise-uiuc/Magicoder-OSS-Instruct-75K
cand.append(row[2]) #creates an array with each candidate votes[row[2]] = 0 #tracks votes for the candidate votes[row[2]] = votes[row[2]] + 1 #adds vote count to candidate #printing results print(f'\n ELECTION RESULTS \n-------------------------------') print("Total Votes: ", counter, '\n-----------------------------' ) #display candidate and votes
ise-uiuc/Magicoder-OSS-Instruct-75K
from leapp.models import Model, fields from leapp.topics import SystemInfoTopic
ise-uiuc/Magicoder-OSS-Instruct-75K
def makeSlices(width, height, inputFileName, outputFileName): slices = SlicedImage(width, height);
ise-uiuc/Magicoder-OSS-Instruct-75K
{ "Build" }, expressions: new[] {
ise-uiuc/Magicoder-OSS-Instruct-75K
Ok(context) }
ise-uiuc/Magicoder-OSS-Instruct-75K
if line.startswith("#"): break commit_msg += line commit_msg = commit_msg.rstrip() searchObj = re.search("--story=[0-9]+", commit_msg) if not searchObj:
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self, url): if not re.match(r'^(s3:)?//', url):
ise-uiuc/Magicoder-OSS-Instruct-75K
datac=data-np.tile(np.mean(data,axis=1),(n,1)) #Find the covariance matrix.s covm =np.cov(datac) eigval,eigvec=np.linalg.eig(covm)
ise-uiuc/Magicoder-OSS-Instruct-75K
extern crate diesel; extern crate dotenv;
ise-uiuc/Magicoder-OSS-Instruct-75K
}) export class SidebarComponent implements OnInit { public menuItems: any[];
ise-uiuc/Magicoder-OSS-Instruct-75K
// // Array+Helper.swift // Twit_Split // // Created by TriNgo on 10/3/17. // Copyright © 2017 TriNgo. All rights reserved. // import Foundation @testable import Twit_Split extension Array where Element == TwitObj {
ise-uiuc/Magicoder-OSS-Instruct-75K
print 'Hostname could not be resolved.' sys.exit() except socket.error: print "Could not connect to host." sys.exit() swatch = datetime.now() total = swatch - timex print 'Scanning completed in: ', total
ise-uiuc/Magicoder-OSS-Instruct-75K
. .enter_the_maze.sh
ise-uiuc/Magicoder-OSS-Instruct-75K
) def initialize_object(self) -> CheckpointSaver: try: save_interval = Time.from_timestring(self.save_interval) except ValueError: # assume it is a function path save_interval = import_object(self.save_interval) return CheckpointSaver( folder=self.save_folder, filename=self.filename, artifact_name=self.artifact_name, latest_filename=self.latest_filename, overwrite=self.overwrite, save_interval=save_interval,
ise-uiuc/Magicoder-OSS-Instruct-75K
#endif /// !__QUEUES_PLUS_PLUS_TYPES_HPP_
ise-uiuc/Magicoder-OSS-Instruct-75K
String prevValue = System.getProperty(PlatformUtils.PLATFORM_PREFIX_KEY); System.setProperty(PlatformUtils.PLATFORM_PREFIX_KEY, platformPrefix); Disposer.register( parentDisposable, () -> { if (prevValue != null) {
ise-uiuc/Magicoder-OSS-Instruct-75K
fj.write('') app.run()
ise-uiuc/Magicoder-OSS-Instruct-75K
docker node update --label-add mongo.role=cfg2 server-jj95enl docker node update --label-add mongo.role=data2 server-jj95enl docker node update --label-add mongo.role=mongos1 server-jj95enl docker node update --label-add mongo.role=cfg3 tp01-2066 docker node update --label-add mongo.role=data3 tp01-2066
ise-uiuc/Magicoder-OSS-Instruct-75K
from haystack.indexes import Indexable from opps.containers.search_indexes import ContainerIndex
ise-uiuc/Magicoder-OSS-Instruct-75K
</ul> </div> <div class="menu01"> <center> <a href="file:///C:/www/taweechai/babbaan.html"><img src="images/menu01.jpg"class="menu1"></a> <a href="file:///C:/www/taweechai/Promotion.html"><img src="images/menu02.jpg"class="menu1"></a> <a href="file:///C:/www/taweechai/work.html"><img src="images/menu03.jpg"class="menu1"></a> <a href="file:///C:/www/taweechai/Question.html"><img src="images/menu04.jpg"class="menu1"></a> <a href="file:///C:/www/taweechai/we.html"><img src="images/menu05.jpg"class="menu1"></a> </center> </div>
ise-uiuc/Magicoder-OSS-Instruct-75K
from atomicpress.app import app from atomicpress.models import Post, PostStatus def gen_post_status(): """ Show only published posts outside debug. """ if not app.config["DEBUG"]: post_status = and_(Post.status == PostStatus.PUBLISH) else: post_status = or_(Post.status == PostStatus.PUBLISH,
ise-uiuc/Magicoder-OSS-Instruct-75K
print "cmp", type(self), type(rhs) return 0 l = [C(), D()] for lhs in l: for rhs in l: r = cmp(lhs, rhs)
ise-uiuc/Magicoder-OSS-Instruct-75K
"target": __arguments.target if __arguments.target else DEFAULT_TARGET, "source": __arguments.files_folder }
ise-uiuc/Magicoder-OSS-Instruct-75K
typedef typename Cache<TagStore>::MemSidePacketQueue MemSidePacketQueue;
ise-uiuc/Magicoder-OSS-Instruct-75K
for child in self.__children: self.game.modes.add(child) def mode_stopped(self): """Notifies the mode that it has been removed from the mode queue. This method should not be invoked directly; it is called by the GameController run loop. """ for child in self.__children:
ise-uiuc/Magicoder-OSS-Instruct-75K
multiboot.modules(|m| { println!("Module"); let data = unsafe { m.data(&KERNEL_PHYSICAL_MEMORY) }; let addr = VirtualAddress(data.as_ptr() as usize); let size = data.len(); if u16::from_le_bytes(data[0..2].try_into().unwrap()) == 0o070707 { // Binary cpio
ise-uiuc/Magicoder-OSS-Instruct-75K
if LOG_INDIVIDUAL: self.bg_times.append([]) else: # in single timer scheduling the kernel is restarted # but we already got a new list from resume() after the context switch assert self.bg_times[-1] == [] super().finish(current_time)
ise-uiuc/Magicoder-OSS-Instruct-75K
urlpatterns = [ path('', TemplateView.as_view(template_name='index.html'), name='index'), path('formulario/', TemplateView.as_view(template_name='index.html'), name='formulario'), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
num_samples = data_inputs.shape[0] num_feature_elements = data_inputs.shape[1] print("Number of features: ",num_feature_elements) ########################### For KFold Cross Validation ############################## from numpy import array from sklearn.model_selection import KFold from sklearn.model_selection import train_test_split
ise-uiuc/Magicoder-OSS-Instruct-75K
def __init__(self,nr_examples=100,g1 = [[-5,-5],1], g2 = [[5,5],1],balance=0.5,split=[0.8,0,0.2]): nr_positive = nr_examples*balance # number of examples of "positive" class nr_negative = nr_examples - nr_positive # number of examples of "negative" class self.mean1 = g1[0] # mean of positive class self.mean2 = g2[0] # mean of negative class self.variance1 = g1[1] # self.variance2 = g2[1] self.balance = balance self.nr_points = nr_examples X_pos_1 = np.random.normal(g1[0][0],g1[1],[nr_positive,1])
ise-uiuc/Magicoder-OSS-Instruct-75K
tgt_pc = self.read_points(target_path) return { 'src_shape': src_pc, 'src_A': src_A, 'src_P': src_P, 'src_path': source_path, 'tgt_shape': tgt_pc,
ise-uiuc/Magicoder-OSS-Instruct-75K
use bevy::prelude::Component; use bevy::reflect::GetTypeRegistration; use std::fmt::Debug; use std::hash::Hash; #[cfg(feature = "2D")] pub use {hexagon_2d_cell::*, moore_2d_cell::*, neumann_2d_cell::*}; #[cfg(feature = "3D")] pub use {moore_3d_cell::*, neumann_3d_cell::*}; #[cfg(feature = "2D")] mod hexagon_2d_cell;
ise-uiuc/Magicoder-OSS-Instruct-75K
@Component
ise-uiuc/Magicoder-OSS-Instruct-75K
fast = fibonacci.FibRecursFast(n) if(naive != fast): print('Wrong answer', naive, fast) return else: print('Ok')
ise-uiuc/Magicoder-OSS-Instruct-75K
__taskname__ = 'skymatch' from . import parseat # noqa: F401 from . import utils # noqa: F401 from . import pamutils # noqa: F401 from . import region # noqa: F401 from . import skystatistics # noqa: F401 from . import skyline # noqa: F401 from . import skymatch # noqa: F401 from stsci.tools import teal teal.print_tasknames(__name__, os.path.dirname(__file__))
ise-uiuc/Magicoder-OSS-Instruct-75K
.formLayout_2 label { text-align: right; padding-right: 20px; font-size: 16px; font-weight: bold; } br { clear: left; } </style>
ise-uiuc/Magicoder-OSS-Instruct-75K
// global VecWrapper table: state.new_metatable("VecWrapper"); // copy reference to VecWrapper table state.push_value(-2);
ise-uiuc/Magicoder-OSS-Instruct-75K
cabal update cabal install happy cabal install ghc-mod cabal install hoogle hdevtools
ise-uiuc/Magicoder-OSS-Instruct-75K
# Iterate through projects proj_instances = proj_instances.prefetch_related("owner__useraccount")
ise-uiuc/Magicoder-OSS-Instruct-75K
# Confirmed bug on 4.0.0.2384, 3.0.8.33425 # Checked on: 4.0.0.2387, 3.0.8.33426 -- all OK. #
ise-uiuc/Magicoder-OSS-Instruct-75K
extract=$(( ${3}*98/${count} )) filtlong -p $extract $1 | gzip > $2
ise-uiuc/Magicoder-OSS-Instruct-75K
"Programming Language :: Python :: 3.10", "Intended Audience :: Developers", "Intended Audience :: Customer Service", "Intended Audience :: Financial and Insurance Industry", ], include_package_data=True, # for MANIFEST.in python_requires='>=3.6.0',
ise-uiuc/Magicoder-OSS-Instruct-75K
values[i] = get_value(code, params[i] + base) if values[0] == 0: pos = values[1] else:
ise-uiuc/Magicoder-OSS-Instruct-75K
m = tf.reduce_sum(positive_idx) n = tf.reduce_sum(negative_idx) p1 = tf.reduce_sum(positive_idx * golden_prob) p2 = tf.reduce_sum(negative_idx * golden_prob) neg_weight = p1 / (m+n-p2 + 1e-8) all_one = tf.ones(tf.shape(golden_prob)) balanced_weight = all_one * positive_idx + all_one * neg_weight * negative_idx loss = - balanced_weight * cost return loss
ise-uiuc/Magicoder-OSS-Instruct-75K
nome = str(input('Digite o seu nome completo: ')).strip() pnome = nome.split() print('Nome completo: {}'.format(nome).title()) print('Nome nome em maiúsculo é: {}'.format(nome.upper())) print('Nome nome em minúsculo é: {}'.format(nome.lower())) print('Seu nome completo possui {} letras'.format(len(nome) - nome.count(' '))) print('Seu primeiro nome é {} e possui {} letras'.format(pnome[0].upper(), len(pnome[0])))
ise-uiuc/Magicoder-OSS-Instruct-75K
typedef = cls.normalize_definition(typedef) args = JSONObjectMetaschemaType.decode_data( obj, {'properties': typedef.get('args', {})}) return typedef['class'](**args)
ise-uiuc/Magicoder-OSS-Instruct-75K
router.register(r'comments', CommentViewSet) router.register(r'crowds', CrowdViewSet)
ise-uiuc/Magicoder-OSS-Instruct-75K
public protocol ReissueCertificateOrderRequestPropertiesProtocol : Codable { var keySize: Int32? { get set }
ise-uiuc/Magicoder-OSS-Instruct-75K
''' Create a Baselight folder with current date and time stamp. You must refresh the Job Manager after running the script. Copyright (c) 2020 <NAME>, Igor [at] hdhead.com, www.metafide.com ''' import flapi from getflapi import getflapi from datetime import datetime
ise-uiuc/Magicoder-OSS-Instruct-75K
(u'k__Bacteria', u'p__Bacteroidetes'), (u'k__Bacteria', u'p__Cyanobacteria'), (u'k__Bacteria', u'p__Firmicutes'),
ise-uiuc/Magicoder-OSS-Instruct-75K
from onnxconverter_common.utils import * # noqa
ise-uiuc/Magicoder-OSS-Instruct-75K
cli_parser.add_argument('-o', '--output', help="write result to FILE.") cli_parser.add_argument('-e', '--encoding', default='utf-8', help="content encoding") cli_parser.add_argument('-p', '--preprocessor', default='plim:preprocessor', help="Preprocessor instance that will be used for parsing the template") cli_parser.add_argument('-H', '--html', action='store_true', help="Render HTML output instead of Mako template") cli_parser.add_argument('-V', '--version', action='version', version='Plim {}'.format(get_distribution("Plim").version))
ise-uiuc/Magicoder-OSS-Instruct-75K
echo "Enable RabbitMQ Management API" rabbitmq-plugins enable rabbitmq_management
ise-uiuc/Magicoder-OSS-Instruct-75K
<Heading as="h3" color="primary" fontSize={[3, 4]} mb={3} textAlign="left" fontWeight={400} width='40vw' lineHeight='2.2rem' > {description} </Heading>
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public List<User> listUserByStore(MerchantStore store) { QUser qUser = QUser.user; JPQLQuery query = new JPAQuery (getEntityManager());
ise-uiuc/Magicoder-OSS-Instruct-75K
for count, f in enumerate(files): input = f out = out_files[count] cmd = 'ffmpeg -i ' + input + ' -c:a aac -c:v libx264 -crf 20 -preset fast -f mov ' + out
ise-uiuc/Magicoder-OSS-Instruct-75K
sed -i -r '/elseif szType == ("ssd"|'\''vmess'\'') then/i\\t\tresult.fast_open = "1"' feeds/helloworld/luci-app-ssr-plus/root/usr/share/shadowsocksr/subscribe.lua #Backup OpenClash cofig echo '/etc/openclash/' >> package/base-files/files/etc/sysupgrade.conf # Update Luci theme argon rm -rf package/lean/luci-theme-argon git clone -b 18.06 https://github.com/jerrykuku/luci-theme-argon.git package/lean/luci-theme-argon
ise-uiuc/Magicoder-OSS-Instruct-75K
from . import exceptions
ise-uiuc/Magicoder-OSS-Instruct-75K
var result = Target.BuildGenerator(); result.Seeds.GetValue().Should().NotBeEmpty(); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
echo -e "CONTIG\tPOS\tREF\tALT\tMIS" > "$OUT_DIR/$out_base.snp_counts" grep '^CONTIG' $f | awk '{FS="\t"}{OFS="\t"}{print $2,$4,$6,$8,$10}' >> "$OUT_DIR/$out_base.snp_counts" done
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == '__main__': ext = ['jpg', 'jpeg', 'png'] files = os.listdir('.') for file in files: if file.split('.')[-1] in ext: process_image(file)
ise-uiuc/Magicoder-OSS-Instruct-75K
list_string=['info 1', 'info 2', 'info 3'] list_string=["PBO", "pemrograman web", "Grafika Komputer"]
ise-uiuc/Magicoder-OSS-Instruct-75K
print(request.method, request.path, "angefragt durch:", name, email) objects = function(*args, **kwargs) return objects else: return '', 401 # UNAUTHORIZED !!! except ValueError as exc: # This will be raised if the token is expired or any other # verification checks fail.
ise-uiuc/Magicoder-OSS-Instruct-75K
""" An abstract base class that enables image erosion or dilation PRE trimap Attribute: binary image Method: scaling with two inputs: image and iterations
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.WT
ise-uiuc/Magicoder-OSS-Instruct-75K
public var description: String { return "\(statusCode) \(successful ? "success" : "failure")" } public var debugDescription: String { var string = description let responseString = "\(response)" if responseString != "()" { string += "\n\(responseString)" } return string
ise-uiuc/Magicoder-OSS-Instruct-75K
return "Response(status=\(self.status)):\n\(bodyDescription)" } /// The value which corresponds to the given header /// field. Note that, in keeping with the HTTP RFC, HTTP header field /// names are case-insensitive. /// - parameter: field the header field name to use for the lookup (case-insensitive).
ise-uiuc/Magicoder-OSS-Instruct-75K
self.nameList = nameList self.numWashers = numWashers self.numDryers = numDryers
ise-uiuc/Magicoder-OSS-Instruct-75K
@pytest.mark.parametrize( ("domain", "username", "expected_result", "expected_stderr"), ( pytest.param( "hrcgen.ml", "mondeja", True, "", id="domain=hrcgen.ml-username=mondeja", # configured with GH pages ), pytest.param( "foobar.baz", "mondeja", False, (
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_get_value_pointer(): model = BmiHeat() model.initialize() dest1 = np.empty(model.get_grid_size(0), dtype=float) z0 = model.get_value_ptr("plate_surface__temperature") z1 = model.get_value("plate_surface__temperature", dest1) assert z0 is not z1 assert_array_almost_equal(z0.flatten(), z1)
ise-uiuc/Magicoder-OSS-Instruct-75K
associate_public_ip_address=launch_config.associate_public_ip_address)
ise-uiuc/Magicoder-OSS-Instruct-75K
dataset, cfg.data.imgs_per_gpu, cfg.data.workers_per_gpu, len(cfg.gpus.test),
ise-uiuc/Magicoder-OSS-Instruct-75K
import Reachability import RxSwift import RxCocoa
ise-uiuc/Magicoder-OSS-Instruct-75K
def convert_obstacle_pixel_to_real(self, pixel: Coord) -> Coord: return self._convert_object_pixel_to_real(pixel, self._obstacle_distance) def convert_robot_pixel_to_real(self, pixel: Coord) -> Coord: return self._convert_object_pixel_to_real(pixel, self._robot_distance) def _convert_pixel_to_real(self, pixel: Coord, distance: float) -> Coord: pixel_vector = np.array([pixel.x, pixel.y, 1]).transpose() real_vector = self._camera_matrix_inverse.dot(pixel_vector) real_vector = np.multiply(real_vector, distance).transpose() return Coord(int(real_vector[0]), int(real_vector[1]))
ise-uiuc/Magicoder-OSS-Instruct-75K
import Routes from './routes'
ise-uiuc/Magicoder-OSS-Instruct-75K
model_name='meal', name='stock_no', field=models.CharField(default=99, max_length=10), ),
ise-uiuc/Magicoder-OSS-Instruct-75K
use App\Controller\MainController; $app->group('/api', function () use ($app) { //User Modülü //$app->get('/login', [MainController::class, 'Index']); // blabla })->add(\App\Middleware\MemberTokenMiddleware::class);
ise-uiuc/Magicoder-OSS-Instruct-75K
oui::window::Description oui::window::initialize() { return { "structural", 1280, 720 }; } void oui::window::update(oui::Rectangle area, oui::Input& input) { }
ise-uiuc/Magicoder-OSS-Instruct-75K
def __next__(self) -> T:
ise-uiuc/Magicoder-OSS-Instruct-75K
let pedersen_output_x = evaluator.add_witness_to_cs(); let object_pedersen_x = Object::from_witness(pedersen_output_x); let pedersen_output_y = evaluator.add_witness_to_cs(); let object_pedersen_y = Object::from_witness(pedersen_output_y);
ise-uiuc/Magicoder-OSS-Instruct-75K
const [searchText, setSearchText] = React.useState<string>(''); const selectSearchCategory = (event: React.ChangeEvent<{ value: unknown }>) => { setSelectedSearchCategory(event.target.value as string); }; return ( <> <div className={classes.hero}> <div className={classes.heroContent}> <Typography className={classes.heroText} variant="h3" component="h1" color="textPrimary"> Support local nonprofits through the giving economy. </Typography> <div className={classes.searchBar}>
ise-uiuc/Magicoder-OSS-Instruct-75K
), migrations.AddField( model_name='treatmentscenario', name='landform_type_checkboxes_include_east_west', field=models.BooleanField(default=True), ), migrations.AddField(
ise-uiuc/Magicoder-OSS-Instruct-75K
from apps.meiduo_admin.serializers.sku import SKUSerializer, GoodsCategorySerializer, SPUListSerializer, \ SPUSpecSerializer from apps.meiduo_admin.utils import PageNum class SKUAPIViewSet(ModelViewSet): def get_queryset(self): keyword = self.request.query_params.get('keyword') if keyword: return SKU.objects.filter(name__contains=keyword)
ise-uiuc/Magicoder-OSS-Instruct-75K
:param plugin_interfaces: list of plugin_interfaces [strings]
ise-uiuc/Magicoder-OSS-Instruct-75K