seed
stringlengths
1
14k
source
stringclasses
2 values
let mut reader = File::open(src).map(BufReader::new).map(gtf::Reader::new)?;
ise-uiuc/Magicoder-OSS-Instruct-75K
tocall="alltests_msvc.bat" if "msvc" in sys.argv[1] else "alltests_gcc.bat" else: test_all="test_all" tocall="alltests_gcc.sh" if config[0]=="standalone_singleabi": tocall="standalone_"+tocall else:
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>turbofuture1/dukeofedinburgh<gh_stars>1-10 #include <iostream> #include <string> #include <bits/stdc++.h> using namespace std;
ise-uiuc/Magicoder-OSS-Instruct-75K
def open_repo(*args): ''' Open the Kivy Designer repository ''' webbrowser.open("https://github.com/kivy/kivy-designer") def open_docs(*args): ''' Open the Kivy docs ''' webbrowser.open("http://kivy.org/docs/") def open_kd_docs(*args): '''
ise-uiuc/Magicoder-OSS-Instruct-75K
def tf2linphase(h, normalize=True): """Converts a transfer function to linear phase Parameters ---------- h : ndarray Numpy array containing the original transfer function Returns ------- h_lin : ndarray Numpy array containing the linear phase transfer function """ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
bx_block_hash = None compressed_size = None prev_block_hash = None ont_block_len = None compression_rate = None return BlockInfo( block_hash, short_ids, decompress_start_datetime, datetime.utcnow(),
ise-uiuc/Magicoder-OSS-Instruct-75K
mod adaptive; mod depjoin; mod join; mod sequential; pub(crate) use adaptive::AdaptiveScheduler; pub(crate) use depjoin::DepJoinScheduler; pub(crate) use join::JoinScheduler;
ise-uiuc/Magicoder-OSS-Instruct-75K
])) self.assertEqual(len(data_class), 50000)
ise-uiuc/Magicoder-OSS-Instruct-75K
@attr.s class Count(object): """Count class with monochromatic and bichromatic counts""" n = attr.ib() monochromatic = attr.ib(default=0) bichromatic = attr.ib(default=0) def count_edge(self, u, v):
ise-uiuc/Magicoder-OSS-Instruct-75K
.botonFormOrdeDay{ background: white; width: 100%; height: 40px; text-align: center;
ise-uiuc/Magicoder-OSS-Instruct-75K
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
ise-uiuc/Magicoder-OSS-Instruct-75K
client.on_message = onMQTTMessage client.username_pw_set(username=mqttUsername, password=<PASSWORD>Password) client.connect(mqttBroker, mqttPort, 60) client.subscribe(mqttTopic) client.loop_forever() if __name__ == "__main__": try:
ise-uiuc/Magicoder-OSS-Instruct-75K
# straight and horizontal self.addconfiguration_attr("qs", np.array([0, 0, -pi / 2, 0, 0, 0])) # nominal table top picking pose self.addconfiguration_attr("qn", np.array([0, pi / 4, pi, 0, pi / 4, 0]))
ise-uiuc/Magicoder-OSS-Instruct-75K
let nodeResumedS = Double(nodeResumed.sampleTime) / format.sampleRate XCTAssertEqual( 3.0, nodeResumedS - nodeBeforeStopS - playTookS, accuracy: PlaybackEngineTests.relativeTimeAccuracyS )
ise-uiuc/Magicoder-OSS-Instruct-75K
set -e rm -f /myapp/tmp/pids/server.pid
ise-uiuc/Magicoder-OSS-Instruct-75K
if self._proxies[key] is not None: (p, newkey) = self._proxies[key] return p[newkey] elif self._publishers[key] is not None: return self._publishers[key]() else: return dict.__getitem__(self, key) def publish(self, key, publisher): if not self.has_key(key): self.__missing__(key) if ...
ise-uiuc/Magicoder-OSS-Instruct-75K
// dd($response->json()); if ($response->json()['success'] !== true) { return redirect()->back()->withFlashMessage('Are you BOT ?'); } Post::create([ 'title'=> request('title'), ]); return back()->withFlashMessage('You have added the post successf...
ise-uiuc/Magicoder-OSS-Instruct-75K
"production": { "hydro": 0.0, "coal": 0.0, "biomass": 0.0, "solar": 0.0, }, "storage": {}, "source": "punjasldc.<EMAIL>", } for from_key, to_key in GENERATION_MAPPING.items(): data["production"][to_key] += max(0, raw_data[f...
ise-uiuc/Magicoder-OSS-Instruct-75K
long_description = f.read() setup( name="anonip", version="1.1.0", description="Anonip is a tool to anonymize IP-addresses in log-files.", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/DigitaleGesellschaft/Anonip",
ise-uiuc/Magicoder-OSS-Instruct-75K
void HipServer::HandleReceive(const boost::system::error_code& error, std::size_t numBytes) { if ((!error || error == boost::asio::error::message_size)) { LOGGER_DEBUG("** HANDLING INCOMING HIP PACKET **"); try { m_context.m_buffer = std::make_shared<ByteBlock> (m_buffer.begin(), m_buffer.begin() + numB...
ise-uiuc/Magicoder-OSS-Instruct-75K
Website: http://www.cuijiahua.com/ Modify: 2017-11-20 """
ise-uiuc/Magicoder-OSS-Instruct-75K
task.resume() } }
ise-uiuc/Magicoder-OSS-Instruct-75K
harmonic_model_points = ODEModel( harmonic_dict, initial={t: 0.0, x: 1.0, y: 0.0}) tdata = np.linspace(-100, 100, 101) X, Y = harmonic_model_array(t=tdata, k=0.1) # Shuffle the data to prevent using the result at time t to calculate
ise-uiuc/Magicoder-OSS-Instruct-75K
) parser.add_argument( '--noerrpages', action='store_true', dest='noerrpages',
ise-uiuc/Magicoder-OSS-Instruct-75K
this.graphQlService .getArticlesByCategoryId(params.categoryId) .then((response: ResponseModel) => { response.data.findCategoryById.articles .map((article: Article) => {
ise-uiuc/Magicoder-OSS-Instruct-75K
assert e == "Not datetime object" timestamp = datetime.fromisoformat("2020-01-01 10:00:00") test_Data = Data.add_data(timestamp, 1, 1, 3, 2, 5, 3)
ise-uiuc/Magicoder-OSS-Instruct-75K
package org.apache.hadoop.yarn.server.timelineservice.storage.common; import static org.junit.Assert.assertEquals;
ise-uiuc/Magicoder-OSS-Instruct-75K
"docker-cn": "https://registry.docker-cn.com", # docker官方中国镜像 "azure": "https://dockerhub.azk8s.cn", "tencentyun": "https://mirror.ccs.tencentyun.com", # 腾讯云
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_required_kwargs_for_list(self): required_list_method_params = [ "compartment_id", ] return dict(
ise-uiuc/Magicoder-OSS-Instruct-75K
--ts_out="service=grpc-web:${OUT_DIR}" \ ${GOCELER}/merchantclient/proto/invoice.proto
ise-uiuc/Magicoder-OSS-Instruct-75K
bokeh_sequences.update(seqs) bokeh_mappings.update(maps)
ise-uiuc/Magicoder-OSS-Instruct-75K
def get_input(): with open("input.txt", "r") as f: for coordinate in f.read().strip().split("\n"): coords = coordinate.split(", ")
ise-uiuc/Magicoder-OSS-Instruct-75K
class Annotation(CogniteResource): """Representation of an annotation in CDF. Args: id (int, optional): [description]. Defaults to None. annotated_resource_id (int, optional): [description]. Defaults to None. text (str, optional): [description]. Defaults to None. annotated_reso...
ise-uiuc/Magicoder-OSS-Instruct-75K
dfs1(root, 0, &mut nodes); dfs2(root, &mut 0, &mut nodes); Self { nodes } } pub fn depth(&self, v: usize) -> usize { self.nodes[v].depth } pub fn adj(&self, v: usize) -> &Vec<usize> {
ise-uiuc/Magicoder-OSS-Instruct-75K
# you may add more import if you need to # don't change this line hdfs_nn = sys.argv[1] spark = SparkSession.builder.appName("Assigment 2 Question 4").getOrCreate() # YOUR CODE GOES BELOW df = ( spark.read.option("header", True) .option("inferSchema", True) .option("delimiter", ",")
ise-uiuc/Magicoder-OSS-Instruct-75K
describe("ModelConverter.getTransactionData", () => { it("should convert transaction to model and back to data", () => { const modelConverter = container.resolve(ModelConverter); const transaction = Blocks.BlockFactory.fromData(block1760000).transactions[0]; const models = modelConverter.get...
ise-uiuc/Magicoder-OSS-Instruct-75K
if __name__ == "__main__": print(generate_verification_code())
ise-uiuc/Magicoder-OSS-Instruct-75K
const slugReference = ` select( _type == 'route' => slug[$lang].current, slug.current ) `
ise-uiuc/Magicoder-OSS-Instruct-75K
]; $rules = [ 'name' => 'required', 'email' => 'required|email|max:255', 'password' => '<PASSWORD>',
ise-uiuc/Magicoder-OSS-Instruct-75K
return 3*t**2*np.exp(t**3) x_points = np.array([0, 0.2, 0.6, 0.8, 1.0]) import sys
ise-uiuc/Magicoder-OSS-Instruct-75K
<reponame>Unipisa/eligere @using EligereVS @using EligereVS.Models @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
ise-uiuc/Magicoder-OSS-Instruct-75K
let mut x = 100; let y = &mut x; *y += 100; let z = y; *z += 1000; assert_eq!(x, 1200); }
ise-uiuc/Magicoder-OSS-Instruct-75K
MaterialMapper materialMapper = null; foreach (var materialMapperName in MaterialMapper.RegisteredMappers) { if (TriLibSettings.GetBool(materialMapperName)) { materialMapper = (MaterialMapper)ScriptableObject.CreateInstance(material...
ise-uiuc/Magicoder-OSS-Instruct-75K
<script src="{!! asset("/bower/admin-lte/bootstrap/js/bootstrap.min.js") !!}" type="text/javascript"></script> <script src="{!! asset("/bower/admin-lte/dist/js/app.min.js") !!}" type="text/javascript"></script> </body> </html>
ise-uiuc/Magicoder-OSS-Instruct-75K
} }; // TransformReduce_ specialization } // namespace intern template <class T, size_t size, class Transformer, class Reducer> constexpr auto transform_reduce( const Array<T, size> &lhs, const Array<T, size> &rhs, Transformer transformer, Reducer reduce...
ise-uiuc/Magicoder-OSS-Instruct-75K
tx_id = self.transactions() self.tx_read(tx_id, 'datapath=%x, port=%x, rx-pkts' % (1, 1)) actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD)] action = { 'name': 'OFPPacketOut', 'kwargs': { 'buffer_id': msg.buffer_id, 'in_port':...
ise-uiuc/Magicoder-OSS-Instruct-75K
:type s: str :rtype: str """ res = [] for i in range(len(s)-1,-1,-1): res.append(s[i]) return ''.join(res)
ise-uiuc/Magicoder-OSS-Instruct-75K
# The hash of the mnemonic seed must begin with this SEED_PREFIX = '01' # Standard wallet SEED_PREFIX_SW = '100' # Segwit wallet SEED_PREFIX_2FA = '101' # Two-factor authentication SEED_PREFIX_2FA_SW = '102' # Two-factor auth, using segwit
ise-uiuc/Magicoder-OSS-Instruct-75K
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF ...
ise-uiuc/Magicoder-OSS-Instruct-75K
rb.addline("<b>{})</b> {} --> {}".format( i, k, v)) rb.addline('<b>Total Amount: {}</b>'.format(psaletotal)) rb.addemptyline() ssalesum, ssaletotal = filterdata(data, "RESALE") if len(ssalesum) > 0: i = 0 rb.addline("<b>Tickets sold on the secondary ma...
ise-uiuc/Magicoder-OSS-Instruct-75K
JsonValue UiConfig::Jsonize() const { JsonValue payload; if(m_uiTemplateS3UriHasBeenSet) { payload.WithString("UiTemplateS3Uri", m_uiTemplateS3Uri); }
ise-uiuc/Magicoder-OSS-Instruct-75K
), density=1.0, restitution=0.0, categoryBits=0x0020, maskBits=0x001 ) ) leg.ground_contact = False leg.color1 = (0.5, 0.4, 0.9)
ise-uiuc/Magicoder-OSS-Instruct-75K
'index': snapshot_index, 'snapshot': snapshot, 'values': snapshot_values }) def get_value(self, value_node): value = Value()
ise-uiuc/Magicoder-OSS-Instruct-75K
indexer = TokenCharactersIndexer(u"characters", CharacterTokenizer(lowercase_characters=True)) counter = defaultdict(lambda: defaultdict(int)) indexer.count_vocab_items(Token(u"Hello"), counter) indexer.count_vocab_items(Token(u"hello"), counter) assert counter[u"characters"] == ...
ise-uiuc/Magicoder-OSS-Instruct-75K
else: #we have the dictionary in var d = var; if fext == '.pkl': with open(pickle_file_name, 'wb') as f:
ise-uiuc/Magicoder-OSS-Instruct-75K
std::mutex scheduleMutex; std::vector<bool> schedule; public: Scheduler(uint32_t size, bool initializer = true); ~Scheduler();
ise-uiuc/Magicoder-OSS-Instruct-75K
withAnimation(.easeInOut(duration: 3)) { isVisible.toggle() } } if isVisible {
ise-uiuc/Magicoder-OSS-Instruct-75K
action_calls: vec![act!("foo")], state_transition: None }
ise-uiuc/Magicoder-OSS-Instruct-75K
ans.append(i) return ans
ise-uiuc/Magicoder-OSS-Instruct-75K
TXB2RTS = 0x04 TXB1RTS = 0x02 TXB0RTS = 0x01 #/******************************************************************* # * Bit Timing Configuration * # *******************************************************************/ #/* CNF1 */ SJW_1TQ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("点击的Cell 为 section:\(indexPath.section) row:\(indexPath.row)") } }
ise-uiuc/Magicoder-OSS-Instruct-75K
export interface Effect<R, E, A> { /** * @ets_rewrite_method runMain from "@effect-ts/node/Runtime" */ runMain<EX, AX>(this: T.Effect<T.DefaultEnv, EX, AX>): void } }
ise-uiuc/Magicoder-OSS-Instruct-75K
raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods_...
ise-uiuc/Magicoder-OSS-Instruct-75K
diagnostic = SerialNumberDiagnostic()
ise-uiuc/Magicoder-OSS-Instruct-75K
return json.loads(req.get(urls['replay'], params=params).text)
ise-uiuc/Magicoder-OSS-Instruct-75K
) status = forms.ChoiceField( required=False, choices=add_blank_choice(JobResultStatus.choices), widget=StaticSelect(), )
ise-uiuc/Magicoder-OSS-Instruct-75K
from math import * def d(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y): if len(set([(p1x,p1y),(p2x,p2y),(p3x,p3y),(p4x,p4y)])) != 4: return (0,0) dis = sqrt((p2x-p1x)*(p2x-p1x) + (p2y-p1y)*(p2y-p1y)) + \ sqrt((p3x-p2x)*(p3x-p2x) + (p3y-p2y)*(p3y-p2y)) + \ sqrt((p4x-p3x)*(p4x-p3x) + (p4y-p3y)*(p4y-p3y)) return (dis...
ise-uiuc/Magicoder-OSS-Instruct-75K
# s3_counter.clear() # If we clear the counter variable, only Counter() will be returned # O/P: Counter() # Conveting counter to a dictionary s3_dict = dict(s3_counter)
ise-uiuc/Magicoder-OSS-Instruct-75K
export declare function responsiveRadiusStyle(props: ResponsiveRadiusStyleProps & ThemeProps): import("styled-components").CSSObject[];
ise-uiuc/Magicoder-OSS-Instruct-75K
from mongo_to_sql.databases import mongo, postgres directory = '/Users/wgarlock/Documents/all_collections' root = environ.Path(__file__) - 4 BASE_DIR = root() env = environ.Env(DEBUG=(bool, False)) env.read_env(os.path.join(BASE_DIR, '.migrate_config')) mongo_database = mongo.MongoDatabase() if directory and os.path...
ise-uiuc/Magicoder-OSS-Instruct-75K
nonebot.init() app = nonebot.get_asgi() driver = nonebot.get_driver() driver.register_adapter("cqhttp", Bot) nonebot.load_builtin_plugins() nonebot.load_plugins("nonebot_plugin_guess") if __name__ == "__main__": # nonebot.run() # nonebot.run(app="bot:app") nonebot.run(app="minimal_bot:app")
ise-uiuc/Magicoder-OSS-Instruct-75K
approvalExpirationTime, }); } } export class InvalidApprovalSignatureError extends RevertError { constructor(transactionHash?: string, approverAddress?: string) { super( 'InvalidApprovalSignatureError', 'InvalidApprovalSignatureError(bytes32 transactionHash, ...
ise-uiuc/Magicoder-OSS-Instruct-75K
except TimeoutError as takeoffError: print("Takeoff is timeout!!!")
ise-uiuc/Magicoder-OSS-Instruct-75K
Override the base metric tasks to add specific ones only required on community. """ # Disable import error because -ext is not available on pylint # pylint: disable=import-error from readthedocsext.monitoring.metrics.database import ( AvgBuildTimeMetric, AvgBuildTriggeredAndFirstCommandTimeMetric, Concurr...
ise-uiuc/Magicoder-OSS-Instruct-75K
from __future__ import annotations from typing import TypedDict class DueDate(TypedDict): """Dict representing a due date in a todoist api response.""" date: str is_recurring: bool lang: str string: str timezone: str | None
ise-uiuc/Magicoder-OSS-Instruct-75K
required public init(row: Row) { uid = row[Columns.uid] name = row[Columns.name] code = row[Columns.code] marketCapRank = row[Columns.marketCapRank] coinGeckoId = row[Columns.coinGeckoId]
ise-uiuc/Magicoder-OSS-Instruct-75K
view.addSubview(sliderStackView) topSlider.addTarget(self, action: #selector(topSliderValueDidChange), for: .valueChanged) bottomSlider.addTarget(self, action: #selector(bottomSliderValueDidChange), for: .valueChanged) NSLayoutConstraint.activate([ sliderStackView.bottomAnc...
ise-uiuc/Magicoder-OSS-Instruct-75K
def initBlockchain(mydb): print("Initializing Blockchain...") if existsAudittrailsTable(mydb): print("Resetting existing Table...") mydb.cursor().execute("TRUNCATE TABLE `audittrails`") mydb.commit() print("Done!") else:
ise-uiuc/Magicoder-OSS-Instruct-75K
for ar, ac in [(1, 0), (-1, 0), (0, 1), (0, -1)]: ar = nr + ar ac = nc + ac # print(d[ar][ac]) if (ar, ac) not in checked and (0 <= ar < rlen) and (0 <= ac < clen) and (d[ar][ac] != 9)...
ise-uiuc/Magicoder-OSS-Instruct-75K
} //Destructor Queue::~Queue() { delete this->list; this->list = nullptr; } //Makes an empty Queue . void Queue::MakeEmpty() { this->list->makeEmpty(); }
ise-uiuc/Magicoder-OSS-Instruct-75K
{ private readonly Guid _productId; public UsersByProductWhereSpec(Guid productId) { _productId = productId; } public override Expression<Func<User, bool>> IsSatisfiedBy() { return user => user.Products.Any(r => r.Id == _productId); }...
ise-uiuc/Magicoder-OSS-Instruct-75K
Epidemic model used to compute R(t) from K(t) curves (pd.DataFrame): A dataframe with epidemic curves. window (int): Window size of triangular smoothing. Can be a single number or a 2-tuple with the window used to compute daily cases and the window
ise-uiuc/Magicoder-OSS-Instruct-75K
if(svenzva_joy.cur_cmd.axes[svenzva_joy.linear_x] > 0.95) user_target_goal = 1; else if (svenzva_joy.cur_cmd.axes[svenzva_joy.linear_x] < -0.95)
ise-uiuc/Magicoder-OSS-Instruct-75K
import cv2 from sqlalchemy import create_engine from sqlalchemy_utils import database_exists, create_database import psycopg2 import pandas as pd from sklearn.model_selection import train_test_split from sklearn.neighbors import KNeighborsClassifier from sklearn import metrics import matplotlib.pyplot as plt #import t...
ise-uiuc/Magicoder-OSS-Instruct-75K
def test_Index_file_damaged(self): logger.info('----------------------------创建兼容mysql的数据库 期望:创建成功-----------------------------') sql_cmd = ''' drop table if exists pstudent_table_02 cascade; drop table if exists pclass_table_02 cascade; dro...
ise-uiuc/Magicoder-OSS-Instruct-75K
gs.infile = self.file gs.outfile = outputfile
ise-uiuc/Magicoder-OSS-Instruct-75K
tb.autoPinEdge(toSuperviewEdge: .left) tb.autoPinEdge(toSuperviewEdge: .right) tb.autoSetDimension(.height, toSize: Theme().tabBarHeight) tb.selectHandler = { [weak self] _, selectedEntry, _ in self?.tabEntries.enumerated().forEach { index, entry in self?.tabEntries[index].isSelected = (en...
ise-uiuc/Magicoder-OSS-Instruct-75K
cd .. exit
ise-uiuc/Magicoder-OSS-Instruct-75K
from .caches import *
ise-uiuc/Magicoder-OSS-Instruct-75K
"""Class method called once before running tests in a test class.""" cls.api_client = EasybimehlandingClient() cls.request_timeout = 30
ise-uiuc/Magicoder-OSS-Instruct-75K
print(result)
ise-uiuc/Magicoder-OSS-Instruct-75K
#制作小场景demo #是否启用粒子边界做一个宏开关,应为粒子边界效果一般还有点卡 #存在一个很不美观的问题,刚生成的矩形粒子一碰就炸,应该是跟边界权重有关(已修复) #圆一碰边界,边界粒子变液体
ise-uiuc/Magicoder-OSS-Instruct-75K
export const underscore = realUnderscore export const _ = realUnderscore
ise-uiuc/Magicoder-OSS-Instruct-75K
} else { return self.emit_opcode(Opcode::PushNegativeInfinity); } } // Check if the f64 value can fit in an i32. #[allow(clippy::float_cmp)] if value as i32 as f64 == value { self.emit_push_integer(value as i32); } else { ...
ise-uiuc/Magicoder-OSS-Instruct-75K
//HRESULT hr; //hr=m__dxj_Direct3dRMObjectArray->GetElement((DWORD)i,&realobj); //if FAILED(hr) return hr; //INTERNAL_CREATE(_dxj_Direct3dRMObject,(IDirect3DRMObject)realobj,obj); return E_FAIL; }
ise-uiuc/Magicoder-OSS-Instruct-75K
final long addressId = rs.getLong("id"); final long client_id = rs.getLong("client_id");
ise-uiuc/Magicoder-OSS-Instruct-75K
export TPP_PASS=<PASSWORD> export TPP_ZONE="Certificates\\\\HashiCorp Vault\\\\Internal PKI" export VAULT_ADDR=http://127.0.0.1:8200 # Enable the secrets engine for the venafi-pki-backend plugin: vault secrets enable -path=venafi-pki -plugin-name=venafi-pki-backend plugin # Create a PKI role for the venafi-pki backen...
ise-uiuc/Magicoder-OSS-Instruct-75K
* <p>This method will be called after a call to {@link * com.io7m.r2.shaders.api.R2ShaderUsableType#onActivate(JCGLInterfaceGL33Type)} * and before a call to {@link #onValidate()}.</p> * * @param g An OpenGL interface * @param tc A texture unit context * @param map A rendered shadow map */ ...
ise-uiuc/Magicoder-OSS-Instruct-75K
from Manager import dispatcher from Manager.modules.disable import DisableAbleCommandHandler @run_async def ud(bot: Bot, update: Update): message = update.effective_message text = message.text[len('/ud '):] results = requests.get(f'http://api.urbandictionary.com/v0/define?term={text}').json()
ise-uiuc/Magicoder-OSS-Instruct-75K
use App\Models\Setting; use Illuminate\Http\Request; class MainController extends Controller { public function showProducts(Request $request) { $products = Product::where('resturant_id', $request->user()->id)->paginate(10); return responseJson(1, 'Success', $products); }
ise-uiuc/Magicoder-OSS-Instruct-75K