seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': os.environ['LOCAL_DB_NAME'],
'USER': os.environ['LOCAL_DB_USER'],
| ise-uiuc/Magicoder-OSS-Instruct-75K |
opts={{
width:"298"
}}
/>
</Grid>
<Grid item={true} md={6}>
<Typography color="inherit" variant="h6">
How to make your own product?
</Typography>
<Divider />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@admin.register(PositionPreset)
class PositionPresetAdmin(admin.ModelAdmin):
list_display = ('name', 'positions_json')
@admin.register(EventScore)
class EventScoreAdmin(admin.ModelAdmin):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def forward(self, x):
x, (y1, p1, y2, p2) = self.encoder(x)
x = self.decoder(x, y1, p1, y2, p2)
return x | ise-uiuc/Magicoder-OSS-Instruct-75K |
// QueuedInterfaceController.swift
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
const QMetaObject SimpleMissionItem::staticMetaObject = {
{ &VisualMissionItem::staticMetaObject, qt_meta_stringdata_SimpleMissionItem.data,
qt_meta_data_SimpleMissionItem, qt_static_metacall, nullptr, nullptr}
};
const QMetaObject *SimpleMissionItem::metaObject() const
{
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}
void *SimpleMissionItem::qt_metacast(const char *_clname)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}()
override func viewDidLoad() {
super.viewDidLoad()
setupUI()
setupNavigationBar()
presenter?.viewDidLoad()
singnInButton.addTarget(self, action: #selector(signIn), for: .touchUpInside)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public static class StringExtensions
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
type PositionDelta = { characterDelta: number; lineDelta: number };
export enum GrowthType {
Grow,
FixLeft,
FixRight,
}
export interface IChangeInfo {
change: vscode.TextDocumentContentChangeEvent;
growth: GrowthType;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
{
var identityOptions = Configuration.GetSection(nameof(TelemetryOptions))
.Get<TelemetryOptions>();
serviceCollection.Configure<TelemetryOptions>(
opt => opt.SourceName = identityOptions.SourceName
);
source_name = new ActivitySource(identityOptions.SourceName).Name;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const headerHeight = '5rem';
export { headerHeight };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* so - this means that the single element is further into array, if not - it is either current
* element or some of the elements before. We only need to check the even indexes to avoid redundant
* computation.
*/
class Solution {
public int singleNonDuplicate(int[] nums) {
int lo = 0;
int hi = nums.length - 1;
while (lo < hi) {
int mid = lo + (hi - lo) / 2;
if (mid % 2 == 1) {
mid--;
}
if (nums[mid] == nums[mid + 1]) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return O_int + zeropoint;
}
// quantize_float32_int8_end
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print("Input error for file " + e.fname)
if e.fext != [""]:
print(" Acceptable file types:")
for ext in e.fext:
print(" " + ext)
except IOError:
raise
def load(self, fname):
sys.stdout.write("Loading FFEA stokes file...")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
numSides = -1;
}
/*************************************************************
** Die constructor
| ise-uiuc/Magicoder-OSS-Instruct-75K |
(8, 13, [5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]),
(8, 9, [1,2,3,4,5,6,7,8,9]),
]
for expected, value, collection in tests:
eq(expected, binary_search(collection, 0, len(collection), value))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from sklearn.preprocessing import LabelEncoder
from keras.utils import to_categorical
def coughdetect(coughfile):
# Convert features and corresponding classification labels into numpy arrays
X = np.array(featuresdf.feature.tolist())
y = np.array(featuresdf.class_label.tolist())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
n_layers = nx;
}
else if (cut_dir == CUT_DIR_Y)
{
j_start = (int) myid * ((double) ny / numprocs);
j_end = (int) (myid + 1) * ((double) ny / numprocs) - 1;
n_layers = ny;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""# Relação entre Clientes x Cancelamentos
8.499 Clientes e 1.627 Cancelados (16%)
"""
quantidade_categoria = tabela["Categoria"].value_counts() # value_counts contou os valores
display(quantidade_categoria) # 8.499 Clientes e 1.627 Cancelados
quantidade_categoria_percentual = tabela["Categoria"].value_counts(normalize=True) # normalize disse o quanto representa do total
display(quantidade_categoria_percentual) # 16% Cancelados
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let arr = Array2::from_shape_vec([xi, yi], arr.into_raw_vec())?;
Ok(arr)
}
}
#[allow(clippy::use_self)]
impl<T: Numeric> File for Array3<T> {
#[inline]
fn load(path: &Path) -> Result<Array3<T>, Error> {
let file = netcdf::open(path)?;
let data = &file.variable("data").ok_or("Missing variable 'data'.")?;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public IEnumerable<string> Themes
{
get { return CremaAppHostViewModel.Themes.Keys; }
}
public bool CanSelectDataBase
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def test_2d_identity(self):
a = primitives.line2d()
self.assertEqual(a.primitive, MeshPrimitive.LINES)
self.assertFalse(a.is_indexed())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
]
replaces = [
("order", "0008_surcharge"),
]
operations = [
migrations.CreateModel(
name="Surcharge",
fields=[
| ise-uiuc/Magicoder-OSS-Instruct-75K |
try {
const { username, password } = req.body;
const user = await model.MEMB_INFO.findOne({
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self, "last_cidr_range_table",
table_name="last_cidr_range_table",
partition_key=aws_dynamodb.Attribute(
name="id",
type=aws_dynamodb.AttributeType.STRING
)
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
import { Flex } from "@chakra-ui/react";
import SwiperCore, { Navigation, Pagination, A11y } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';
import { SlideItem } from "./SlideItem";
SwiperCore.use([Navigation, Pagination, A11y]);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#[should_panic]
fn early_return_boxing() {
// The release-mode compiler is able to optimize through the Box
if cfg!(debug_assertions) {
Box::new(early_return());
} else {
panic!("Intentional")
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
https://github.com/Natsu6767/Generating-Devanagari-Using-DRAW
to generate ships
"""
import pygame.surfarray
| ise-uiuc/Magicoder-OSS-Instruct-75K |
:param band_index: Index of passed band.
"""
self.histogram = histogram
self.joint_histogram = joint_histogram
self.band_index = band_index
self.mutual_information = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
host = request.getHeader('Host')
path = request.path.decode('utf-8')
isSecure = request.isSecure()
reactor.callLater(1, self._insertIntoDB,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# names, and because they are immutable once created, we can simply use
# their names for this purpose. Of course this falls apart for
# in-memory databases, but since we only ever use these in testing with
# caching disabled we can live with this.
self.cache_key = filename.encode("utf8")
# For easier debugging of custom SQL functions written in Python
sqlite3.enable_callback_tracebacks(True)
# LIKE queries must be case-sensitive in order to use an index
self.connection.execute("PRAGMA case_sensitive_like=ON")
self.date_offsets = dict(
self.connection.execute("SELECT date, offset FROM date")
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// We can also use a variable to cover all cases. In
// this case we're using `other`, such that any
// case that doesn't match (for roll) defaults to
// calling Action::move_player(spaces: u8)
fn take_action_with_move(roll: u8) {
match roll {
1 => Actions::add_fancy_hat(),
3 => Actions::remove_fancy_hat(),
other => Actions::move_player(other),
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#pragma once
#include <optional>
#include <interfaces/effect_player.hpp>
#include <interfaces/offscreen_render_target.hpp>
#include <interfaces/image_processing_result.hpp>
namespace bnb::oep::interfaces
{
class offscreen_effect_player;
}
using offscreen_effect_player_sptr = std::shared_ptr<bnb::oep::interfaces::offscreen_effect_player>;
using oep_image_process_cb = std::function<void(image_processing_result_sptr)>;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return s[:57] + "..."
def can_colorize(s: str):
"""True if we can colorize the string, False otherwise."""
if pygments is None:
return False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.assertEqual(self.tan(0), 0)
def test_eq(self):
self.assertEqual(self.tan, Tan())
def test_get_derivative(self):
self.assertEqual(self.tan.get_derivative()(0), 1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>sattew/XamarinCommunityToolkit<gh_stars>1000+
using Xamarin.Forms;
namespace Xamarin.CommunityToolkit.Sample.Pages.Views
{
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(f'{k} = {v}') | ise-uiuc/Magicoder-OSS-Instruct-75K |
return
}
completion(.success(.coronaTest(coronaTestQRCodeInformation)))
}
// MARK: - Internal
| ise-uiuc/Magicoder-OSS-Instruct-75K |
auto kinds = ReferenceView::InvalidRef | ReferenceView::RemoteBranches;
ReferenceList *refs = new ReferenceList(mRepo, kinds, parent);
return refs;
}
void BranchDelegate::setEditorData(QWidget *editor, const QModelIndex &index) const
{
ReferenceList *refs = qobject_cast<ReferenceList *>(editor);
if (!refs) {
QStyledItemDelegate::setEditorData(editor, index);
return;
}
// Search for the matching item.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
class a_c_v_discrete(M):
'''
combine actor network and critic network, share some nn layers. use for discrete action space.
input: vector of state
output: probability distribution of actions given a state, v(s)
'''
def __init__(self, vector_dim, output_shape, hidden_units):
super().__init__()
self.share = mlp(hidden_units['share'], out_layer=False)
self.logits = mlp(hidden_units['logits'], output_shape=output_shape, out_activation=None)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.http import JsonResponse
#class for displaying members
class MemberViewSet(viewsets.ModelViewSet):
queryset = UserProfile.objects.all()
serializer_class = MemberSerializer
#class for taking activity input
class ActivityPeriodViewSet(viewsets.ModelViewSet):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
/// is tarball.
pub fn fetch_native(url: &str, cache_file: &Path) -> Result<Box<Archive>, failure::Error> {
Tarball::fetch(url, cache_file)
}
} else if #[cfg(windows)] {
/// Load an archive in the native OS-preferred format from the specified file.
///
/// On Windows, the preferred format is zip. On Unixes, the preferred format
/// is tarball.
pub fn load_native(source: File) -> Result<Box<Archive>, failure::Error> {
Zip::load(source)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#define ID2 (0x10000064)
uint32_t BoardGetRandomSeed(void)
{
return ((*(uint32_t *)ID1) ^ (*(uint32_t *)ID2));
return ((*(uint32_t *)ID1) ^ (*(uint32_t *)ID2));
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
result.append("6" + s + "9")
result.append("9" + s + "6")
result.append("8" + s + "8")
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scores[currentHole-1]++;
}
void UpdateParText()
{
string _text = "";
for(int i =0; i < pars.Length; i++)
{
_text += pars[i].ToString() + "\n\n";
}
parText.text = _text;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def delete_gtfs(self, id):
return requests.delete('?'.join([self.url("delete"), '='.join(["id", id])]))
def prepare_gtfs(self, gtfs_zip, gtfs_name , type):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def __init__(self):
super(Dialog, self).__init__()
QDialog.__init__(self)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def as_json(self):
return json.dumps(self.as_dict())
def as_dict(self):
return {
"access_token": self.access_token,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { format } from 'date-fns';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
Update internal state with a new batch of predictions and targets.
This function is called automatically by PyTorch Lightning.
:param predictions: Tensor, shape (batch_size, seq_len, num_slot_labels)
Model predictions per token as (log) softmax scores.
:param targets: Tensor, shape (batch_size, seq_len)
Slot filling ground truth per token encoded as integers.
"""
# Get hard predictions
predictions = torch.argmax(predictions, dim=-1)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return reinterpret_cast<Pin*>(const_cast<Term*>(term));
}
Net *
dbNetwork::net(const Term *term) const
{
dbBTerm *bterm = staToDb(term);
dbNet *dnet = bterm->getNet();
return dbToSta(dnet);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from django.db import models
class Sample1(models.Model):
"Generated Model"
user_id = models.BigIntegerField()
password = models.TextField()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
static {
instance = new Singleton();
}
private Singleton() {
}
public static Singleton getInstance() {
return instance;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"entities_from_conll2003",
"entities_from_txt",
"entities_from_array",
"entities_from_df",
"sequence_tagger",
"print_sequence_taggers",
"get_topic_model",
"Transformer",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
return s;
}
};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
icon: 'success',
title: '{{ session('update') }}'
})
@endif
</script>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__create_time__ = '13-10-29'
__author__ = 'Madre'
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let buf = e.buf.unwrap();
context.submit(ControlBlock::pwrite(wf.as_raw_fd(), buf, offset))
.expect("Failed to submit a write request");
}
}
}
while !context.is_empty() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private boolean yourTurn = true;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"category_genre",
metadata,
Column("category_id", GUID(), ForeignKey("categories.id"), primary_key=True),
Column("genre_id", GUID(), ForeignKey("genres.id"), primary_key=True),
)
genre_video = Table(
"genre_video",
metadata,
Column("genre_id", GUID(), ForeignKey("genres.id"), primary_key=True),
Column("video_id", GUID(), ForeignKey("videos.id"), primary_key=True),
)
category_video = Table(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Similar to a {@link org.openstreetmap.atlas.geography.atlas.items.LineItem} but for
* {@link CompleteEntity}-ies.
*
* @author <NAME>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
async def get_new_videos(self) -> str:
current_vid = await self.bot.db.field("SELECT ContentValue FROM videos WHERE ContentType = ?", "video")
for item in await self.call_feed():
data = await self.call_yt_api(item.yt_videoid)
thumbnails = data["snippet"]["thumbnails"]
duration = data["contentDetails"]["duration"]
if item.yt_videoid == current_vid:
# This is a video we already announced
return
elif "liveStreamingDetails" not in data.keys():
# A new video is live and its was not a premiere
| ise-uiuc/Magicoder-OSS-Instruct-75K |
name: 'Vital Signs OPD',
url: '/base/cards',
icon: 'icon-puzzle'
},
{
name: 'Physical Exam',
url: '/base/carousels',
icon: 'icon-puzzle'
},
{
name: 'Diet',
url: '/base/collapses',
icon: 'icon-puzzle'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return
fields[cur_name] = type(cur_msg)
for n, f in cur_msg._fields.items():
recursive_helper(f"{cur_name}.{n}", f._nested_msg)
for name, field in self._fields.items():
if expand_nested and field.context:
recursive_helper(name, field._nested_msg)
else:
fields[name] = field.context
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ControllerBase.__init__(self)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
__author__ = "<NAME>, <NAME>"
__all__ = ['allocation', 'doodle', 'model', 'solver', 'csvalidator']
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if *STATE {
ctx.resources.led.set_low().unwrap();
} else {
ctx.resources.led.set_high().unwrap();
}
*STATE = ! *STATE;
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def autodiscover():
return generic_autodiscover('panels')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
prop_compose! {
fn arb_absolute_char_offset(max_len: usize)(offset in 0..max_len) -> AbsoluteCharOffset {
AbsoluteCharOffset(offset)
}
}
prop_compose! {
fn arb_rope_and_offset()
(s in ".*")
(offset in 0..=r!(&s).len_chars(), s in Just(s)) -> (Rope, AbsoluteCharOffset) {
(r!(s), AbsoluteCharOffset(offset))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub use crate::image::*;
pub const IMAGE_NT_OPTIONAL_HDR_MAGIC: u16 = IMAGE_NT_OPTIONAL_HDR64_MAGIC;
pub type IMAGE_OPTIONAL_HEADER = IMAGE_OPTIONAL_HEADER64;
pub type IMAGE_NT_HEADERS = IMAGE_NT_HEADERS64;
pub type IMAGE_LOAD_CONFIG_DIRECTORY = IMAGE_LOAD_CONFIG_DIRECTORY64;
pub type IMAGE_DYNAMIC_RELOCATION = IMAGE_DYNAMIC_RELOCATION64;
pub type IMAGE_GUARDCF = IMAGE_GUARDCF64;
pub type IMAGE_TLS_DIRECTORY = IMAGE_TLS_DIRECTORY64;
/// Relative virtual address type, these are all offsets from the base of the mapped image in memory.
pub type Rva = u32;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"characters": "一",
"meanings": [
{"meaning": "One", "primary": True, "accepted_answer": True}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def main():
n = int(input())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
received = s.affiliations
assert_true(isinstance(received, list))
order = 'eid name variant documents city country parent'
Affiliation = namedtuple('Affiliation', order)
expected = [Affiliation(eid='10-s2.0-60021784', name='<NAME>',
variant='', documents='101148', city='New York',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
done
for TASK in bucc2018 tatoeba; do
python jiant/proj/main/runscript.py \
run_with_continue \
--ZZsrc ${BASE_PATH}/models/${MODEL_TYPE}/config.json \
--jiant_task_container_config_path ${BASE_PATH}/runconfigs/${TASK}.json \
| ise-uiuc/Magicoder-OSS-Instruct-75K |
TIME=$(date +%s)
# listed_ip_1_all.gz listed_ip_1_ipv6_all.gz listed_email_1_all.gz listed_username_1_all.gz
for name in ip ipv6 email username; do
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param data Pipcook origin sample data
* @param args oneHotTransfer: if current plugin will transfer label data to one-hot (only used when it's not one hot data.)
*/
const textClassDataAccess: DataAccessType = async (data: OriginSampleData[] | OriginSampleData, args?: ArgsType): Promise<UniformSampleData> => {
if (!Array.isArray(data)) {
data = [data];
}
const {
hasHeader=false,
delimiter=',',
} = args || {};
| ise-uiuc/Magicoder-OSS-Instruct-75K |
conn = DVRIPClient(Socket(AF_INET, SOCK_STREAM))
conn.connect((host, serv), username, password)
try:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
private $names = array();
private $contexts = array();
private $paths = array();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let size = stride * h;
slice::from_raw_parts(data, size)
};
let rec: Vec<u8> =
frame_plane.data_origin().iter().map(|&v| u8::cast_from(v)).collect();
compare_plane::<u8>(&rec[..], rec_stride, dec, stride, w, h);
}
};
let lstride = pic.stride[0] as usize;
let cstride = pic.stride[1] as usize;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<button type="button" class="btn btn-xs btn-3d select-file-upload btn-info full-width"> <i class="fa fa-upload"></i> <span>Select upload file</span> </button>
<button type="button" class="btn btn-xs btn-3d btn-danger clearupload"> <i class="fa fa-trash"></i> </button>
</div>
<div class="note"> <small class="font-italic"> (<strong>Note :</strong> Video file size maximum of 1Gb)</small> </div>
<img id="snapshot" src="" alt="" class="d-none">
<div class="uploadshow mt-3">
</div>
<input type="file" name="multimedia" class="hidden" style="display:none;" accept="video/*, audio/*">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default btn-xs btn-3d" data-dismiss="modal">Close</button>
<button type="submit" class="btn btn-primary btn-xs btn-3d"><i class="fa fa-save"></i> Save</button>
</div>
<div class="overlay-loading">
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using Microsoft.AspNetCore.Identity;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# return render_template("request.html", result=response)
return redirect(response['info']['paymentUrl']['web'])
# return render_template()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ctypesdict.setfromdict(writeDataStruct, inDict)
writeDataBuffer=bytes(memoryview(writeDataStruct))
# Write the new buffer to the board
conn.download(XCPConnection.Pointer(structBaseaddr, 0), writeDataBuffer)
conn.nvwrite()
try:
conn.close()
except XCPConnection.Error:
pass # swallow any errors when closing connection due to bad target implementations - we really don't care
print('Write OK')
writeOK = True
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (titleStr != null) {
titleTv.setText(titleStr);
}
if (hint1str != null) {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# How many circular primes are there below one million?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
public override void OnPointerClick(PointerEventData eventData)
{
Debug.Log("Botão para abrir a tela de créditos");
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .gp import *
from .predprey import *
from .eeg import *
from .temperature import *
from .util import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
T.Bar == Y,
T.Bar.Foo == Z { // expected-error{{associated type 'T.Bar.Foo' cannot be equal to both 'Y.Foo' (aka 'X') and 'Z'}}
return (t.bar, t.bar.foo) // expected-error{{cannot convert return expression of type 'X' to return type 'Z'}}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# def rotate(l, n):
# rl = []
# for i in range(n):
# temp = []
# for j in range(n):
# temp.append(l[n-1-j][i])
# rl.append(temp)
# return rl
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// 边框 与 内容 距离
hud.margin = 10
// minSize 最小尺寸
// isSquare 是正方形提示框
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if [ -f target/debug/exeSystemProcessor ];
then
echo "SYS File found"
if [ -f $HOME/Documents/Deploy/exeSystemProcessor ];
then
echo "SYS old removed"
rm -f $HOME/Documents/Deploy/exeSystemProcessor
fi
cp target/debug/exeSystemProcessor $HOME/Documents/Deploy/exeSystemProcessor
fi
cargo clean
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<input type="text" class="form-control" id="telefone" />
</div>
<div class="col-md-4">
<label for="email">Email</label>
<input type="email" class="form-control" id="email" />
</div>
<div class="col-md-2">
<label for="cpfcnpj">CPF</label>
<input type="text" class="form-control" id="cpfcnpj" />
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hours = df.cpm.resample('4H')
hours = hours.ix[1:-1]
cpm_axis.set_ylim((12, 20))
cpm_axis.plot(hours, color='red')
plt.show()
def plot_josiah():
fig, night_axis = plt.subplots()
month = df.ix['2015/08/01':'2015/08/31']
averages = month.cpm.resample('12H', how="mean")
night = averages.iloc[::2]
night_axis.plot(night, color='blue')
day_axis = night_axis.twinx()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#
#################################################################
# Licensed Materials - Property of IBM
# 5725-S17 IBM IoT MessageSight
# (C) Copyright IBM Corp. 2018. All Rights Reserved.
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with
# IBM Corp.
#################################################################
#
# You need to run this script for each namespace.
| ise-uiuc/Magicoder-OSS-Instruct-75K |
.status()
.expect("Could not run Python script to generate files.")
.code()
.unwrap());
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
using System;
using System.Collections.Generic;
using System.Text;
using Xe.BinaryMapper;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
virtualhost_302_tpl.stream(
server_name=server_name,
aliases=aliases).dump(f'{self.config.wt_config_path}/sites/{site}.conf')
virtualhost_tpl.stream(
site_id=site,
log_path=log_path,
path=public_html,
server_name=server_name,
proxies_pass=proxies_pass,
proxies_match=proxies_match,
secure=secure,
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pass
def __str__(self):
return self.nome
def get_absolute_url(self):
return reverse('modulos_aulas:aula', kwargs={'slug': self.slug})
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from absl import app, flags
FLAGS = flags.FLAGS
flags.DEFINE_string('base_dir', 'base', 'Base directory')
flags.DEFINE_string('output_dir', 'test_output', 'Directory to save results in')
flags.DEFINE_integer('dim', 32, 'Latent dimension of encoder')
flags.DEFINE_string('subset', "", 'Subset of factors of tested dataset')
flags.DEFINE_integer('seed', 42, 'Seed for the random number generator')
def main(argv):
del argv # Unused
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.