seed
stringlengths
1
14k
source
stringclasses
2 values
else: return '#52000D' class RiskScatterPanel(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self,parent,RISKSCATTER_ID) b = Borg()
ise-uiuc/Magicoder-OSS-Instruct-75K
/** * The base, unstructured data types */
ise-uiuc/Magicoder-OSS-Instruct-75K
// check if first and last statement inside for loop is render_text! macro let (sf, sl) = match ( fl.body .stmts .first() .and_then(get_rendertext_value_from_stmt), fl.body .stmts
ise-uiuc/Magicoder-OSS-Instruct-75K
.expect_result()? .expect_msg_is("running") } pub async fn break_insert(&self, at: LineSpec) -> Result<Breakpoint, Error> { let raw = self .raw_cmd(format!("-break-insert {}", at.serialize())) .await? .expect_result()? .expect_payload()? .remove_expect("bkpt")? .expect_dict()?;
ise-uiuc/Magicoder-OSS-Instruct-75K
from .caching import BodyCache, TextureCache from .textures import apply_random_textures
ise-uiuc/Magicoder-OSS-Instruct-75K
* @param points An array of points (as `[x, y, pressure]` or `{x, y, pressure}`). Pressure is optional. * @param options An (optional) object with options.
ise-uiuc/Magicoder-OSS-Instruct-75K
except: response_data['status'] = 400 response = HttpResponse(content_type='application/json') response.write(json.dumps(response_data)) response.flush() return response def register(request): if request.method == 'POST': data, errors = validators.validate_data(json.loads(request.body)) if errors: return shortcuts.render(request, 'auth/pc_register_en.html', {'data': data, 'errors': errors}, status=400)
ise-uiuc/Magicoder-OSS-Instruct-75K
glyphVector = new FOPGVTGlyphVector(gvtFont, it, null); glyphVector.performDefaultLayout();
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>BlameDeng/vue-viewer-icons import { defineComponent, SVGAttributes } from "vue"; export const SvgSortDown = defineComponent<SVGAttributes>({ setup() { return () => <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m7 0v12.7l-3.8-3.7-1.2 1.2 6 5.8 1.2-1.2 4.8-4.6-1.2-1.2-3.8 3.7v-12.7z"/></svg>; }, });
ise-uiuc/Magicoder-OSS-Instruct-75K
run_entity_builder_test_group, run_convexifier_test_group, run_gbd_test_group]) print("\nSummary") print('-' * 50) print("{0}/{1} tests were conducted successfully.".format(true_count, total_count))
ise-uiuc/Magicoder-OSS-Instruct-75K
from .model import *
ise-uiuc/Magicoder-OSS-Instruct-75K
# Leo 5.7b2: February 12, 2018. # Leo 5.7 final: February 27, 2018. #@-<< version dates >>
ise-uiuc/Magicoder-OSS-Instruct-75K
self.assertEqual(parser('2013-01-07\n'), datetime.date(2013, 1, 7)) self.assertEqual(parser('\n'), None) def test_a_tuple_with_str(self): make_parser = self._get_target() parser = make_parser((('s', 'chararray'), )) self.assertEqual(parser('foo\n'), ('foo', )) self.assertEqual(parser('foo\n'), ('foo', )) self.assertEqual(parser('foo\t\n'), ('foo\t', )) def test_a_tuple_with_str_and_int(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
words = []
ise-uiuc/Magicoder-OSS-Instruct-75K
@TreeParent() parent?: Category | null; }
ise-uiuc/Magicoder-OSS-Instruct-75K
def main(): st.markdown(""" All solutions to Latex [LaTeX 工作室](https://www.latexstudio.net/) Online Latex: [Your Projects - Overleaf, Online LaTeX Editor](https://www.overleaf.com/project) R Bookdown and Markdown """)
ise-uiuc/Magicoder-OSS-Instruct-75K
import lombok.Data; import lombok.experimental.Accessors; @Data @Accessors(chain = true) public class ExceptionResponse { private String errorCode; private String errorMessage; }
ise-uiuc/Magicoder-OSS-Instruct-75K
return self.decorated_rice.get_cost() def get_ingredients(self): return self.decorated_rice.get_ingredients() class VegMix(INoodlesDecorator): def __init__(self, decorated_noodle): INoodlesDecorator.__init__(self, decorated_noodle) def get_cost(self): return self.decorated_noodle.get_cost()
ise-uiuc/Magicoder-OSS-Instruct-75K
async search(query: string): Promise<MediaItemForProvider[]> { const res = await axios.get('http://openlibrary.org/search.json', { params: { q: query, fields: [ 'key', 'type', 'title', 'first_publish_year',
ise-uiuc/Magicoder-OSS-Instruct-75K
kwargs = {"a": "a"} token = 'Schedule0350c8c75ddcd9fafdaA9738df4c9346bec48dc9c4915' url = 'http://127.0.0.1:10011/api/v1/schedule/command/' data = {"fun_name": 'func', "command": command, "target": target, "script_name": script_name, "args": args } r = requests.get(url, data=json.dumps(data), headers={'Content-Type': 'application/json', 'token': token}).json()
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>.config/scripts/semantic/verify.sh #!/usr/bin/env bash # @file .config/scripts/semantic/verify.sh # @brief Executes code that runs during the `semantic-release` verify step # @description # This is a placeholder for now.
ise-uiuc/Magicoder-OSS-Instruct-75K
infra_state = get_from_classad('ProminenceInfrastructureState', job_ad) infra_site = get_from_classad('ProminenceInfrastructureSite', job_ad) infra_type = get_from_classad('ProminenceInfrastructureType', job_ad) email = get_from_classad('ProminenceEmail', job_ad) identity = get_from_classad('ProminenceIdentity', job_ad) job_id = '%s.%s' % (cluster_id, proc_id) exit_code = -1 logger.info('[%s] Started working on infrastructure with id %s of type %s on site %s with state %s', job_id, infra_id, infra_type, infra_site, infra_state) if str(infra_type) == 'batch': logger.info('[%s] Batch infrastructure, so no need to do anything', job_id) exit_code = 0
ise-uiuc/Magicoder-OSS-Instruct-75K
# 以下代码是信息收集的代码 LL.log(1, '即将开始信息收集填报') collection = Collection(today, user) collection.queryForm() collection.fillForm()
ise-uiuc/Magicoder-OSS-Instruct-75K
void StatusWidget::onDirectionKey(DIRECTION dir) { switch (dir) { case UP: switch (focus) { case StatusFocusOnTabIndex: if (currentTabIndex ==
ise-uiuc/Magicoder-OSS-Instruct-75K
Version = "3.53.0"
ise-uiuc/Magicoder-OSS-Instruct-75K
if (this.isOk) { gl.deleteFramebuffer(this.glId); this.glId_ = null; } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
Parameter.POSITIONAL_OR_KEYWORD, Parameter.VAR_POSITIONAL, ) for name, value in bound_args.arguments.items(): if name in ignore: continue if name_kind[name] not in pos_kind: break if name_kind[name] == Parameter.VAR_POSITIONAL: new_args.extend(value) else: new_args.append(value) # Accumulate KEYWORD_ONLY and VAR_KEYWORD in the
ise-uiuc/Magicoder-OSS-Instruct-75K
<filename>gbp/factors/__init__.py from . import reprojection from . import linear_displacement
ise-uiuc/Magicoder-OSS-Instruct-75K
filter_size, use_bias=True, activation=tf.nn.relu, name="filter_layer") self.output_dense_layer = tf.layers.Dense( hidden_size, use_bias=True, name="output_layer") def call(self, x, padding=None): """Return outputs of the feedforward network. Args: x: tensor with shape [batch_size, length, hidden_size] padding: (optional) If set, the padding values are temporarily removed from x (provided self.allow_pad is set). The padding values are placed back in the output tensor in the same locations. shape [batch_size, length]
ise-uiuc/Magicoder-OSS-Instruct-75K
Targets are sequences built up taking `lookforward` values in the future. delay : int (default is 0) Additional delay between features and targets. delay can be negative but must be greater than -lookback.
ise-uiuc/Magicoder-OSS-Instruct-75K
void VanillaMesh::bind() { mRenderBufferMgr->bind(); } void VanillaMesh::unbind() { mRenderBufferMgr->unbind();
ise-uiuc/Magicoder-OSS-Instruct-75K
type Root<L: Layout> = L::Larger; fn first_info<L: Layout>( self, size: usize, stride: isize, ) -> (isize, Self::Layout<L>, Self::Root<L>) { let layout = L::default().add_dim(size, stride); (0, layout, layout)
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": c = test_circular_import_pass()
ise-uiuc/Magicoder-OSS-Instruct-75K
Instance: Constructor<T>; }; export type Context = { actions: Record<string, ActionContext> }; export const context: Context = { actions: {}, };
ise-uiuc/Magicoder-OSS-Instruct-75K
dblParallelNorth = 0.0; dblParallelSouth = 0.0; dblAzimuth = 0.0; dblRectifiedGrid = 0.0;
ise-uiuc/Magicoder-OSS-Instruct-75K
Severity = Severity.BreakingChange }; public static readonly Category EventsObsolete = new Category { Name = "Obsolete Events", Description = "These events were made obsolete in the new version of this type", Priority = new CategoryPriority(WellKnownChangePriorities.EventsObsolete), Headings = new string[] { "Signature", "Message" }, Severity = Severity.PotentiallyBreakingChange
ise-uiuc/Magicoder-OSS-Instruct-75K
@abstractmethod def cancel_client_resources( self, resource_check_results: Dict[str, Tuple[bool, str]], resource_reqs: Dict[str, dict] ): """Cancels the request resources for the job. Args: resource_check_results: A dict of {client_name: client_check_result}
ise-uiuc/Magicoder-OSS-Instruct-75K
{ "date": now(model=None), "scan_unique_id": scan_unique_id, "options": vars(options), } ) info(messages("file_saved").format(report_path_filename)) return True
ise-uiuc/Magicoder-OSS-Instruct-75K
return groupTopUploaders; } public void setGroupTopUploaders(List<TopUploadersInfo> groupTopUploaders) { this.groupTopUploaders = groupTopUploaders; } public Map<String, Long> getGroupUniqueSpecies() { return groupUniqueSpecies;
ise-uiuc/Magicoder-OSS-Instruct-75K
import java.net.URL; import java.security.CodeSource; import java.util.Optional; import java.util.jar.JarFile; import java.util.jar.Manifest; public class ManifestUtils { private ManifestUtils() { } public static Optional<Manifest> getManifest(Class<?> klass) {
ise-uiuc/Magicoder-OSS-Instruct-75K
} } extension RegistrationPickerModel: RegistrationCellProtocol { var type: RegistrationCellType { return .picker } var height: CGFloat { return 60
ise-uiuc/Magicoder-OSS-Instruct-75K
permissions.IsAuthenticatedOrReadOnly, )
ise-uiuc/Magicoder-OSS-Instruct-75K
f = Nsp() elif name.endswith('.nsx'): f = Nsp() elif name.endswith('.nca'): f = Nca() elif name.endswith('.nacp'): f = Nacp() elif name.endswith('.tik'): f = Ticket()
ise-uiuc/Magicoder-OSS-Instruct-75K
biasEstimate = Estimator() biasEstimate.value = afwMath.makeStatistics(subim.image, statistic).getValue() num_pix = len(subim.getImage().getArray().flatten()) biasEstimate.error = afwMath.makeStatistics(subim.image, afwMath.STDEV).getValue()\
ise-uiuc/Magicoder-OSS-Instruct-75K
# save mean and standard deviation from training: feObj.append(fe) meanVectors[i] = fe.mean_vector varVectors[i] = fe.var_vector self.mean = meanVectors.mean(axis=0) self.std = numpy.sqrt(varVectors.mean(axis=0)) try: with open(self.configfile, 'r') as f: confs = json.load(f) except FileNotFoundError: print("Creating configfile ", self.configfile) with open(self.configfile, "w+") as f: # make sure params are written, since the
ise-uiuc/Magicoder-OSS-Instruct-75K
Returns YAML configuration from path.
ise-uiuc/Magicoder-OSS-Instruct-75K
return result
ise-uiuc/Magicoder-OSS-Instruct-75K
for s in text_strs: ouf.write("%s\n" % s) with open(os.path.join(phase_dir, "wav.scp"), "w+") as ouf: for s in wav_scp_strs: ouf.write("%s\n" % s) with open(os.path.join(phase_dir, "spk2utt"), "w+") as ouf:
ise-uiuc/Magicoder-OSS-Instruct-75K
def nextTurn(self) -> Turn: self.__turnNum += 1 return Turn(self.__turnNum, self.__roundNum, self.__map, self.__getNextPlayer())
ise-uiuc/Magicoder-OSS-Instruct-75K
elif n == "G": sc = sc + "C" else: continue return sc
ise-uiuc/Magicoder-OSS-Instruct-75K
@app.route('/') def hello(): return 'Pong'
ise-uiuc/Magicoder-OSS-Instruct-75K
for group in sim_groups: gl = len(group) for gid in group: sim_trips[gid] = 1 sim_trips_group[gid] = gl print('num sim trips for driver %s is %s'%(driver_id, np.sum(sim_trips))) res = np.c_[np.ones(200) * int(driver_id), driver_trips_id, trips_id, sim_trips, sim_trips_group] return res <EMAIL> def load_driver_aggmat_celery(driver_id):
ise-uiuc/Magicoder-OSS-Instruct-75K
"inputBrightness": [kCIAttributeIdentity: 0, kCIAttributeClass: "NSNumber", kCIAttributeDefault: 0.0,
ise-uiuc/Magicoder-OSS-Instruct-75K
* @see Composite * @see Leaf */ @Retention(RetentionPolicy.RUNTIME)
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": pyunit_utils.standalone_test(model_download_with_cv) else: model_download_with_cv()
ise-uiuc/Magicoder-OSS-Instruct-75K
{{ $item[$content] }} </td>
ise-uiuc/Magicoder-OSS-Instruct-75K
def _exponent(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
# which context words are most relevant to one of query words m_alpha_d = F.softmax(torch.max(A, 2)[0], dim=-1) m_d = torch.mul(x, m_alpha_d.unsqueeze(2)).sum(1) if self.final: #s_q = torch.bmm(x.permute(0,2,1), F.softmax(A, dim=1)).permute(0,2,1) # b * qlen * hdim p_d = F.softmax(A, dim=2) mask_d = (p_d != p_d).byte() p_d.data.masked_fill_(mask_d.data, 0.0) s_d = torch.bmm(p_d, y_n) # b * dlen * hdim return s_d, m_d, 0 # which question words are most relevant to one of context words m_alpha_q = F.softmax(torch.max(A, 1)[0], dim=-1) m_q = torch.mul(y_n, m_alpha_q.unsqueeze(2)).sum(1)
ise-uiuc/Magicoder-OSS-Instruct-75K
return [subnet for subnet_list in self.subnets_by_az_map.values() for subnet in subnet_list] def get_type(self, is_plural: bool = False) -> str: if not is_plural: return 'VPC' else: return "VPC's" def get_arn(self) -> str: pass
ise-uiuc/Magicoder-OSS-Instruct-75K
protected $fillable = [ 'valor', 'id_tipo_de_servico', 'id_endereco', 'data_prevista_inicio' ] }
ise-uiuc/Magicoder-OSS-Instruct-75K
class TestUserDataController(BaseTestCase): """ UserDataController integration test stubs """ @decorators.db_exception def setUp(self):
ise-uiuc/Magicoder-OSS-Instruct-75K
@Override public boolean isPresent() { return dc.isPresent(); } @Override public @Nullable Wire wire() { return dc.wire(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
return await _timezone(client, location, timestamp=timestamp, language=language)
ise-uiuc/Magicoder-OSS-Instruct-75K
# # # This program is distributed in the hope that it will be useful, # # but WITHOUT ANY WARRANTY; without even the implied warranty of # # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # # SeisComP Public License for more details. # ############################################################################ import seiscomp3.bindings2cfg import sys sys.exit(seiscomp3.bindings2cfg.main())
ise-uiuc/Magicoder-OSS-Instruct-75K
'/lencx/': [
ise-uiuc/Magicoder-OSS-Instruct-75K
HealthController.Healthy = false; Thread.Sleep(TimeSpan.FromSeconds(10)); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_stats(self): if self.stats: return simplejson.loads(self.stats) return simplejson.loads("{}") def set_stats(self, data): self.stats = simplejson.dumps(data) def complete(self): values = self.get_stats().values() if not values: return False return not None in values
ise-uiuc/Magicoder-OSS-Instruct-75K
wn.onkeypress(check_letter_d, 'd') wn.onkeypress(check_letter_e, 'e') wn.onkeypress(check_letter_f, 'f') wn.onkeypress(check_letter_g, 'g') wn.onkeypress(check_letter_h, 'h') wn.onkeypress(check_letter_i, 'i') wn.onkeypress(check_letter_j, 'j') wn.onkeypress(check_letter_k, 'k')
ise-uiuc/Magicoder-OSS-Instruct-75K
return ans; } };
ise-uiuc/Magicoder-OSS-Instruct-75K
@endif </div> @endif
ise-uiuc/Magicoder-OSS-Instruct-75K
options .bundle_location() .join(options.app_name()) .join("share") } fn clone_bundler(&self) -> Box<dyn Bundler> { Box::new(Clone::clone(self)) } }
ise-uiuc/Magicoder-OSS-Instruct-75K
bg = bg.astype(np.uint8) bg = bg * 255 cv2.imshow("pred", bg) image[image>0] = 255 cv2.imshow("orign", image) cv2.waitKey() print("done")
ise-uiuc/Magicoder-OSS-Instruct-75K
name='Theory', fields=[ ('id', models.AutoField(primary_key=True, serialize=False)), ('name', models.CharField(max_length=30, unique=True, verbose_name='Название')), ('description', models.TextField(blank=True, verbose_name='Описание')), ('theory_link', models.URLField(null=True)), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Course')), ], options={ 'verbose_name': 'теория', 'verbose_name_plural': 'теория',
ise-uiuc/Magicoder-OSS-Instruct-75K
component2link[cpl] = sorted([k for k, v in l2c_ if v == cpl])
ise-uiuc/Magicoder-OSS-Instruct-75K
displacement_magnitudes = numpy.random.exponential(scale = 1, size = 20) displacement_magnitudes /= numpy.max(displacement_magnitudes) displacement_magnitudes *= (MAX_SIMILARITY-MIN_SIMILARITY) displacement_magnitudes += MIN_SIMILARITY step = (MAX_SIMILARITY-MIN_SIMILARITY) / MAX_TRIES for k in range(MAX_TRIES): pdb.addCoordset(numpy.array([((MIN_SIMILARITY+(step*k))*directions.T).T+base_coordinates]))
ise-uiuc/Magicoder-OSS-Instruct-75K
} public function hydrate() { if ( Auth::guest() || Auth::user()->cannot('view', $this->get_post()) ) { return redirect()->route('scholarship.post.show', [$this->post_id]); } } public function render() { $comments = $this->get_comments(); $comment_count = $this->get_comment_count();
ise-uiuc/Magicoder-OSS-Instruct-75K
for vnic_ip in vnic_mgmtIP_list:
ise-uiuc/Magicoder-OSS-Instruct-75K
return city; } public void setCity(String city) { this.city = city;
ise-uiuc/Magicoder-OSS-Instruct-75K
private final Map<Long, WebDriver> threadWebDriver = new ConcurrentHashMap<>(4); public void setWebDriver(WebDriver driver){ long threadId = currentThread().getId(); threadWebDriver.put(threadId, driver); }
ise-uiuc/Magicoder-OSS-Instruct-75K
runner = unittest.TextTestRunner(verbosity=2) print("test start:") runner.run(tests) print("test end!!!")
ise-uiuc/Magicoder-OSS-Instruct-75K
_datetimes_to_data = defaultdict(lambda: defaultdict(list)) # type: Dict[datetime, Dict[SimulatedExecutor, List[Order]]] @classmethod def schedule_new_event(cls, date_time: datetime, executor_to_orders_dict: Dict[SimulatedExecutor, List[Order]]): """ Schedules new event by adding the (date_time, data) pair to the _datetimes_to_data dictionary. It assumes data has the structure of a dictionary, which maps orders executor instance to orders, which need to be executed. Multiple events can be scheduled for the same time - the orders and order executors will be appended to existing data. """
ise-uiuc/Magicoder-OSS-Instruct-75K
var body: some View { ZStack { Circle() .stroke(.gray.opacity(0.3), lineWidth: 10) Circle() .trim(from: 0, to: showRing ? rings[index].progress / 100 : 0) .stroke(rings[index].keyColor, style: StrokeStyle(lineWidth: 10, lineCap: .round, lineJoin: .round)) .rotationEffect(.degrees(-90)) } .padding(CGFloat(index) * 16)
ise-uiuc/Magicoder-OSS-Instruct-75K
response = self.client.get("/", follow=True) self.assertEqual(response.status_code, 200)
ise-uiuc/Magicoder-OSS-Instruct-75K
let listDifficultiesUseCase: ListDifficultiesUseCase; describe("List Difficulties", () => { beforeEach(() => { difficultiesRepositoryInMemory = new DifficultiesRepositoryInMemory();
ise-uiuc/Magicoder-OSS-Instruct-75K
* Remember to call "create()" or "update()" and NOT "save()" when working
ise-uiuc/Magicoder-OSS-Instruct-75K
Recommended method for updating the data in the table. - note: This class does not perform the update with animation. Use `DifferentiableCollectionManager` instead. - parameter to: A new version of the data to show. - parameter animated: Flag unused in this class. See `DifferentiableCollectionManager` instead. */ open func update(to: CollectionType, animated: Bool) { self.collection = to
ise-uiuc/Magicoder-OSS-Instruct-75K
/** Last activity that was shown (or null if none or it was destroyed). */ @SuppressLint("StaticFieldLeak") private static Activity sActivity; /** A lazily initialized listener that forwards application state changes to native. */
ise-uiuc/Magicoder-OSS-Instruct-75K
{ return ship.Owner != HostShip.Owner; } private int GetAiPriority(GenericShip ship) { return ship.PilotInfo.Cost + ship.UpgradeBar.GetUpgradesOnlyFaceup().Sum(n => n.UpgradeInfo.Cost); } } }
ise-uiuc/Magicoder-OSS-Instruct-75K
import org.springframework.data.mongodb.repository.Aggregation; import org.springframework.data.repository.CrudRepository; /** * A repository interface assembling CRUD functionality as well as the API to invoke the methods implemented manually. * * @author <NAME> * @author <NAME> * @author <NAME>
ise-uiuc/Magicoder-OSS-Instruct-75K
if name == config.default_cluster: print(' default') for key, value in args.items(): print(f' {key}: {value}') def cluster_ls(config: Config) -> None:
ise-uiuc/Magicoder-OSS-Instruct-75K
macro_rules! rol { ($e:expr, $n:literal) => {{
ise-uiuc/Magicoder-OSS-Instruct-75K
['2020-01-01', '2020-01-02', -1], ['2020-01-01', '2019-01-01', 365], ['2021-01-01', '2020-01-01', 366], ['2020-03-30', '2020-03-27', 3], ])('should return %p for difference of %p %p', (d1, d2, days) => { const diem1 = new Diem(d1); const diem2 = new Diem(d2); expect(diem1.diff(diem2)).toEqual(days); }); }); });
ise-uiuc/Magicoder-OSS-Instruct-75K
<gh_stars>0 // Copyright (c) 2020, Phoenix Contact GmbH & Co. KG
ise-uiuc/Magicoder-OSS-Instruct-75K
GWBUF* create_gwbuf(const string& s)
ise-uiuc/Magicoder-OSS-Instruct-75K
open class SpecHelper { open class func fixtureJSONObject(fixtureNamed: String) -> AnyObject? { let bundle = Bundle(for: SpecHelper.self) let filePath = bundle.path(forResource: fixtureNamed, ofType: "json") let data = try? Data(contentsOf: URL(fileURLWithPath: filePath!)) let jsonObject : AnyObject? = try! JSONSerialization.jsonObject(with: data!, options: JSONSerialization.ReadingOptions.mutableContainers) as AnyObject? return jsonObject } }
ise-uiuc/Magicoder-OSS-Instruct-75K
LOCK='/media/sysadmin2/Data/Project/zvonar-api/zvonar/additionally/test/zvonar*.lock' #файл блокировки
ise-uiuc/Magicoder-OSS-Instruct-75K
); } }
ise-uiuc/Magicoder-OSS-Instruct-75K
} // If the test is built as PIE, then the semaphore address listed in the // notes section is relative to the beginning of the binary image. auto binaryOffset = folly::symbolizer::detail::get_r_debug()->r_map->l_addr; CHECK_EQ(expectedSemaphore, binaryOffset + semaphoreAddr); return true; } } return false; } static uint32_t arrayTestFunc() {
ise-uiuc/Magicoder-OSS-Instruct-75K
onFloorSensor.type = SensorType.sbool; onFloorSensor.shape = new int[]{}; onFloorSensor.isState = true; onFloorSensor.resettable = true; onFloorSensor.OnBinding(this); AddSensor(onFloorSensor); positionSensor = new PositionSensor(); positionSensor.perceptionKey = "my_position"; positionSensor.type = SensorType.sfloatarray; positionSensor.shape = new int[]{3}; positionSensor.isState = true; positionSensor.isGlobal = this.globalPositionSensor;
ise-uiuc/Magicoder-OSS-Instruct-75K
fields: syn::Fields::Named(ref fields),
ise-uiuc/Magicoder-OSS-Instruct-75K