seed
stringlengths
1
14k
source
stringclasses
2 values
>>> book, created = p.books.get_or_create(name='The Book of Ed & Fred') >>> created True # The publisher should have one book.
ise-uiuc/Magicoder-OSS-Instruct-75K
created_at = models.DateTimeField(_("created at"), default=timezone.now) authored_by = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, verbose_name=_("authored by"), ) moderation_status = models.CharField( _("moderation status"), max_length=10, choices=MODERATION_STATUS_CHOICES, default=GOOD, ) objects = BaseQuerySet.as_manager()
ise-uiuc/Magicoder-OSS-Instruct-75K
import sys,os for path in [ 'rindow/framework/lib', ]: sys.path.append(os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), path)))
ise-uiuc/Magicoder-OSS-Instruct-75K
) def __str__(self): return self.dian_code + ' - ' + self.name
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Finalize the workchain.""" workchain = self.ctx.workchains[-1] self.out_many(self.exposed_outputs(workchain, self._next_workchain))
ise-uiuc/Magicoder-OSS-Instruct-75K
ax.coastlines() plt.colorbar(h, ax=ax, label="kg/s/m^2") fig.set_size_inches([10, 4]) fig.set_dpi(100)
ise-uiuc/Magicoder-OSS-Instruct-75K
YFANTASY_MAIN = 'yfantasy' def get_package_version():
ise-uiuc/Magicoder-OSS-Instruct-75K
String enOutput = null; try { //Converting the input String to time enInput = endDf.parse(endTime); //Changing the format of date and storing it in String enOutput = endOutputformat.format(enInput); //Displaying the time txtEndTime.setText(enOutput); } catch (ParseException pe) { pe.printStackTrace(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
from pygame.locals import * import random import time pygame.init() bac = pygame.image.load('lesson11/bac1.png') screen = pygame.display.set_mode((800, 600)) dd=0 bac = []
ise-uiuc/Magicoder-OSS-Instruct-75K
from .make_web_app import *
ise-uiuc/Magicoder-OSS-Instruct-75K
TransformerFilter transformrFilter = new RemoveMultipleWhitespacesTransformerFilter(); assertEquals(" ", transformrFilter.transform(" ")); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
auxiliary_head=dict(num_classes=60), test_cfg=dict(mode='slide', crop_size=(480, 480), stride=(320, 320))) optimizer = dict(type='SGD', lr=0.004, momentum=0.9, weight_decay=0.0001)
ise-uiuc/Magicoder-OSS-Instruct-75K
return super().post(request, *args, **kwargs) class ChannelDetailView(RetrieveUpdateAPIView): """ View for getting information about or updating a specific channel """
ise-uiuc/Magicoder-OSS-Instruct-75K
if small > (1+var)*small and large > (1+var)*large: return 1 elif (1-var)*large < small < (1+var)*large: return 0 elif small < (1-var)*large: return -1
ise-uiuc/Magicoder-OSS-Instruct-75K
dist = gmm_marginal_cdf(grid, param) ppf = np.empty_like(q) for i in range(param.n_dim): # does an inverse cdf, ppf, to get the marginals ppf[:, i] = interp1d(dist[:, i], grid[:, i], fill_value='interpolate')(q[:, i]) is_nan = np.isnan(ppf) if is_nan.any(): ppf[is_nan & (q >= 1)] = np.inf # infinity because marginal is greater or equal to 1
ise-uiuc/Magicoder-OSS-Instruct-75K
if self.name is None: return self._base_repr(reprlib.repr(self._switches)) else: return super().__repr__()
ise-uiuc/Magicoder-OSS-Instruct-75K
ariaLabelledBy: 'modal-basic-title' }) } // API DELETE Item
ise-uiuc/Magicoder-OSS-Instruct-75K
args = parser.parse_args() expids = args.first_expid + np.arange(16, dtype=int) print(expids)
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @brief Implements a PD controller at the center of mass. * */ #include "blmc_controllers/centroidal_pd_controller.hpp" namespace blmc_controllers
ise-uiuc/Magicoder-OSS-Instruct-75K
stickerPreviewViewHolder.img_delSticker.setVisibility(View.GONE); } stickerPreviewViewHolder.img_delSticker.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(thisContext); View dialogView = layoutInflater.inflate(R.layout.custom_dialog_deleteimage, null);
ise-uiuc/Magicoder-OSS-Instruct-75K
from app.models.bookings import Booking def get_booking_by_id(booking_id: int, db: Session): db_booking: Booking = ( db.query(Booking).filter(Booking.id == booking_id).first() ) if not db_booking:
ise-uiuc/Magicoder-OSS-Instruct-75K
[Inline] public static unsafe void SetTranslationTableBaseRegister( uint* ptr ) { // // Write the Translation Table Base Register. // ProcessorARMv4.MoveToCoprocessor( 15, 0, 2, 0, 0, new UIntPtr( ptr ).ToUInt32() ); } //--//--// [Inline] public static void ResetControlRegisterBits( uint mask )
ise-uiuc/Magicoder-OSS-Instruct-75K
:arg quiet: If true, silence all status messages. """ _verbose = not quiet if _verbose: print("📖 Reading *.bib files in {0}".format(bib_directory)) _references = [] for dir in os.listdir(bib_directory): for file in os.listdir(os.path.join(bib_directory, dir)): _references.append(Reference.load(os.path.join(bib_directory, dir), file))
ise-uiuc/Magicoder-OSS-Instruct-75K
} } if (particleSystem.time > 1.0f && particleSystem.time < 1.02f)
ise-uiuc/Magicoder-OSS-Instruct-75K
#%% # Now that we've trained our model, we can compute some metrics on the test set. # Here, we construct a Pipe that will compute metrics such as sensitivity, specificity, f1, etc. # on the test set. classes = {i: class_name for i, class_name in zip(count(), mnist.classes)} class Metrics(HookedPassThroughPipe):
ise-uiuc/Magicoder-OSS-Instruct-75K
} fn recurse(start: &str, options: &Options) -> io::Result<()> {
ise-uiuc/Magicoder-OSS-Instruct-75K
private func handlePickerViewValueChanged(_ field: SettingsAlertSingleType.Field, _ value: Double) { let convertedValue = Float(GlucoseUnit.convertToDefault(value))
ise-uiuc/Magicoder-OSS-Instruct-75K
""" return queryset.filter(creation_date_utc__week_day=value + 1)
ise-uiuc/Magicoder-OSS-Instruct-75K
# Make training dataset dataset_name = config.get('DEFAULT', 'dataset') Dataset = datasets.get_dataset_class(dataset_name) dataset = Dataset(config, 'train') path = dataset.files[1] ret = dataset._load_data(path) # Iterate no_batch = config.getboolean('DEFAULT', 'no_batch') datapipe = dataset.build_pipeline(no_batch=no_batch) for batch_i, batch in enumerate(datapipe): from IPython import embed; embed()
ise-uiuc/Magicoder-OSS-Instruct-75K
export type FootnoteType = { descriptionLineData: LineDataType | null; readonly id: string; readonly inlineLineContent: string; readonly type: FootnoteTypeType; }; export type VariableType = Readonly<{ key: string; value: string; }>; export type DocumentMetaType = { codeLineData: LineDataType | null; readonly config: MarkdownConfigType;
ise-uiuc/Magicoder-OSS-Instruct-75K
"""This decorator takes a timeout parameter in seconds.""" def wrap_function(function): return call_with_timeout(function, timeout) return wrap_function def default_timeout(function): """This simple decorator 'timesout' after DEFAULT_TIMEOUT seconds.""" return call_with_timeout(function) def getstatusoutput(command, timeout=DEFAULT_TIMEOUT):
ise-uiuc/Magicoder-OSS-Instruct-75K
int _pmain(int /*argc*/, _pchar* /*argv*/[]) { Sandwich s; s.AddIngredient(L"Turkey"); s.AddIngredient(L"Cheddar"); s.AddIngredient(L"Lettuce"); s.AddIngredient(L"Tomato"); s.AddIngredient(L"Mayo"); s.RemoveIngredient(L"Cheddar");
ise-uiuc/Magicoder-OSS-Instruct-75K
SocketManager.send(object) { (response) in guard !response.isError() else { completion?(nil) return } let settings = AuthSettings() settings.map(response.result["result"], realm: realm) persistPublicSettings(settings: settings, realm: realm, completion: completion) } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
self.gt_tl_waypoint_id = self.nearest_waypoint( trafficlight_array[nearest_point_id].pose.pose.position.x, trafficlight_array[nearest_point_id].pose.pose.position.y, self.base_waypoints) elif np.uint8(trafficlight_array[0].state): self.gt_tl_waypoint_id = -1 self.mutex.release() # rospy.loginfo("processig time = {}".format(t_0 - rospy.get_time())) def pose_cb(self, msg): self.current_pose = msg def waypoints_cb(self, waypoints):
ise-uiuc/Magicoder-OSS-Instruct-75K
} // Don't forget to fill this array protected $guarded = ['id']; public function customer() {
ise-uiuc/Magicoder-OSS-Instruct-75K
"incididunt", "Lorem", "veniam", "in",
ise-uiuc/Magicoder-OSS-Instruct-75K
public static func register(with registrar: FlutterPluginRegistrar) { let channel = FlutterMethodChannel(name: "ocarina", binaryMessenger: registrar.messenger()) let instance = SwiftOcarinaPlugin() registrar.addMethodCallDelegate(instance, channel: channel) instance.registrar = registrar } public static func useDelegate(load: @escaping LoadDelegate, dispose: @escaping DisposeDelegate, play: @escaping PlayDelegate, pause: @escaping PauseDelegate, resume: @escaping ResumeDelegate, stop: @escaping StopDelegate, volume: @escaping VolumeDelegate, seek: @escaping SeekDelegate, position: @escaping PositionDelegate) { delegate = PlayerDelegate(load: load, dispose: dispose, play: play, pause: pause, resume: resume, stop: stop, volume: volume, seek: seek, position: position) } public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) { if (call.method == "load") {
ise-uiuc/Magicoder-OSS-Instruct-75K
""" home_dir = os.path.expanduser('~') credential_dir = os.path.join(home_dir, '.credentials') if not os.path.exists(credential_dir): os.makedirs(credential_dir) credential_path = os.path.join(credential_dir, 'drive-python-quickstart.json') store = Storage(credential_path) credentials = store.get() if not credentials or credentials.invalid:
ise-uiuc/Magicoder-OSS-Instruct-75K
// Add all category related paths. const tree = await fetchVTEX<Category[]>( api.catalog.category.tree(4), options ) for (const node of tree) { dfs(node, paths) }
ise-uiuc/Magicoder-OSS-Instruct-75K
validate_test_results()
ise-uiuc/Magicoder-OSS-Instruct-75K
* * @param \Illuminate\Http\Request $request * @param int $id * @return \Illuminate\Http\Response */ public function update(Request $request, $id) { // $friendship = Friendship::find($id); if($request->friendship_status == '00'){ $friendship->forceDelete(); $response = array(["status"=>'00']); return response()->json($response); }else{ $friendship->update(["status"=>$request->friendship_status]);
ise-uiuc/Magicoder-OSS-Instruct-75K
class GetHandler(BaseHTTPRequestHandler): def do_GET(self): form_message = """<p>RICGA:please upload a picture(jpeg)</p> <form method="post" action="http://%s:%s" enctype="multipart/form-data"> <input name="file" type="file" accept="image/jpeg" /> <input name="token" type="hidden" /> <input type="submit" value="upload" /></form>""" % (FLAGS.server_ip, FLAGS.server_port) self.send_response(200)
ise-uiuc/Magicoder-OSS-Instruct-75K
mod input; pub use input::{send_inputs, Action, Button, Input, MouseMotion, WheelDirection}; #[cfg(not(feature = "minimal"))] mod keylike; #[cfg(not(feature = "minimal"))]
ise-uiuc/Magicoder-OSS-Instruct-75K
for l2 in range(len(geom["coordinates"][l1])):
ise-uiuc/Magicoder-OSS-Instruct-75K
# NB! We assume that logstash user may run only "logstash" process! user="logstash" check_stopped () { # Waiting for logstash to stop normally
ise-uiuc/Magicoder-OSS-Instruct-75K
ret_value = await resp.json() assert 200 == resp.status assert ret_value == "foo,bar" @pytest.mark.asyncio async def test_parsing_multiple_query_params_single_tag(cli): resp = await cli.get("/multiple_query_params?tag=foo") ret_value = await resp.json() assert 200 == resp.status assert ret_value == "foo"
ise-uiuc/Magicoder-OSS-Instruct-75K
BOOL SetAssocKey(CAssoc FAR* pAssoc, LPVOID pKey, UINT cbKey) const; void GetAssocKeyPtr(CAssoc FAR* pAssoc, LPVOID FAR* ppKey,UINT FAR* pcbKey) const; void FreeAssocKey(CAssoc FAR* pAssoc) const; void GetAssocValuePtr(CAssoc FAR* pAssoc, LPVOID FAR* ppValue) const; void GetAssocValue(CAssoc FAR* pAssoc, LPVOID pValue) const; void SetAssocValue(CAssoc FAR* pAssoc, LPVOID pValue) const; BOOL InitHashTable(); UINT m_cbValue; UINT m_cbKey; // variable length if 0
ise-uiuc/Magicoder-OSS-Instruct-75K
return remoteELB.getListenerDescriptions().stream().anyMatch(listener -> "HTTP".equalsIgnoreCase(listener.getListener().getProtocol()));
ise-uiuc/Magicoder-OSS-Instruct-75K
max_memory=4G max_memory_startup=4G java -Xms$max_memory_startup -Xmx$max_memory -jar $jar_file
ise-uiuc/Magicoder-OSS-Instruct-75K
func_list = {}
ise-uiuc/Magicoder-OSS-Instruct-75K
public void Blackboard(string input, string output) => Test(input, output, "mathbb"); [Theory] [InlineData("", "")]
ise-uiuc/Magicoder-OSS-Instruct-75K
use yii\behaviors\TimestampBehavior; use yii\data\ActiveDataProvider; class Norms_search extends \yii\db\ActiveRecord { public $sum_potr; public static function tableName() { return 'needs_norm'; } public function attributeLabels() {
ise-uiuc/Magicoder-OSS-Instruct-75K
var dateFormatter = DateFormatter()
ise-uiuc/Magicoder-OSS-Instruct-75K
sys.exit(0)
ise-uiuc/Magicoder-OSS-Instruct-75K
export type LIST_HIST_IMG = typeof LIST_HIST_IMG; export interface IListHistAction { isLoading1: boolean; type: LIST_HIST; histories: IHistory[]; } export interface IGetImgAction { type: LIST_HIST_IMG; url: string; }
ise-uiuc/Magicoder-OSS-Instruct-75K
ULTIMATE(32000, TransmitterType.UNIVERSAL_CABLE_ULTIMATE); public int cableCapacity; public TransmitterType type; private CableTier(int capacity, TransmitterType transmitterType) { cableCapacity = capacity; type = transmitterType; }
ise-uiuc/Magicoder-OSS-Instruct-75K
has_reg = df_row["reg_start"] is not None # Ajout d'un échelle à droite pour meilleure lecture sur les telephones ax.yaxis.set_ticks_position('both') ax.tick_params(labeltop=False, labelright=True) if src_urgence: make_hosp_bars(has_reg, urgence, "nbre_hospit_corona", urg_index, "urgences", ax) ax.plot(urgence[roll_urg], label="Nouvelles hospitalisations quotidiennes lissées - données urgences", color="orange")
ise-uiuc/Magicoder-OSS-Instruct-75K
/// <param name="context">The parse tree.</param> void EnterGeneric_parameter_list([NotNull] MCSharpParser.Generic_parameter_listContext context); /// <summary> /// Exit a parse tree produced by <see cref="MCSharpParser.generic_parameter_list"/>. /// </summary> /// <param name="context">The parse tree.</param> void ExitGeneric_parameter_list([NotNull] MCSharpParser.Generic_parameter_listContext context); /// <summary> /// Enter a parse tree produced by <see cref="MCSharpParser.generic_parameters"/>. /// </summary> /// <param name="context">The parse tree.</param> void EnterGeneric_parameters([NotNull] MCSharpParser.Generic_parametersContext context); /// <summary> /// Exit a parse tree produced by <see cref="MCSharpParser.generic_parameters"/>. /// </summary>
ise-uiuc/Magicoder-OSS-Instruct-75K
'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': BASE_DIR / 'tmp/db/sqlite3_db', } } REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': ( 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer',
ise-uiuc/Magicoder-OSS-Instruct-75K
model_name='komax', name='group_of_square', field=models.CharField(default='1 2 3', max_length=6), preserve_default=False, ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
SupplierPartyType.name, 'The supplier party.', FieldCardinality.Uni, TypeModule.cac, undefined, undefined ) export const ReceiptAdviceFieldMetaBuyerCustomerParty = new FieldMeta<ReceiptAdviceField>( ReceiptAdviceField.BuyerCustomerParty, 'BuyerCustomerParty', 'Buyer Customer Party', CustomerPartyType.name, 'The buyer.',
ise-uiuc/Magicoder-OSS-Instruct-75K
52=25, 53=125, 54=625, 55=3125 If they are then placed in numerical order, with any repeats removed, we get the following sequence of 15 distinct terms: 4, 8, 9, 16, 25, 27, 32, 64, 81, 125, 243, 256, 625, 1024, 3125 How many distinct terms are in the sequence generated by ab for 2 ≤ a ≤ 100 and 2 ≤ b ≤ 100? """ def run(): lst = { A**B for A in xrange(2, 101) for B in xrange(2, 101)}
ise-uiuc/Magicoder-OSS-Instruct-75K
Double, }
ise-uiuc/Magicoder-OSS-Instruct-75K
} } features.append(feature) response={ "code":200, "data":features }
ise-uiuc/Magicoder-OSS-Instruct-75K
completion: @escaping CompletionBlock ) { let wrappedCompletion: CompletionBlock = { granted in queue.async {
ise-uiuc/Magicoder-OSS-Instruct-75K
export type { ModerationImageType } from 'domains/entities/users.moderation.image/type';
ise-uiuc/Magicoder-OSS-Instruct-75K
public struct SpecialModelName: Codable { public var specialPropertyName: Int64? public init(specialPropertyName: Int64?) { self.specialPropertyName = specialPropertyName } public enum CodingKeys: String, CodingKey { case specialPropertyName = "$special[property.name]"
ise-uiuc/Magicoder-OSS-Instruct-75K
value(): number; } //# sourceMappingURL=closure.d.ts.map
ise-uiuc/Magicoder-OSS-Instruct-75K
let result = game.battle(&mut enemy); assert!(result.is_err()); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
classes = {int(key): value for (key, value) in parse_json(configs.class_info_dir).items()} ######### build vgg model ########## vgg_cam = models.vgg_cam()
ise-uiuc/Magicoder-OSS-Instruct-75K
} private function owner_payment(){ $notified = Auth::user()->hasRole('manager'); $accepted_payment = 0; if($notified){ $accepted_payment = Payment::where('is_accepted',true) ->where('is_paid', false) ->count(); } return [ 'notified' => $notified, 'accepted_payment' => $accepted_payment
ise-uiuc/Magicoder-OSS-Instruct-75K
name='keyword', options={'ordering': ['title']}, ), migrations.AlterModelOptions( name='method', options={'ordering': ['title']}, ), ]
ise-uiuc/Magicoder-OSS-Instruct-75K
print("AR_CALIBRATION: Waypoint Found: " + str(id)) print(self.waypoints_vertices.keys()) return self.waypoints_vertices[id] else: print("AR_CALIBRATION: Found Old Waypoint: " + str(id)) def map_waypoint_name_to_number(self): self.waypoint_id_to_name = {} self.waypoint_start_id = sorted(self.odometry_vertices.keys())[-1] + 1
ise-uiuc/Magicoder-OSS-Instruct-75K
/// \treturn \value /// \see lift_t
ise-uiuc/Magicoder-OSS-Instruct-75K
0 } fn force_set_maintainer() -> Weight { 0 } }
ise-uiuc/Magicoder-OSS-Instruct-75K
public ObjectId Id { get; set; } public string Name { get; set; } public string CustomType { get; set; } public string Description { get; set; } public List<string> Members { get; set; } public Group ToGroup() { return new Group { Name = Name, CustomType = CustomType,
ise-uiuc/Magicoder-OSS-Instruct-75K
btn_list_libros.clicked.connect(self.close) btn_delete_libros = QtGui.QPushButton('Eliminar') btn_delete_libros.clicked.connect(self.close)
ise-uiuc/Magicoder-OSS-Instruct-75K
</section> <!--====== FOOTER 2 ==========--> <section> <div class="rows">
ise-uiuc/Magicoder-OSS-Instruct-75K
the_thread = threading.current_thread() for x in range(3): print('%s正在写代码...' % the_thread.name) time.sleep(1) def drawing(): the_thread = threading.current_thread() for x in range(3): print('%s正在画图...' % the_thread.name) time.sleep(1) def multi_thread(): th1=threading.Thread(target=coding, name='小明') th2=threading.Thread(target=drawing, name='小红') th1.start() th2.start()
ise-uiuc/Magicoder-OSS-Instruct-75K
}); expect(ensureDirSpy).toBeCalled(); const newUrl = 'http://example2.com'; await updateAsset({ type: 'poster', mediaItemId: mediaItem.id,
ise-uiuc/Magicoder-OSS-Instruct-75K
&mut self, cranks: u32, pushes: u32, ) -> Result<gst::FlowSuccess, gst::FlowError> { let ret: gst::FlowReturn = unsafe { from_glib(gst_check_sys::gst_harness_src_crank_and_push_many( self.0.as_ptr(), cranks as i32, pushes as i32, )) };
ise-uiuc/Magicoder-OSS-Instruct-75K
# Support code for building a C extension with zstd files # # Copyright (c) 2016-present, <NAME> # 2017-present, <NAME> (mods to make it more generic) # All rights reserved. # # This software may be modified and distributed under the terms # of the BSD license. See the LICENSE file for details. import os # zstd files, structure as seen in zstd project repository:
ise-uiuc/Magicoder-OSS-Instruct-75K
output.push('?') } if let Ok(meta) = item.metadata() { if meta.permissions().readonly() { output.push_str("r-xr-xr-x"); } else { output.push_str("rwxrwxrwx"); } } else { output.push_str("???????"); } output }
ise-uiuc/Magicoder-OSS-Instruct-75K
return (HttpStatusCode) valueAsInteger; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
class ClientCredentialsTest extends TestCase { protected function setupGrant( $options = [], $httpClient = null ) { $options = array_replace([ 'client_id' => '2bfe9d72a4aae8f06a31025b7536be80',
ise-uiuc/Magicoder-OSS-Instruct-75K
return Request(method='POST', adt_uri=uri, headers=headers, body=body, params=params) @staticmethod
ise-uiuc/Magicoder-OSS-Instruct-75K
HubTest.reset(); }); it('links hub -> formation', async () => { const formation = HubTest.run(() => new Formation()); const fmnTest = HubTest.testFormation(formation); fmnTest.init();
ise-uiuc/Magicoder-OSS-Instruct-75K
let sodium_nonce = Nonce::from_slice(&nonce).unwrap(); // Encrypt message with crypto_box let crypto_box = CryptoBox::new(&bob.0, &alice.1); let encrypted = crypto_box .encrypt(&GenericArray::from_slice(&nonce), &TEST_PAYLOAD[..])
ise-uiuc/Magicoder-OSS-Instruct-75K
track_statistics={} midi = 'results/presentation sample/Nottingham - 3.mid'
ise-uiuc/Magicoder-OSS-Instruct-75K
lines = list(lines) #print (lines) lines = "".join(lines) #outfile.write(lines.replace(r"。",'。\n'))
ise-uiuc/Magicoder-OSS-Instruct-75K
(String) state.getAttribute(DynAttributeNames.AGENT_LOCATION), (String) goal); } @Override protected List<Action> search(Problem problem) { List<Action> actions = new ArrayList<Action>(); try { List<Action> sactions = search.search(problem); for (Action action : sactions) { actions.add(action); } } catch (Exception ex) {
ise-uiuc/Magicoder-OSS-Instruct-75K
func sharedCProperty() { // CHECK: keypath $WritableKeyPath<c_union, some_struct>
ise-uiuc/Magicoder-OSS-Instruct-75K
String terminalCountLine = scanner.nextLine(); int terminalCount = Integer.parseInt(terminalCountLine); while (terminalCount-- > 0) { String terminal = scanner.nextLine(); // just verify that they're available if (tokenMap.get(terminal) == null) {
ise-uiuc/Magicoder-OSS-Instruct-75K
* * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.keycloak.models; /** * @author <a href="mailto:<EMAIL>"><NAME></a>
ise-uiuc/Magicoder-OSS-Instruct-75K
@router.get( "/block-sub", name=f"{_PREFIX}.block-sub", summary="Subscribe to incoming blocks.", description=blocks_sub_doc, response_description="A JSON object with information about the new block.", dependencies=[Depends(JWTBearer())], ) async def zmq_sub(request: Request, verbosity: int = 1): return EventSourceResponse(handle_block_sub(request, verbosity))
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertIsInstance(d['datetime1'], datetime) # should ignore Mongo object _id self.assertNotIn('_id', instance.to_dict())
ise-uiuc/Magicoder-OSS-Instruct-75K
vec![1, 4], vec![2, 3], vec![2, 4], vec![3, 4],
ise-uiuc/Magicoder-OSS-Instruct-75K
argument_list|, name|state argument_list|) expr_stmt|; block|} block|}
ise-uiuc/Magicoder-OSS-Instruct-75K
#SBATCH --ntasks=20 # total, <=number of nodes*16 #! How much real memory is required per node (in MB)? Not setting this #! will lead to a default of (1/16)*total memory per task. #! Setting a larger amount per task increases the number of cores. #SBATCH --output slurm.%u.%j.%N.stdout.txt # (%u,%j,%N)=(user, job allocation #, node) #SBATCH --time=00:10:20 #Wallclock time use. #ln -s /home/adev01/gPROMSAgent_5154434330700/SRT_10.25.188.122_446653966157500/liblapack.so.3
ise-uiuc/Magicoder-OSS-Instruct-75K
if FSW_clients: process_id = sorted(FSW_ids)[-1] + 1 name = params[1] + b"_" + bytes(process_id) FSW_clients.append(name) FSW_ids.append(process_id) elif b"GUI" in name: if GUI_clients: process_id = sorted(GUI_ids)[-1] + 1 name = params[1] + b"_" + bytes(process_id) GUI_clients.append(name) GUI_ids.append(process_id)
ise-uiuc/Magicoder-OSS-Instruct-75K