seed stringlengths 1 14k | source stringclasses 2
values |
|---|---|
@pytest.fixture
def client():
client = app.test_client()
yield client
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Get All Data from this method.
*
* @return Response
*/
//Endpoint para eliminar algun personaje
public function index_delete($id){
//Verificamos si losd datos que nos llegan son correctos
if (!$id || !is_numeric($id)) {
$data = array("status" => 400,
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
model.addAttribute("album", album);
model.addAttribute("albumSongs",albumSongs);
return "showAlbum";
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
scope: &mut Scope<Self::Context>)
-> Option<(Self, RecvMode, Time)>
{
if scope.autoreload() {
match scope.rebuild() {
Ok(_) => {}
Err(e) => {
error!("{}", e);
return None
}
}
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
sports = BooleanField('运动')
music =BooleanField('音乐')
submit = SubmitField('提交')
class EditProfileAdminForm(FlaskForm):
email = StringField('邮箱', validators=[DataRequired(), Length(1, 64),
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data = RE_HANGUL.sub(generate_translate_tag, data)
return HttpResponse(data)
def get_definition_word(request, word):
definition = get_object_or_404(Definition, word=word)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import com.github.magrifle.data.searchapi.data.SearchCriteria;
import com.github.magrifle.data.searchapi.data.SearchKey;
import com.github.magrifle.data.searchapi.exception.SearchDataFormatException;
import com.github.magrifle.data.searchapi.exception.SearchKeyValidationException;
import com.github.magrifle.data.search... | ise-uiuc/Magicoder-OSS-Instruct-75K |
def draw_trail(boid):
pt_from = (boid.loc.real, boid.loc.imag)
for p in boid.history:
pt_to = (p.real, p.imag)
screen.draw.line(pt_from, pt_to, TRAIL_COLOR)
pt_from = pt_to
def draw():
screen.fill(BACK_COLOR)
if keyboard.space:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# 是否为 Socks5 代理
IS_SOCKS = False
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if jsonfile_prefix is None:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import naoqi
def main(ip):
id = "camera"
video = naoqi.ALProxy("ALVideoDevice", ip, 9559)
id = video.subscribeCamera(id, 0, 1, 11, 30)
sys.stderr.write(id)
if __name__ == "__main__":
ip = sys.argv[1]
sys.exit(main(ip))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# {URL}/v1/events
# {URL}/v1/event/{1}
get_events_method = get_events.add_method(
"GET",
events_integration,
authorization_type=Apigateway.AuthorizationType.CUSTOM
)
get_events_method.node.find_child('Resource').add_property_override(
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
df.tpep_dropoff_datetime = pd.to_datetime(df.tpep_dropoff_datetime)
df.tpep_pickup_datetime = pd.to_datetime(df.tpep_pickup_datetime)
df.tpep_dropoff_datetime = pd.to_datetime(df.tpep_dropoff_datetime)
df.head(n=0).to_sql(name=table_name, con=engine, if_exists='replace')
df.to_sql(name=table_name... | ise-uiuc/Magicoder-OSS-Instruct-75K |
self.high = deque(maxlen=period)
self.low = deque(maxlen=period)
self.last_close = None
def indicator_logic(self, candle):
"""
Logic of the indicator that will be run candle by candle.
"""
# Initializes close diff
| ise-uiuc/Magicoder-OSS-Instruct-75K |
line
)
def clean_string(string: str) -> Iterable[str]:
return map(clean_line, string.splitlines())
def clean(string: str) -> str:
return ''.join(clean_string(string=string))
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import javax.ws.rs.core.UriBuilder;
import org.glassfish.grizzly.http.server.HttpServer;
import org.testng.Assert;
import org.testng.annotations.Test;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* @param {string} [label=""] current label if address exists, otherwise "".
* @param {boolean} [rescan=true] Rescan the wallet for transactions
*/
async importPrivKey (privkey: string, label: string = '', rescan: boolean = true): Promise<void> {
return await this.client.call('importprivkey', [privkey, l... | ise-uiuc/Magicoder-OSS-Instruct-75K |
namespace Spawnia\Sailor\CustomTypes\Operations\MyEnumInputQuery;
class MyEnumInputQueryResult extends \Spawnia\Sailor\Result
{
public ?MyEnumInputQuery $data = null;
public static function endpoint(): string
{
return 'custom-types';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
ExternalView externalView =
_helixAdmin.getResourceExternalView(getHelixClusterName(), CommonConstants.Helix.BROKER_RESOURCE_INSTANCE);
Assert.assertEquals(externalView.getStateMap(DINING_TABLE_NAME).size(), SEGMENT_COUNT);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
cd $DIR
set -x
sour... | ise-uiuc/Magicoder-OSS-Instruct-75K |
#include <nan.h>
#include "Elliptic.h"
NAN_MODULE_INIT(Init) {
POINT::Init(target);
Elliptic::Init(target);
BN::Init(target);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Load data
namelist = []
id_num = []
with open(gt_txt_path, 'r') as f:
while(True):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
let api = Api::new()?;
let check_win = api.check_window();
api.set_randr_notify_mask()?;
Ok(Self { check_win, api })
}
/// Get a handle on the underlying [XCB Connection][::xcb::Connection] used by [Api]
/// to communicate with the X server.
pub fn xcb_connection(&self)... | ise-uiuc/Magicoder-OSS-Instruct-75K |
net.sf.jasperreports.charts.JRCategoryPlot
| ise-uiuc/Magicoder-OSS-Instruct-75K |
takeBack = 0;
}
}
path.add(next[0]);
exist[next[0]] = true;
dfs(exist, path, next[0], send, takeBack, dis + next[1]);
path.remove(path.size() - 1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
br.open("https://www.just-eat.fr"+iframe_src)
print(br.parsed)
br.open("https://www.just-eat.fr")
print(br.get_forms())
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>trusch/pki
#!/bin/bash
go build -ldflags '-linkmode external -extldflags -static' || exit $?
docker build -t trusch/pkid . || exit $?
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed ... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return self.username
class ProfileUser(ApiModel):
user = models.OneToOneField(User, on_delete=models.CASCADE)
approved_courses = models.ManyToManyField('api.ResultContest',
related_name='user_aproved_courses', blank=True, null=True)
tests_performed = models.ManyToManyField('api.ResultT... | ise-uiuc/Magicoder-OSS-Instruct-75K |
.add_optional_params_to_payload(new_client_order_id=new_client_order_id,
iceberg_qty=iceberg_qty) \
.set_security()
await builder.send_http_req()
builder.handle_response().generate_output()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# Plot last time snapshot
pl.loglog(data['Tk'][0], data['h_1'][-1,:], color='k')
pl.loglog(data['Tk'][0], data['h_2'][-1,:], color='k', ls='--')
| ise-uiuc/Magicoder-OSS-Instruct-75K |
_ANATOMY_CLASSES = [
"Pylorus",
"Ileocecal valve",
| ise-uiuc/Magicoder-OSS-Instruct-75K |
moveForward()
collectGem()
moveForward()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Args:
paths: path components.
*paths:
Returns:
the actual path.
"""
| ise-uiuc/Magicoder-OSS-Instruct-75K |
assert sm.match("I'm feeling {mood:smiley} *", "I'm feeling :) today!") == {
"mood": "good"
| ise-uiuc/Magicoder-OSS-Instruct-75K |
virtualenv --python=python2.7 ~/env || exit 1
. ~/env/bin/activate
pip install --download-cache=~/.pip-cache ./depends/docker-registry-core || exit 1
pip install --download-cache=~/.pip-cache file://${PWD}#egg=docker-registry[bugsnag] || exit 1
cp -R * ~/
cat > ~/profile << ENDPROFILE
. ~/env/bin/activate
ENDPRO... | ise-uiuc/Magicoder-OSS-Instruct-75K |
Tos = new List<To>
{
new To
{
Address = "bchtest:qq66lcjtj40fvlhmfpkgu85hujsssear4q6g3z03g8",
Value = 0.00001m
},
new To
{
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
],
python_requires='>=3.5',
entry_points={
'console_scripts': [
'onnx-cpp = deepC.scripts.onnx2cpp:main',
'compile-onnx = deepC.scripts.onnx2exe:main',
]
},
dependency_links=[]
)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
echo "no poller is running"
else
echo "kill poller process (PID=$PID) now"
sudo kill $PID
echo "-1" > $PIDfile
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
if (this.movie.poster_path !== null) {
this.movie.poster_path = GlobalConstants.imagesPosterUrl + this.movie.poster_path;
} else {
this.movie.poster_path = '../../../assets/images/no-image.png';
}
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print(label_kinds) | ise-uiuc/Magicoder-OSS-Instruct-75K |
return Mask1,Mask
def imgT():
Mask=[]
Mask1=[]
for i in range(len(mask_idT)):
image = cv2.imread(image_idT[i])
image=image/255
| ise-uiuc/Magicoder-OSS-Instruct-75K |
es_batch.append(doc_body)
elif row.link is 'no link':
# Define action here
print('Skipping entry')
# put batch with documents to elastic
# be careful not to make the chunk size
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def log_likeli_mean(self, data):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<reponame>companieshouse/oracle-query-api
package uk.gov.ch.service.payment;
import uk.gov.ch.model.payment.ConfirmationStatementPaymentJson;
public interface ConfirmationStatementPaymentCheckService {
ConfirmationStatementPaymentJson isConfirmationStatementPaid(String companyNumber, String dueDate);
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
variant2 = vcfio.Variant(
reference_name='20', start=123, end=125, reference_bases='CT')
variant3 = vcfio.Variant(
reference_name='20', start=None, end=None, reference_bases=None)
variant4 = vcfio.Variant(
reference_name='20', start=123, end=125, reference_bases='CT')
return [var... | ise-uiuc/Magicoder-OSS-Instruct-75K |
export { Switch };
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import time
from PololuDriver import PololuDriver
res = 1.8
step_amount = 1
class Stepper():
def __init__(self):
| ise-uiuc/Magicoder-OSS-Instruct-75K |
const reco::BeamSpot& beamSpot,
const ReferenceTrajectoryBase::Config& config) :
DualReferenceTrajectory(tsos.localParameters().mixedFormatVector().kSize - 1,
numberOfUsedRec... | ise-uiuc/Magicoder-OSS-Instruct-75K |
</div>
</div>
</div>
</div>
<!-- data table end -->
</div>
@endsection
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.feature_index: int = 0
self.threshold: float = 0
self.left: Node = None
self.right: Node = None
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
for (let i = 0; i < 4; i++) {
await vsc.workspace.openTextDocument({ language, content: "pass" });
}
}
async function newWorkspaceSearcher(documentContent: string): Promise<WorkspaceSearcher> {
const doc = await vsc.workspace.openTextDocument({ language, content: documentContent });
ret... | ise-uiuc/Magicoder-OSS-Instruct-75K |
if name in d:
d[name]['ids'].append(id)
else:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
vars0.append(var0)
var0 = process_vars[i][1][1]
vars0.append(var0)
elif (process_vars[i][0] == "name_right_array_binary_item"):
var0 = process_vars[i][1][0]
vars0.append(var0)
elif (proce... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return _resnet(src.resnet18, "resnet18", pretrained, progress, **kwargs)
def resnet34(pretrained: bool = False, progress: bool = True, **kwargs: Any) -> src.ResNet:
"""ResNet-34 from
`"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_.
Args:
pretrained (bo... | ise-uiuc/Magicoder-OSS-Instruct-75K |
hull = cv2.convexHull(cnt, returnPoints=False)
defects = cv2.convexityDefects(cnt, hull)
count_defects = 0
for i in range(defects.shape[0]):
s, e, f, d = defects[i, 0]
start = tuple(cnt[s][0])
end = tuple(cnt[e][0])
far = tuple(cnt[f][0])
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
var walk = 0f;
if (journey.Connection is WalkingConnection)
{
walk = ((WalkingConnection) journey.Connection).Walk().TotalDistance;
}
return new TransferStats(NumberOfTransfers + (transferred ? 1 : 0), dep, arr, WalkingDistance + walk);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
break;
case LIST:
case CANCEL_CREATE:
case CANCEL_UPDATE:
closeForm();
break;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
Returns:
A datetime series
Examples:
>>> series = pd.Series(['2018/47', '2018/12', '2018/03'])
>>> parsed_series = to_datetime_year_week(series)
>>> print(parsed_series.dt.week)
0 47
1 12
2 3
dtype: int64
"""
return pd.to_dateti... | ise-uiuc/Magicoder-OSS-Instruct-75K |
void nonlinear_step(std::shared_ptr<const DefaultExecutor> exec, int n,
double nonlinear_scale, double potential_scale,
double time_scale,
const gko::matrix::Dense<double>* potential,
gko::matrix::Dense<std::complex<double>>* ampl)
{
us... | ise-uiuc/Magicoder-OSS-Instruct-75K |
return cycle
def rankine_superheated(**kwargs):
fluid = kwargs.get('fluid','Water')
p_hi = kwargs.get('p_hi',None) * 1e6 # MPa
p_lo = kwargs.get('p_lo',None) * 1e6 # MPa
T_hi = kwargs.get('T_hi',None) + 273.15 # deg C
turb_eff = kwargs.get('turb_eff',1.0)
pump_eff = kwargs.get('pu... | ise-uiuc/Magicoder-OSS-Instruct-75K |
<th>Tugas 6</th>
<th>UTS</th>
| ise-uiuc/Magicoder-OSS-Instruct-75K |
lxc start "$NAME" ||
fail "failed to start container"
while [ ! "$(lxc exec "$NAME" -- cat /var/lib/cloud/instance/boot-finished 2>/dev/null)" ]; do
sleep 1
done
sleep 1
lxc exec "$NAME" -- shutdown -r now
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return this;
}
public String getUrl() {
| ise-uiuc/Magicoder-OSS-Instruct-75K |
return {
'code': self.code,
'nested': dict(
(k, v.to_struct(value=value) if isinstance(v, DataError) else v)
for k, v in self.error.items()
),
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from pycoop import *
| ise-uiuc/Magicoder-OSS-Instruct-75K |
<gh_stars>10-100
import_merge()
{
update "-p $PWD" import_merge
move_xml PPort AComponent BComponent TTopologyApp
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
@IBAction func didTapOutside(sender: AnyObject) {
view.endEditing(true)
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
def build_dataset(X, nx, ny, n_test = 0):
m = X.shape[0]
print("Number of images: " + str(m) )
X = X.T
Y = np.zeros((m,))
# Random permutation of samples
| ise-uiuc/Magicoder-OSS-Instruct-75K |
letter_multiplier = 1; #multiplier that accounts for remova of dublicate homogenous trains
for letter in lower:
homegeous_trains = 0; #number of homegenous trains of current letter
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}
cadastrarUsuario(usuario:Usuario){
return this.http.post('http://localhost:8080/usuarios', usuario)
}
btnSair(){
let ok = false;
let token = sessionStorage.getItem('token');
if(token!=null){
| ise-uiuc/Magicoder-OSS-Instruct-75K |
// Chemotactic synapse lag is implemented here.
auto thr = std::max((target_age - last_visited)/window, (double)0.0f);
if( on
// && last_visited > target_age
&& r_gen.get_rnum() > thr
&& (noise == 0.0 || (noise != 1.0 && r_gen.get_rnum() > noise)))
{
value = buffer;
}
if(buffer)
last_visited = 0;
| ise-uiuc/Magicoder-OSS-Instruct-75K |
hidden_next = self.rnncell(input, hidden)
hidden_next_check = torch.isnan(hidden_next)
if hidden_next_check.sum() > 0 :
print("This actually corresponds to c. I don't know why I put this. ")
return hidden_next
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pub(crate) fn quit_quick_select_room(&mut self) {
self.rooms_widget.quit_quick_select_room();
}
pub(crate) fn start_quick_select_room(&mut self) {
self.rooms_widget.start_quick_select_room();
}
pub(crate) fn is_quick_select(&self) -> bool {
self.rooms_widget.is_quick_select... | ise-uiuc/Magicoder-OSS-Instruct-75K |
obj.snap()
obj.set(1, 4)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
data.user, data.item = data.user - 1, data.item - 1
data = data.values
num_users, num_items = data[:, 0].max() + 1, data[:, 1].max() + 1
user_item_ = (
pd.DataFrame(np.zeros((num_users, num_items)))
.stack()
| ise-uiuc/Magicoder-OSS-Instruct-75K |
HTML.p('Number of matching pages in descriptive sources'),
self._colorbar(),
class_='colorbar')],
label='Legend',
stay_open=True,
) | ise-uiuc/Magicoder-OSS-Instruct-75K |
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// SQCT is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the impl... | ise-uiuc/Magicoder-OSS-Instruct-75K |
then
echo "Error: Unable to fetch cv uuid";
exit 1
fi
| ise-uiuc/Magicoder-OSS-Instruct-75K |
import { ActionTree } from 'vuex/types';
import { IStoreState } from '../../interfaces/IStoreState';
| ise-uiuc/Magicoder-OSS-Instruct-75K |
dx = x[ii,:].transpose() - cntrs[jj,:]
D += dx**2
D = np.sqrt(D)
return D
#-- calculate polynomial matrix to augment radial basis functions
def polynomial_matrix(x,y,order):
c = 0
M = len(x)
N = (order**2 + 3*order)//2 + 1
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn main() {
// the tuple type
let t: (i32, [char; 2], u32, f32, bool, &str) = (-10, ['x','y'], 100, 10.5, true, "tes");
println!("the value of i32: {}", t.0);
println!("the value of array: [{},{}]", t.1[0], t.1[1]);
println!("the value of u32: {}", t.2);
println!("the value of f32: {}", t.3);
... | ise-uiuc/Magicoder-OSS-Instruct-75K |
extension RecoveryPhraseValidationFlowState {
func groupCompleted(index: Int) -> Bool {
validationWords.first(where: { $0.groupIndex == index }) != nil
}
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#other way start scrapy
| ise-uiuc/Magicoder-OSS-Instruct-75K |
});
it('クリックイベントが発火することをテストする', () => {
render(<ContainedButton label="テスト" onClick={onClick} />);
const button = screen.getByLabelText(ARIA_LABEL.CONTAIN_BUTTON);
fireEvent.click(button);
expect(onClick).toHaveBeenCalledTimes(1);
| ise-uiuc/Magicoder-OSS-Instruct-75K |
* Class ColorProcessor.
*
* @since 1.0
*
* @deprecated Use \Joomla\Application\Cli\Output\Processor\ColorProcessor
*/
class ColorProcessor extends RealColorProcessor
{
}
| ise-uiuc/Magicoder-OSS-Instruct-75K |
print('无法查找的图片路径:', bin_path)
else:
root = tk.Tk()
root.withdraw()
while True:
print('图片回收箱路径缺失,请选择文件夹路径!')
bin_path = tkinter.filedialog.askdirectory()
if not bin_path:
| ise-uiuc/Magicoder-OSS-Instruct-75K |
fn ip_or_fqdn(s: &str) -> IResult<&str, &str> {
alt((ipv6, ipv4_or_fqdn))(s)
}
fn no_ip(s: &str) -> IResult<&str, Option<&str>> {
success(None)(s)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
var container = encoder.container(keyedBy: ChannelCodingKeys.self)
try container.encodeIfPresent(team, forKey: .team)
var allMembers = members
if !invites.isEmpty {
allMembers = allMembers.union(invites)
try container.encode(invites, forKey: .invites)
}... | ise-uiuc/Magicoder-OSS-Instruct-75K |
kmods-via-containers wrapper xdma $(uname -r) $(basename $0) $@
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from .models import Member
class MemberCreateView(CreateView):
model = Member
template_name = 'members/registration.html'
fields = '__all__'
class SuccessView(TemplateView):
template_name = 'members/success.html'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ReviewListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
| ise-uiuc/Magicoder-OSS-Instruct-75K |
self.http = FakeHTTPClient(self)
self._handlers = client._handlers
self._hooks = client._hooks
self._connection = self._get_state()
self._closed = False
self._ready = asyncio.Event()
self._connection._get_websocket = self._get_websocket
self._connection._get_client = lambda: self
| ise-uiuc/Magicoder-OSS-Instruct-75K |
#elseif os(Android)
#if arch(arm) || arch(i386)
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0xffffffff as UInt)
#elseif arch(arm64) || arch(x86_64)
let RTLD_DEFAULT = UnsafeMutableRawPointer(bitPattern: 0)
#else
#error("Unsupported platform")
#endif
#elseif os(Windows)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
"""
member1 = Member.objects.create(
user=self.user, name='Joakim'
)
member2 = Member.objects.create(
user=self.user, name='Tony'
)
band = Band.objects.create(
| ise-uiuc/Magicoder-OSS-Instruct-75K |
pitchBend: Double = 0,
vibratoDepth: Double = 0,
vibratoRate: Double = 0) {
self.waveform = waveform
self.phaseDistortion = phaseDistortion
self.attackDuration = attackDuration
self.decayDuration = decayDuration
self.sustainLevel = sustainLevel
s... | ise-uiuc/Magicoder-OSS-Instruct-75K |
print('Profile updated!')
post_save.connect(create_profile, sender=User)
post_save.connect(update_profile, sender=User)
| ise-uiuc/Magicoder-OSS-Instruct-75K |
from enum import Enum
class OrgType(Enum):
NORMAL = 'normal'
NIR = 'nir'
| ise-uiuc/Magicoder-OSS-Instruct-75K |
todos = Blueprint(
"todos",
__name__,
url_prefix="/todos",
# not working
# template_folder="templates/todos"
)
# document template
# todo = {
# text: 'yeaaah',
# timestamp: 1639492801.10111,
# datetime: '14.12.2021-16:40:01',
| ise-uiuc/Magicoder-OSS-Instruct-75K |
# The example_cpp binary
| 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.